From 96285e4b11ec994923f9f8ed7e4e9955442e3f75 Mon Sep 17 00:00:00 2001 From: coolneng Date: Tue, 1 Dec 2020 16:09:12 +0100 Subject: [PATCH] Create downloads dataset without snapshotting --- modules/datasync.nix | 15 +++++---------- modules/hardware-configuration.nix | 18 ++++++++++++++---- 2 files changed, 19 insertions(+), 14 deletions(-) diff --git a/modules/datasync.nix b/modules/datasync.nix index 61ab4a6..534abae 100644 --- a/modules/datasync.nix +++ b/modules/datasync.nix @@ -9,18 +9,13 @@ compressed = true; recvu = true; }; + pure = true; zetup = { - "syscea/stateful/root" = { - plan = "1day=>1hour,2week=>1day,1month=>1week,1year=>1month"; - recursive = true; - mbuffer.enable = true; - }; + "syscea/stateful/root".plan = + "1day=>1hour,2week=>1day,1month=>1week,1year=>1month"; - "syscea/stateful/home" = { - plan = "1day=>1hour,2week=>1day,1month=>1week,1year=>1month"; - recursive = true; - mbuffer.enable = true; - }; + "syscea/stateful/home".plan = + "1day=>1hour,2week=>1day,1month=>1week,1year=>1month"; }; }; diff --git a/modules/hardware-configuration.nix b/modules/hardware-configuration.nix index b85014a..12896d8 100644 --- a/modules/hardware-configuration.nix +++ b/modules/hardware-configuration.nix @@ -8,7 +8,7 @@ [ (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.kernelModules = [ "kvm-intel" ]; boot.extraModulePackages = [ ]; @@ -23,6 +23,16 @@ fsType = "zfs"; }; + fileSystems."/sdcard" = + { device = "systemd-1"; + fsType = "autofs"; + }; + + fileSystems."/usb" = + { device = "systemd-1"; + fsType = "autofs"; + }; + fileSystems."/tmp" = { device = "syscea/ephemeral/tmp"; fsType = "zfs"; @@ -38,9 +48,9 @@ fsType = "vfat"; }; - fileSystems."/media" = - { device = "/nix/store/9hxfq3jh32j6d81d6n5y5dc2wqdkh4wy-auto"; - fsType = "autofs"; + fileSystems."/home/coolneng/Downloads" = + { device = "syscea/stateful/home/downloads"; + fsType = "zfs"; }; swapDevices =