Compare commits
2 Commits
498a48c500
...
5ed359d561
Author | SHA1 | Date | |
---|---|---|---|
5ed359d561 | |||
6bcaf4d7a4 |
@ -39,11 +39,11 @@ let
|
||||
root_vol = "/dev/archdesktop/root";
|
||||
in {
|
||||
config = lib.mkIf (!(config.virtualisation ? qemu)) {
|
||||
fileSystems."/persistent" = {
|
||||
fileSystems."/persist" = {
|
||||
neededForBoot = true;
|
||||
device = root_vol;
|
||||
fsType = "btrfs";
|
||||
options = [ "subvol=/nixos/@persistent" ];
|
||||
options = [ "subvol=/nixos/@persist" ];
|
||||
};
|
||||
|
||||
boot.initrd.postDeviceCommands = lib.mkAfter (mkBtrfsInit { prefix = "nixos"; volume = root_vol; });
|
||||
@ -53,11 +53,12 @@ in {
|
||||
options = [ "subvol=/nixos/volatile" ];
|
||||
};
|
||||
environment.persistence = {
|
||||
"/persistent/nobackup" = {
|
||||
"/persist/nobackup" = {
|
||||
hideMounts = true;
|
||||
directories = [
|
||||
"/var/lib/systemd/coredump"
|
||||
"/var/lib/flatpak"
|
||||
"/var/log"
|
||||
];
|
||||
|
||||
files = [
|
||||
@ -65,7 +66,7 @@ in {
|
||||
];
|
||||
};
|
||||
|
||||
"/persistent/backup" = {
|
||||
"/persist/backup" = {
|
||||
hideMounts = true;
|
||||
directories = [
|
||||
# this affects generation/consistency of uids and gids, and should
|
||||
@ -93,7 +94,6 @@ in {
|
||||
{ directory = "/var/lib/tailscale"; mode = "0700"; }
|
||||
"/var/lib/unbound"
|
||||
"/var/db/sudo/lectured"
|
||||
"/var/log"
|
||||
|
||||
# remember login stuff
|
||||
"/var/cache/tuigreet"
|
||||
@ -106,8 +106,8 @@ in {
|
||||
};
|
||||
|
||||
users.mutableUsers = false;
|
||||
users.users.nullbite.hashedPasswordFile = "/persistent/passfile/nullbite";
|
||||
users.users.nullbite.hashedPasswordFile = "/persist/passfile/nullbite";
|
||||
users.users.nullbite.initialPassword = null;
|
||||
users.users.root.hashedPasswordFile = "/persistent/passfile/root";
|
||||
users.users.root.hashedPasswordFile = "/persist/passfile/root";
|
||||
};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user