probably broken

This commit is contained in:
2025-12-31 12:24:43 -06:00
parent 0c1f0a4639
commit d8058560b1
158 changed files with 1198 additions and 423 deletions

View File

@@ -0,0 +1,19 @@
{ config, lib, pkgs, ... }: {
config = with config.sysconfig;
lib.mkIf (users ? nathan && users.nathan.usePresets) {
sops.secrets."nathan/pass".neededForUsers = true;
users.users.nathan = {
shell = pkgs.zsh;
name = "nathan";
isNormalUser = true;
#hashedPasswordFile = lib.mkIf (cfg.hashedPasswordFile != null) cfg.hashedPasswordFile;
extraGroups = [ "networkmanager" ];
openssh.authorizedKeys.keys = lib.mkIf config.sysconfig.services.openssh.enable (cfg.ssh.keys ++ (map (z: config.sysconfig.sshHostKeys.${z}) cfg.ssh.hosts));
packages = with pkgs; lib.mkIf (cfg.home-manager.enable && cfg.home-manager.standalone) [ home-manager ];
};
};
}