Restructure

- Restructure
- Add sops+age
This commit is contained in:
aloslider
2026-04-02 21:21:06 +03:00
parent 03548606e4
commit 6a3ff12527
39 changed files with 590 additions and 194 deletions
+32
View File
@@ -0,0 +1,32 @@
{
config,
lib,
inputs,
...
}:
with lib;
{
users = {
mutableUsers = false;
users.benq = {
isNormalUser = true;
hashedPasswordFile = config.sops.secrets.benq-password.path;
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAeIuJzR68xA4ugJjtWbwvaWEU852Hg9FAAhXNw8ou43 benq"
];
extraGroups =
let
ifTheyExist = groups: filter (group: hasAttr group config.users.groups) groups;
in
flatten [
"wheel"
(ifTheyExist [
"docker"
"git"
"networkmanager"
"video"
])
];
};
};
}