restricted more of leylas configs behind full user

This commit is contained in:
Leyla Becker 2024-09-03 14:24:11 -05:00
parent d9bb30a19d
commit 9b520878c4
6 changed files with 23 additions and 23 deletions

View file

@ -4,11 +4,11 @@ let
in
{
options.users.ester = {
isNormalUser = lib.mkEnableOption "ester";
isFullUser = lib.mkEnableOption "ester";
};
config = {
sops.secrets = lib.mkIf cfg.isNormalUser {
sops.secrets = lib.mkIf cfg.isFullUser {
"passwords/ester" = {
neededForUsers = true;
# sopsFile = ../secrets.yaml;
@ -25,7 +25,7 @@ in
}
(
if cfg.isNormalUser then {
if cfg.isFullUser then {
isNormalUser = true;
extraGroups = [ "networkmanager" ];