mirror of
https://github.com/sstent/vmimages.git
synced 2026-01-25 14:41:44 +00:00
22 lines
410 B
Nix
22 lines
410 B
Nix
{
|
|
lib,
|
|
inputs,
|
|
outputs,
|
|
config,
|
|
...
|
|
}:
|
|
with lib; let
|
|
cfg = config.custom.mnt_public;
|
|
in {
|
|
options.custom.mnt_public.enable = mkEnableOption "Enable mnt/Public";
|
|
|
|
config = mkIf cfg.enable {
|
|
fileSystems."/mnt/Public" = {
|
|
device = "//192.168.4.109/Public";
|
|
fsType = "cifs";
|
|
# options = ["uid=0,gid=1000"];
|
|
options = ["guest" "uid=1000" "iocharset=utf8"];
|
|
};
|
|
};
|
|
}
|