61 lines
1.3 KiB
Nix
61 lines
1.3 KiB
Nix
{
|
|
description = "NixOS configuration";
|
|
|
|
inputs = {
|
|
nix.url = "github:NixOS/nix";
|
|
nixpkgs.url = "nixpkgs/nixos-26.05";
|
|
nixpkgs-unstable.url = "nixpkgs/nixos-unstable";
|
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
|
nixos-hardware.url = "github:NixOS/nixos-hardware";
|
|
nixos-generators = {
|
|
url = "github:nix-community/nixos-generators";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
sops-nix = {
|
|
url = "github:Mic92/sops-nix";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
hermes-agent = {
|
|
url = "github:NousResearch/hermes-agent";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
};
|
|
|
|
outputs =
|
|
inputs@{ self, flake-parts, ... }:
|
|
flake-parts.lib.mkFlake { inherit inputs; } {
|
|
|
|
imports = [
|
|
./machines/configuration.nix
|
|
];
|
|
|
|
perSystem =
|
|
{
|
|
self',
|
|
inputs',
|
|
config,
|
|
pkgs,
|
|
system,
|
|
...
|
|
}:
|
|
{
|
|
# make pkgs available to all `perSystem` functions
|
|
_module.args.pkgs = import inputs.nixpkgs {
|
|
inherit system;
|
|
};
|
|
|
|
devShells.default = pkgs.mkShell {
|
|
packages = with pkgs; [
|
|
sops
|
|
age
|
|
ssh-to-age
|
|
nixfmt
|
|
];
|
|
};
|
|
};
|
|
|
|
systems = [ "x86_64-linux" ];
|
|
};
|
|
}
|