nixnew/flake.nix

33 lines
836 B
Nix
Raw Normal View History

2023-06-20 04:08:11 +00:00
{
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
stable.url = "nixpkgs/nixos-23.05";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = inputs @ { self, nixpkgs, ... }: {
nixosConfigurations = {
lenovo = nixpkgs.lib.nixosSystem rec {
system = "x86_64-linux";
specialArgs = { inherit system inputs; };
modules = [
2023-06-21 01:08:53 +00:00
(import ./modules/impurity.nix self)
./modules/preserve-system.nix
2023-06-21 06:47:58 +00:00
./modules/overlay-pkgs
2023-06-20 04:08:11 +00:00
./modules/core.nix
2023-06-21 06:47:58 +00:00
./modules/system.nix
2023-06-20 04:08:11 +00:00
./modules/user
./systems/lenovo.nix
2023-06-20 04:08:11 +00:00
];
};
2023-06-21 01:08:53 +00:00
lenovo-impure = self.nixosConfigurations.lenovo.extendModules { modules = [ { impurity.enable = true; } ]; };
2023-06-20 04:08:11 +00:00
};
};
}