-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
51 lines (47 loc) · 1.23 KB
/
Copy pathflake.nix
File metadata and controls
51 lines (47 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{
description = "I use NixOS btw";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-26.05";
home-manager = {
url = "github:nix-community/home-manager/release-26.05";
inputs.nixpkgs.follows = "nixpkgs";
};
lanzaboote = {
url = "github:nix-community/lanzaboote/v1.0.0";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = {
self,
nixpkgs,
home-manager,
lanzaboote,
...
} @ inputs: let
modulesTemplate = hostname: [
./hosts/${hostname}
home-manager.nixosModules.home-manager
{
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
extraSpecialArgs = {inherit hostname;};
users.gregoire = import ./home;
};
}
];
in {
nixosConfigurations.gregtop = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = modulesTemplate "gregtop";
};
nixosConfigurations.gregwork = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = modulesTemplate "gregwork" ++ [lanzaboote.nixosModules.lanzaboote];
};
nixosConfigurations.gregpc = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = modulesTemplate "gregpc";
};
};
}