Add mount samba directory. Check flake comment for info
This commit is contained in:
parent
3259b103c1
commit
a5577bdffb
4 changed files with 29 additions and 0 deletions
25
modules/networking/nas-samba-share.nix
Normal file
25
modules/networking/nas-samba-share.nix
Normal 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 ];
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue