diff --git a/Deployments/pi_common.nix b/Deployments/pi_common.nix new file mode 100644 index 0000000..9498092 --- /dev/null +++ b/Deployments/pi_common.nix @@ -0,0 +1,13 @@ +# Configuration common to all my servers + +{ config, pkgs, lib, ... }: + +{ + + environment = { # Set the system-wide environment + systemPackages = with pkgs; [ + lsusb # Tools for working with USB devices, such as lsusb + ]; + }; + +} diff --git a/Networks/pi3B_rack.nix b/Networks/pi3B_rack.nix index 5dbc091..7a5b543 100644 --- a/Networks/pi3B_rack.nix +++ b/Networks/pi3B_rack.nix @@ -11,6 +11,7 @@ ../Hardware/raspberry_pi_3_model_B.nix ../Deployments/host_common.nix + ../Deployments/pi_common.nix ../Hosts/pi-tri.nix ../Hosts/pi-ceithir/nix ]; @@ -34,10 +35,6 @@ ]; }; - environment.systemPackages = with pkgs; [ - lsusb # Tools for working with USB devices, such as lsusb - ]; - system.stateVersion = "19.09"; # Did you read the comment? system.autoUpgrade.enable = true; system.autoUpgrade.channel = https://nixos.org/channels/nixos-19.09;