-
Notifications
You must be signed in to change notification settings - Fork 8
/
home-network.nix
25 lines (23 loc) · 965 Bytes
/
home-network.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
# Usage examples:
# $ morph deploy ./home-network.nix switch
# $ morph deploy --keep-result --reboot ./home-network.nix boot
{
network.description = "Home network";
network.pkgs =
let
nixpkgsSrc = import ./inputs/nixpkgs.nix {};
in
import nixpkgsSrc {
# Q: Why is config set but overlays empty?
# A: As of morph-1.4.0, network.pkgs sets nixpkgs.pkgs, and the latter
# is documented in "man configuration.nix" to ignore nixpkgs.config but
# not nixpkgs.overlays. So we get the right overlays from within the
# nixos configuration, but not the config. Set overlays to empty list
# to prevent undeclared overlays from sneaking in.
config = import ./cfg/nixpkgs-config.nix;
overlays = [];
};
"media.local" = import ./machines/media/configuration.nix;
"mini.local" = import ./machines/mini/configuration.nix;
"srv1.local" = import ./machines/srv1/configuration.nix;
}