mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 06:39:14 +00:00
iron: remove custom fs configurations
This commit is contained in:
parent
c7467767cb
commit
209896025f
1 changed files with 1 additions and 55 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue