Repository navigation
Expand file tree
/
Copy pathflake.nix
More file actions
53 lines (48 loc) · 1.65 KB
/
Copy pathflake.nix
File metadata and controls
53 lines (48 loc) · 1.65 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
52
53
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-26.05";
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
secrets = {
url = "git+file:///etc/nixos/secrets";
inputs.nixpkgs.follows = "nixpkgs";
};
photoprism-slideshow = {
url = "github:nathan-gs/photoprism-slideshow";
inputs.nixpkgs.follows = "nixpkgs";
};
nixos-vscode-server = {
url = "github:nix-community/nixos-vscode-server";
};
};
outputs = { self, nixpkgs, nixpkgs-unstable, secrets, photoprism-slideshow, nixos-vscode-server, ... }:
let
overlay = final: prev: { nixpkgs-unstable = import nixpkgs-unstable { inherit (prev.stdenv.hostPlatform) system; inherit (prev) config; }; };
overlayModule = ({ config, pkgs, ... }: { nixpkgs.overlays = [ overlay ]; });
platformModule = { nixpkgs.hostPlatform = "x86_64-linux"; };
in
{
nixosConfigurations = {
nhtpc = nixpkgs.lib.nixosSystem {
modules = [
# Point this to your original configuration.
./computers/nhtpc.nix
secrets.nixosModules.secrets
photoprism-slideshow.nixosModules.photoprism-slideshow
nixos-vscode-server.nixosModules.default
overlayModule
platformModule
];
specialArgs.channels = { inherit nixpkgs nixpkgs-unstable; };
};
nnas = nixpkgs.lib.nixosSystem {
modules = [
# Point this to your original configuration.
./computers/nnas.nix
secrets.nixosModules.secrets
overlayModule
platformModule
];
};
};
};
}