This commit is contained in:
2025-12-31 15:03:16 +02:00
parent c93c93a810
commit fa32ae5510
69 changed files with 1093 additions and 659 deletions
+6 -8
View File
@@ -2,20 +2,18 @@
inputs,
config,
pkgs,
lib,
...
}: let
inherit (config.networking) hostName;
inherit (config.sops) secrets;
inherit (inputs) mysecrets;
sshKeys = f: "${mysecrets}/ssh/user/id_${f}_ed25519.pub";
in {
users.groups.admin = {};
users = {
mutableUsers = false;
nix.settings.trusted-users = ["user" "admin"];
users.mutableUsers = false;
users.users = {
admin = {
# groups.admin = {};
users.admin = {
isNormalUser = true;
description = "System administrator";
extraGroups = ["wheel"]; # wheel = sudo
@@ -28,7 +26,7 @@ in {
"sarien"
];
};
user = {
users.user = {
extraGroups = ["video" "libvirtd" "dialout"];
hashedPasswordFile = secrets."user-password-hashed".path;
isNormalUser = true;