move acl module to krebs
This commit is contained in:
parent
1fe702a083
commit
100b6fc243
|
@ -6,7 +6,7 @@
|
|||
[ dir ] ++ parents (builtins.dirOf dir)
|
||||
;
|
||||
in {
|
||||
options.lass.acl = lib.mkOption {
|
||||
options.krebs.acl = lib.mkOption {
|
||||
type = lib.types.attrsOf (lib.types.attrsOf (lib.types.submodule ({ config, ... }: {
|
||||
options = {
|
||||
rule = lib.mkOption {
|
||||
|
@ -32,7 +32,7 @@ in {
|
|||
})));
|
||||
default = {};
|
||||
};
|
||||
config = lib.mkIf (config.lass.acl != {}) {
|
||||
config = {
|
||||
systemd.services = lib.mapAttrs' (path: rules: lib.nameValuePair "acl-${lib.replaceChars ["/"] ["_"] path}" {
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
path = [
|
||||
|
@ -50,6 +50,6 @@ in {
|
|||
RemainAfterExit = true;
|
||||
Type = "simple";
|
||||
};
|
||||
}) config.lass.acl;
|
||||
}) config.krebs.acl;
|
||||
};
|
||||
}
|
|
@ -6,6 +6,7 @@ let
|
|||
|
||||
out = {
|
||||
imports = [
|
||||
./acl.nix
|
||||
./airdcpp.nix
|
||||
./announce-activation.nix
|
||||
./apt-cacher-ng.nix
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
path = "/home/lass/tmp/the_playlist";
|
||||
devices = [ "mors" "phone" "prism" ];
|
||||
};
|
||||
lass.acl."/home/lass/tmp/the_playlist"."u:syncthing:X".parents = true;
|
||||
lass.acl."/home/lass/tmp/the_playlist"."u:syncthing:rwX" = {};
|
||||
lass.acl."/home/lass/tmp/the_playlist"."u:lass:rwX" = {};
|
||||
krebs.acl."/home/lass/tmp/the_playlist"."u:syncthing:X".parents = true;
|
||||
krebs.acl."/home/lass/tmp/the_playlist"."u:syncthing:rwX" = {};
|
||||
krebs.acl."/home/lass/tmp/the_playlist"."u:lass:rwX" = {};
|
||||
}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
_:
|
||||
{
|
||||
imports = [
|
||||
./acl.nix
|
||||
./dnsmasq.nix
|
||||
./folderPerms.nix
|
||||
./hosts.nix
|
||||
|
|
Loading…
Reference in a new issue