mirror of
https://codeberg.org/muon/home.git
synced 2025-12-06 08:07:45 +00:00
Add btrfs
This commit is contained in:
parent
7a0ea882c5
commit
6268ac01db
2 changed files with 41 additions and 5 deletions
|
|
@ -8,10 +8,10 @@
|
||||||
|
|
||||||
boot.initrd.availableKernelModules =
|
boot.initrd.availableKernelModules =
|
||||||
[ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
|
[ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
|
||||||
boot.initrd.kernelModules = [ ];
|
boot.initrd.kernelModules = [ "usb_storage" ];
|
||||||
boot.kernelModules = [ "kvm-amd" ];
|
boot.kernelModules = [ "kvm-amd" ];
|
||||||
boot.extraModulePackages = [ ];
|
boot.extraModulePackages = [ ];
|
||||||
boot.supportedFilesystems = [ "zfs" "ntfs" ];
|
boot.supportedFilesystems = [ "zfs" "ntfs" "btrfs" ];
|
||||||
services.zfs.autoScrub.enable = true;
|
services.zfs.autoScrub.enable = true;
|
||||||
services.zfs.autoSnapshot.enable = true;
|
services.zfs.autoSnapshot.enable = true;
|
||||||
|
|
||||||
|
|
@ -26,9 +26,43 @@
|
||||||
options = [ "fmask=0077" "dmask=0077" ];
|
options = [ "fmask=0077" "dmask=0077" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/storage0" = {
|
boot.initrd.luks.devices = let
|
||||||
device = "storage0";
|
keyFile =
|
||||||
fsType = "zfs";
|
"/dev/disk/by-id/usb-Kingston_DataTraveler_3.0_60A44C3FB1A2BE91997103B3-0:0";
|
||||||
|
in {
|
||||||
|
cura = {
|
||||||
|
device = "/dev/disk/by-id/ata-WDC_WD30EZRZ-22Z5HB0_WD-WCC4N2RR7YNU-part1";
|
||||||
|
allowDiscards = true;
|
||||||
|
keyFileSize = 4096;
|
||||||
|
keyFile = keyFile;
|
||||||
|
};
|
||||||
|
curb = {
|
||||||
|
device = "/dev/disk/by-id/ata-WDC_WD30EZRZ-22Z5HB0_WD-WCC4N2RR70YJ-part1";
|
||||||
|
allowDiscards = true;
|
||||||
|
keyFileSize = 4096;
|
||||||
|
keyFile = keyFile;
|
||||||
|
};
|
||||||
|
curc = {
|
||||||
|
device = "/dev/disk/by-id/ata-WDC_WD30EZRZ-22Z5HB0_WD-WCC4N2RR7NZT-part1";
|
||||||
|
allowDiscards = true;
|
||||||
|
keyFileSize = 4096;
|
||||||
|
keyFile = keyFile;
|
||||||
|
};
|
||||||
|
curd = {
|
||||||
|
device = "/dev/disk/by-id/ata-WDC_WD30EZRZ-22Z5HB0_WD-WCC4N4FSYUC3-part1";
|
||||||
|
allowDiscards = true;
|
||||||
|
keyFileSize = 4096;
|
||||||
|
keyFile = keyFile;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
services.btrfs.autoScrub.enable = true;
|
||||||
|
services.btrfs.autoScrub.interval = "weekly";
|
||||||
|
|
||||||
|
fileSystems."/curr" = {
|
||||||
|
device = "/dev/disk/by-uuid/9067ce83-2520-4543-8b7f-38949e1b8b8b";
|
||||||
|
fsType = "btrfs";
|
||||||
|
options = [ "subvol=base" "compress=zstd" "noatime" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/storage1" = {
|
fileSystems."/storage1" = {
|
||||||
|
|
|
||||||
|
|
@ -38,6 +38,8 @@ in with lib; {
|
||||||
|
|
||||||
# file managing
|
# file managing
|
||||||
trash-cli
|
trash-cli
|
||||||
|
dua
|
||||||
|
fdupes
|
||||||
|
|
||||||
# programs
|
# programs
|
||||||
fend
|
fend
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue