Add mount samba directory. Check flake comment for info

This commit is contained in:
pazpi 2024-11-10 18:24:31 +01:00
parent 3259b103c1
commit a5577bdffb
4 changed files with 29 additions and 0 deletions

View file

@ -0,0 +1,25 @@
{
lib,
config,
pkgs,
...
}:
with lib;
let
cfg = config.my.networking.nas-samba-share;
in
{
options.my.networking.nas-samba-share = {
enable = mkEnableOption "Enable Samba connection with NAS";
};
config = mkIf cfg.enable {
users.groups."lxc_shares" = {
gid = 10000;
members = [ config.users.users.pazpi.name ];
};
};
}