1
Fork 0
nixos-system-config/flake.nix
caem af0078d7af
Refactor configuration to be more modular.
TODO: Update the documentation in the README to reflect changes
2024-08-26 15:01:33 +02:00

36 lines
865 B
Nix

{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nur.url = "github:nix-community/NUR";
impermanence.url = "github:nix-community/impermanence";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { nixpkgs, impermanence, home-manager, nur, ... } @ inputs:
let
lib = nixpkgs.lib.extend (final: prev:
import ./lib { lib = final; }
);
in
{
nixosConfigurations = lib.mkHosts {
modules = [
home-manager.nixosModules.home-manager {
home-manager.sharedModules = [
nur.hmModules.nur
];
}
impermanence.nixosModules.impermanence
nur.nixosModules.nur
];
nixpkgs = nixpkgs;
inputs = inputs;
};
};
}