11 Commits

Author SHA1 Message Date
ErrorNoInternet c1ca4fa5e5 nixos/networking: fix extraHosts generation
Check / Nix flake (push) Failing after 9s
Lint / Nix expressions (push) Failing after 11s
2026-05-04 01:24:37 -04:00
ErrorNoInternet d728327a5c npins: update website 2026-05-04 01:24:37 -04:00
ErrorNoInternet aee956cf11 nixos/hosts: declare fileSystems for testing hosts 2026-05-04 01:24:37 -04:00
ErrorNoInternet 10021ec205 nixos/services/openssh: enable X11 forwarding 2026-05-04 01:24:37 -04:00
javalsai ff5bcf504c nixos/hosts: add autologin for testing hosts 2026-05-04 01:24:37 -04:00
javalsai 5e7b5813f4 nixos/services: add default website on nginx 2026-05-04 01:24:37 -04:00
javalsai c9820e2166 nixos/services: disable nginx proxy buffering 2026-05-04 01:24:37 -04:00
ErrorNoInternet 5f3b4b0a07 nixos/impermanence: remove ssh host key persistence
The SSH host key files are already defined in the OpenSSH module, so
there is no need to persist them with impermanence.nix.
2026-05-04 01:24:37 -04:00
ErrorNoInternet caa022dfa2 shells: remove neovim
Some users may be using self-contained Neovim executables.
2026-05-04 01:24:37 -04:00
ErrorNoInternet 82c30ea31f agenix: import initial user dns keys 2026-05-04 01:24:37 -04:00
ErrorNoInternet 82bbb02b58 treewide: create global user list 2026-05-04 01:24:36 -04:00
+8 -11
View File
@@ -1,10 +1,15 @@
rec {
users = import ./users.nix;
adminSSHKeys = builtins.concatLists (
map (user: getSSHKeys user.name) (
builtins.filter (user: user.value.admin or false) (attrsToList users)
)
);
attrsToList = mapAttrsToList nameValuePair;
mapAttrsToList = f: attrs: builtins.attrValues (builtins.mapAttrs f attrs);
nameValuePair = name: value: { inherit name value; };
toList = x: if builtins.isList x then x else [ x ];
getSSHKeys =
@@ -13,12 +18,4 @@ rec {
toList users.${username}.ssh
else
builtins.warn "user ${username} declared without ssh keys" [ ];
users = import ./users.nix;
adminSSHKeys = builtins.concatLists (
map (user: getSSHKeys user.name) (
builtins.filter (user: user.value.admin or false) (attrsToList users)
)
);
}