Moved packages to pi_common

This commit is contained in:
Serĉanto de Scio 2019-10-17 08:03:24 +10:00
parent 0ab4defbe6
commit 799e9fd22e
Signed by: sercanto
GPG key ID: A4122FF3971B6865
2 changed files with 14 additions and 4 deletions

13
Deployments/pi_common.nix Normal file
View file

@ -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
];
};
}

View file

@ -11,6 +11,7 @@
<nixpkgs/nixos/modules/installer/scan/not-detected.nix> <nixpkgs/nixos/modules/installer/scan/not-detected.nix>
../Hardware/raspberry_pi_3_model_B.nix ../Hardware/raspberry_pi_3_model_B.nix
../Deployments/host_common.nix ../Deployments/host_common.nix
../Deployments/pi_common.nix
../Hosts/pi-tri.nix ../Hosts/pi-tri.nix
../Hosts/pi-ceithir/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.stateVersion = "19.09"; # Did you read the comment?
system.autoUpgrade.enable = true; system.autoUpgrade.enable = true;
system.autoUpgrade.channel = https://nixos.org/channels/nixos-19.09; system.autoUpgrade.channel = https://nixos.org/channels/nixos-19.09;