rice/flake.nix
2024-05-20 12:06:16 +02:00

34 lines
895 B
Nix

# TODO: encryption
{
inputs = {
agenix.url = "github:ryantm/agenix";
nixos-hardware.url = "github:NixOS/nixos-hardware";
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
nur.url = "github:nix-community/NUR";
home-manager = {
url = "github:nix-community/home-manager/release-23.11";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = {
nixpkgs,
nixpkgs-unstable,
...
} @ args: {
nixosConfigurations.alice = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = args;
modules = let
overlay-unstable = final: prev: {
unstable = nixpkgs-unstable.legacyPackages.${prev.system};
};
in [
./hosts/alice
(_: {nixpkgs.overlays = [(import ./overlay args) overlay-unstable];})
];
};
};
}