Rename nas-samba-share to more appropriate lxc-share

This commit is contained in:
pazpi 2026-05-13 08:39:04 +02:00
parent f279fbeb5d
commit c05a8f48b1
No known key found for this signature in database
8 changed files with 9 additions and 9 deletions

View file

@ -0,0 +1,34 @@
{
lib,
config,
pkgs,
...
}:
with lib;
let
cfg = config.my.networking.lxc_shares;
in
{
options.my.networking.lxc_shares = {
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;
};
};
}