From 209896025ffe09a084ac259165b2d88d052837d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9ana=20=E6=B1=9F?= Date: Thu, 23 Oct 2025 11:48:09 +0800 Subject: [PATCH] iron: remove custom fs configurations --- nix/configurations/iron/nixos/fs.nix | 56 +--------------------------- 1 file changed, 1 insertion(+), 55 deletions(-) diff --git a/nix/configurations/iron/nixos/fs.nix b/nix/configurations/iron/nixos/fs.nix index 93c4d2c4..e904ac30 100644 --- a/nix/configurations/iron/nixos/fs.nix +++ b/nix/configurations/iron/nixos/fs.nix @@ -1,8 +1,4 @@ -{ - config, - pkgs, - ... -}: { +{pkgs, ...}: { services.btrfs.autoScrub = { enable = true; fileSystems = [ @@ -19,56 +15,6 @@ "d /home/leana/wt 0700 leana leana - -" ]; - fileSystems = { - /* - WARNING: - Use "noauto" if you want to mount the drive at a later time and not all the time - Otherwise the mount would fail and cascade into the graphical session being stopped - */ - - "/home/leana/mnt/tdk32" = { - device = "/dev/disk/by-uuid/EF28-13EC"; - fsType = "vfat"; - options = [ - "umask=0000" - "noauto" - "user" - ]; - }; - - "/home/leana/mnt/EOF_DIGITAL" = { - device = "/dev/disk/by-uuid/0E07-0937"; - fsType = "vfat"; - options = [ - "umask=0000" - "noauto" - "user" - ]; - }; - }; - - environment.etc."crypttab".text = '' - four /dev/disk/by-uuid/f68b6704-670a-4050-b032-2d553070139a ${config.age.secrets.four_pwd.path} noauto - two /dev/disk/by-uuid/552234e0-0820-44d8-b7ac-2653076149a5 ${config.age.secrets.two_pwd.path} noauto - sgbk /dev/disk/by-uuid/21b5207e-c3cf-49da-b944-fb405ae1eee2 ${config.age.secrets.sgbk_pwd.path} noauto - ''; - - systemd.mounts = let - bindToCryptDev = dev: { - what = "/dev/mapper/${dev}"; - where = "/mnt/${dev}"; - unitConfig = { - Requires = ["systemd-cryptsetup@${dev}.service"]; - After = ["systemd-cryptsetup@${dev}.service"]; - PropagatesStopTo = ["systemd-cryptsetup@${dev}.service"]; - }; - }; - in [ - (bindToCryptDev "four") - (bindToCryptDev "two") - (bindToCryptDev "sgbk") - ]; - environment.systemPackages = [ pkgs.lsof pkgs.smartmontools