setup home impermanence
This commit is contained in:
@@ -29,6 +29,12 @@
|
||||
options = [ "subvol=@nix" ];
|
||||
};
|
||||
|
||||
fileSystems."/nix/persist/home" =
|
||||
{
|
||||
device = "/dev/disk/by-uuid/3126fadd-b793-4110-bcb7-577b7978cba2";
|
||||
fsType = "btrfs";
|
||||
options = [ "compress=zstd" "subvol=@home-persist" ];
|
||||
};
|
||||
fileSystems."/boot" =
|
||||
{ device = "/dev/disk/by-uuid/595C-784B";
|
||||
fsType = "vfat";
|
||||
@@ -43,7 +49,7 @@
|
||||
fileSystems."/vol/Trash" = {
|
||||
device = "/dev/mapper/yarikpc-trash";
|
||||
fsType = "ext4";
|
||||
options = [ "defaults" "size=1G" "uid=1000" "gid=100" ];
|
||||
options = [ "defaults" ];
|
||||
};
|
||||
swapDevices = [ ];
|
||||
|
||||
@@ -57,10 +63,17 @@
|
||||
# networking.interfaces.lxdbr0.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.veth9787cb37.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.virbr0.useDHCP = lib.mkDefault true;
|
||||
systemd.tmpfiles.rules = [
|
||||
"d /vol/Trash - yaroslav users - -"
|
||||
];
|
||||
|
||||
boot.initrd.systemd.tmpfiles.settings = {
|
||||
"100-mountpoint-Trash" = {
|
||||
"/vol/Trash" = {
|
||||
d = {
|
||||
user = "root";
|
||||
mode = "0770";
|
||||
group = "users";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
|
||||
Reference in New Issue
Block a user