Rename nas-samba-share to more appropriate lxc-share
This commit is contained in:
parent
f279fbeb5d
commit
c05a8f48b1
8 changed files with 9 additions and 9 deletions
|
|
@ -1,34 +0,0 @@
|
|||
{
|
||||
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";
|
||||
|
||||
allowUsers = mkOption {
|
||||
type = types.listOf types.str;
|
||||
default = [ ];
|
||||
description = ''
|
||||
List of users that are allowed to connect to the NAS.
|
||||
'';
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
|
||||
users.groups."lxc_shares" = {
|
||||
gid = 10000;
|
||||
members = [ config.users.users.pazpi.name ] ++ cfg.allowUsers;
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue