feat: removed ivy user

This commit is contained in:
Leyla Becker 2025-12-14 13:38:46 -06:00
parent 8cd453844a
commit fa0f7b0765
8 changed files with 9 additions and 170 deletions

View file

@ -15,7 +15,8 @@
uids = {
leyla = 1000;
eve = 1002;
ivy = 1004;
# ester = 1003;
# ivy = 1004;
jellyfin = 2000;
forgejo = 2002;
hass = 2004;
@ -36,7 +37,8 @@
gids = {
leyla = 1000;
eve = 1002;
ivy = 1004;
# ester = 1003
# ivy = 1004;
users = 100;
jellyfin_media = 2001;
jellyfin = 2000;
@ -59,7 +61,6 @@
users = config.users.users;
leyla = users.leyla.name;
eve = users.eve.name;
ivy = users.ivy.name;
in {
config = lib.mkMerge [
{
@ -97,10 +98,6 @@ in {
neededForUsers = true;
sopsFile = "${inputs.secrets}/user-passwords.yaml";
};
"passwords/ivy" = {
neededForUsers = true;
sopsFile = "${inputs.secrets}/user-passwords.yaml";
};
};
};
@ -134,19 +131,6 @@ in {
group = config.users.users.eve.name;
};
ivy = {
uid = lib.mkForce uids.ivy;
name = lib.mkForce host.users.ivy.name;
description = "Ivy";
extraGroups =
lib.optionals host.users.ivy.isNormalUser ["networkmanager"]
++ (lib.lists.optionals host.users.ivy.isPrincipleUser ["wheel"]);
hashedPasswordFile = config.sops.secrets."passwords/ivy".path;
isNormalUser = host.users.ivy.isNormalUser;
isSystemUser = !host.users.ivy.isNormalUser;
group = config.users.users.ivy.name;
};
jellyfin = {
uid = lib.mkForce uids.jellyfin;
isSystemUser = true;
@ -254,19 +238,11 @@ in {
];
};
ivy = {
gid = lib.mkForce gids.ivy;
members = [
ivy
];
};
users = {
gid = lib.mkForce gids.users;
members = [
leyla
eve
ivy
];
};
@ -280,7 +256,6 @@ in {
users.lidarr.name
leyla
eve
ivy
];
};
@ -314,7 +289,6 @@ in {
users.syncthing.name
leyla
eve
ivy
];
};

View file

@ -89,11 +89,6 @@ in {
isDesktopUser = lib.mkDefault false;
isTerminalUser = lib.mkDefault false;
};
ivy = {
isPrincipleUser = lib.mkDefault false;
isDesktopUser = lib.mkDefault false;
isTerminalUser = lib.mkDefault false;
};
};
assertions =