Skip to content

Commit

Permalink
Explicity mention rootfs in hw-config
Browse files Browse the repository at this point in the history
  • Loading branch information
ritiek committed Dec 8, 2024
1 parent eb3c365 commit 3b09ff2
Showing 1 changed file with 22 additions and 13 deletions.
35 changes: 22 additions & 13 deletions machines/pilab/hw-config.nix
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,28 @@
};
};

fileSystems.restic-backup = {
mountPoint = "/media/${config.fileSystems.restic-backup.label}";
device = "/dev/disk/by-label/${config.fileSystems.restic-backup.label}";
fsType = "ext4";
label = "RESTIC_BACKUP";
autoResize = true;
options = [
"noatime"
"noauto"
"nofail"
"x-systemd.automount"
"x-systemd.mount-timeout=5s"
];
fileSystems = {
"/" = {
device = "/dev/disk/by-label/NIXOS_SD";
fsType = "ext4";
autoResize = true;
options = [ "noatime" ];
};

restic-backup = {
mountPoint = "/media/${config.fileSystems.restic-backup.label}";
device = "/dev/disk/by-label/${config.fileSystems.restic-backup.label}";
fsType = "ext4";
label = "RESTIC_BACKUP";
autoResize = true;
options = [
"noatime"
"noauto"
"nofail"
"x-systemd.automount"
"x-systemd.mount-timeout=5s"
];
};
};

# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
Expand Down

0 comments on commit 3b09ff2

Please sign in to comment.