-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
66 lines (51 loc) · 1.86 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
55
56
57
58
59
60
61
62
63
64
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
secrets.url = "git+file:///etc/nixos/secrets";
photoprism-slideshow.url = "github:nathan-gs/photoprism-slideshow";
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
};
outputs = { self, nixpkgs, nixpkgs-unstable, secrets, photoprism-slideshow, nixos-hardware, ... }:
let
overlay = final: prev: { nixpkgs-unstable = nixpkgs-unstable.legacyPackages.${prev.system}; };
overlayModule = ({ config, pkgs, ... }: { nixpkgs.overlays = [ overlay ]; });
in
{
nixosConfigurations = {
nhtpc = nixpkgs.lib.nixosSystem {
modules = [
# Point this to your original configuration.
./computers/nhtpc.nix
secrets.nixosModules.secrets
photoprism-slideshow.nixosModules.photoprism-slideshow
overlayModule
];
specialArgs.channels = { inherit nixpkgs nixpkgs-unstable; };
# Select the target system here.
system = "x86_64-linux";
};
ngo = nixpkgs.lib.nixosSystem {
modules = [
# Point this to your original configuration.
./computers/ngo.nix
secrets.nixosModules.secrets
nixos-hardware.nixosModules.microsoft-surface-go
overlayModule
];
specialArgs.channels = { inherit nixpkgs nixpkgs-unstable; };
# Select the target system here.
system = "x86_64-linux";
};
nnas = nixpkgs.lib.nixosSystem {
modules = [
# Point this to your original configuration.
./computers/nnas.nix
secrets.nixosModules.secrets
];
# Select the target system here.
system = "x86_64-linux";
};
};
};
}