From 56414230f85431cb63d5edca0dd626f1a29b6141 Mon Sep 17 00:00:00 2001 From: Craige McWhirter Date: Thu, 17 Oct 2019 09:22:38 +1000 Subject: [PATCH] Updated file systems --- Hardware/raspberry_pi_3_model_B.nix | 2 +- Hosts/pi-tri.nix | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/Hardware/raspberry_pi_3_model_B.nix b/Hardware/raspberry_pi_3_model_B.nix index ed2bc5e..fdf7d69 100644 --- a/Hardware/raspberry_pi_3_model_B.nix +++ b/Hardware/raspberry_pi_3_model_B.nix @@ -39,7 +39,7 @@ fsType = "ext4"; }; "/var" = { - device = "/dev/sda1"; + device = "/dev/disk/by-label/var"; fsType = "ext4"; }; }; diff --git a/Hosts/pi-tri.nix b/Hosts/pi-tri.nix index b93172a..c9e150e 100644 --- a/Hosts/pi-tri.nix +++ b/Hosts/pi-tri.nix @@ -10,6 +10,16 @@ networking.hostName = "pi-tri"; # Define your hostname. + # File systems unique to this host: + fileSystems = { + "/nix" = { + device = "/dev/disk/by-label/nix"; + fsType = "ext4"; + }; + }; + + disk/by-label/ + environment.systemPackages = with pkgs; [ gnupg # GPL OpenPGP implementation nix-zsh-completions # ZSH completions for Nix, NixOS, and NixOps