-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
54 lines (54 loc) · 1.68 KB
/
flake.nix
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
52
53
54
{
inputs =
{
disko.url = "https://github.com/nix-community/disko/archive/master.tar.gz";
sops-nix.url = "github:Mic92/sops-nix";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
unpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
stable.url = "github:NixOS/nixpkgs/nixos-24.05";
hardware.url = "github:NixOS/nixos-hardware/master";
home-manager = {
url = "github:nix-community/home-manager/master";
};
pi.url = "github:nix-community/raspberry-pi-nix";
};
outputs = { pi, nixpkgs, unpkgs, stable, home-manager, sops-nix, disko, ... }: {
nixosConfigurations.pussy-destroyer = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = { inherit unpkgs; };
modules = [
./host/pussy-destroyer
sops-nix.nixosModules.sops
home-manager.nixosModules.home-manager
disko.nixosModules.disko
];
};
nixosConfigurations.pussy-server = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = { inherit unpkgs; };
modules = [
./host/pussy-server
sops-nix.nixosModules.sops
home-manager.nixosModules.home-manager
disko.nixosModules.disko
];
};
nixosConfigurations.rpi5 = stable.lib.nixosSystem {
system = "aarch64-linux";
modules = [
pi.nixosModules.raspberry-pi
(import ./utils/pi5.nix)
./utils/hackerspace.nix
# ./modules/graphics.nix
# ./modules/i3.nix
];
};
nixosConfigurations.rpi4 = stable.lib.nixosSystem {
system = "aarch64-linux";
modules = [
./utils/pi.nix
./utils/hackerspace.nix
];
};
};
}