Create downloads dataset without snapshotting

This commit is contained in:
coolneng 2020-12-01 16:09:12 +01:00
parent 75c83a743e
commit 96285e4b11
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
2 changed files with 19 additions and 14 deletions

View File

@ -9,18 +9,13 @@
compressed = true; compressed = true;
recvu = true; recvu = true;
}; };
pure = true;
zetup = { zetup = {
"syscea/stateful/root" = { "syscea/stateful/root".plan =
plan = "1day=>1hour,2week=>1day,1month=>1week,1year=>1month"; "1day=>1hour,2week=>1day,1month=>1week,1year=>1month";
recursive = true;
mbuffer.enable = true;
};
"syscea/stateful/home" = { "syscea/stateful/home".plan =
plan = "1day=>1hour,2week=>1day,1month=>1week,1year=>1month"; "1day=>1hour,2week=>1day,1month=>1week,1year=>1month";
recursive = true;
mbuffer.enable = true;
};
}; };
}; };

View File

@ -8,7 +8,7 @@
[ (modulesPath + "/installer/scan/not-detected.nix") [ (modulesPath + "/installer/scan/not-detected.nix")
]; ];
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "sd_mod" "rtsx_pci_sdmmc" ]; boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usbhid" "sd_mod" "rtsx_pci_sdmmc" ];
boot.initrd.kernelModules = [ ]; boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ]; boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];
@ -23,6 +23,16 @@
fsType = "zfs"; fsType = "zfs";
}; };
fileSystems."/sdcard" =
{ device = "systemd-1";
fsType = "autofs";
};
fileSystems."/usb" =
{ device = "systemd-1";
fsType = "autofs";
};
fileSystems."/tmp" = fileSystems."/tmp" =
{ device = "syscea/ephemeral/tmp"; { device = "syscea/ephemeral/tmp";
fsType = "zfs"; fsType = "zfs";
@ -38,9 +48,9 @@
fsType = "vfat"; fsType = "vfat";
}; };
fileSystems."/media" = fileSystems."/home/coolneng/Downloads" =
{ device = "/nix/store/9hxfq3jh32j6d81d6n5y5dc2wqdkh4wy-auto"; { device = "syscea/stateful/home/downloads";
fsType = "autofs"; fsType = "zfs";
}; };
swapDevices = swapDevices =