2024-09-08 19:22:14 -05:00
|
|
|
{
|
2024-09-12 20:50:53 -05:00
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
with lib; let
|
|
|
|
cfg = config.custom.files.mnt;
|
|
|
|
in {
|
|
|
|
options.custom.files.mnt.enable = mkOption {default = false;};
|
2024-09-08 19:22:14 -05:00
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
# Set /mnt permissions
|
2024-12-06 19:48:23 -06:00
|
|
|
systemd.tmpfiles.settings."10-mnt" = {
|
|
|
|
"/mnt" = {
|
|
|
|
z = {
|
|
|
|
mode = "0755";
|
|
|
|
user = "root";
|
|
|
|
group = "root";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2024-09-08 19:22:14 -05:00
|
|
|
};
|
|
|
|
}
|