1
1
Fork 0
nixos/options/custom/files/mnt.nix
Myned 16c295d7c1
nix: use tmpfiles.settings instead of rules
Signed-off-by: Myned <dev@bjork.tech>
2024-12-06 19:48:23 -06:00

23 lines
386 B
Nix

{
config,
lib,
...
}:
with lib; let
cfg = config.custom.files.mnt;
in {
options.custom.files.mnt.enable = mkOption {default = false;};
config = mkIf cfg.enable {
# Set /mnt permissions
systemd.tmpfiles.settings."10-mnt" = {
"/mnt" = {
z = {
mode = "0755";
user = "root";
group = "root";
};
};
};
};
}