Restructure

- Restructure
- Add sops+age
This commit is contained in:
aloslider committed 2026-04-10 23:49:32 +03:00
1 parent 03548606e4
commit 6a3ff12527
39 files changed
+590 -194

No files matched your search

+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"
])
];
};
};
}