mirror of
https://github.com/sstent/vmimages.git
synced 2026-01-25 22:51:49 +00:00
20 lines
412 B
Nix
20 lines
412 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.1.109/Public";
|
|
fsType = "cifs";
|
|
# options = ["uid=0,gid=1000"];
|
|
options = ["guest" "uid=1000"];
|
|
};
|
|
};
|
|
}
|
|
|