desko: disable guest account

This commit is contained in:
2023-07-09 18:49:36 +00:00
parent 213e738305
commit 445bc08a0c
2 changed files with 4 additions and 5 deletions

View File

@@ -4,11 +4,10 @@
./fs.nix ./fs.nix
]; ];
sane.guest.enable = true; # sane.guest.enable = true;
# TODO: make sure this plays nice with impermanence # services.distccd.enable = true;
services.distccd.enable = true; # sane.programs.distcc.enableFor.user.guest = true;
sane.programs.distcc.enableFor.user.guest = true;
sops.secrets.colin-passwd.neededForUsers = true; sops.secrets.colin-passwd.neededForUsers = true;

View File

@@ -30,7 +30,7 @@
let let
inherit (lib.strings) hasSuffix removeSuffix; inherit (lib.strings) hasSuffix removeSuffix;
secretsForHost = host: let secretsForHost = host: let
extraAttrsForPath = path: lib.optionalAttrs (sane-lib.path.isChild "guest" path) { extraAttrsForPath = path: lib.optionalAttrs (sane-lib.path.isChild "guest" path && builtins.hasAttr "guest" config.users.users) {
owner = "guest"; owner = "guest";
}; };
in sane-lib.joinAttrsets ( in sane-lib.joinAttrsets (