-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
48 lines (43 loc) · 1.44 KB
/
flake.nix
File metadata and controls
48 lines (43 loc) · 1.44 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
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11";
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
home-manager.url = "github:nix-community/home-manager/release-25.11";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
signal-flags.url = "github:abidingabi/signal-flags";
signal-flags.inputs.nixpkgs.follows = "nixpkgs";
pronounspace = {
type = "github";
owner = "abidingabi";
repo = "pronounspace";
flake = false;
};
};
outputs = inputs:
let
mkSystem = system: stateVersion: hostName:
inputs.nixpkgs.lib.nixosSystem {
modules = [
./devices/base.nix
./devices/${hostName}.nix
{
nixpkgs.hostPlatform = system;
networking.hostName = hostName;
system.stateVersion = stateVersion;
home-manager.users.abi = { home.stateVersion = stateVersion; };
}
];
specialArgs = {
inherit inputs;
pkgs-unstable = inputs.nixpkgs-unstable.legacyPackages.${system};
};
};
in {
nixosConfigurations = {
allium = mkSystem "x86_64-linux" "20.09" "allium"; # a laptop
lily = mkSystem "x86_64-linux" "22.05" "lily"; # a vps
orchid = mkSystem "x86_64-linux" "20.09" "orchid"; # a desktop
poppy = mkSystem "x86_64-linux" "22.11" "poppy"; # a graphical vm
};
};
}