user factory reworks

This commit is contained in:
John Lancaster
2026-03-29 15:03:26 -05:00
parent 1991766a5e
commit 6d1cf5aa80
6 changed files with 56 additions and 52 deletions
+5 -7
View File
@@ -7,11 +7,9 @@ in
flake.nixosConfigurations."${hostname}" = inputs.nixpkgs.lib.nixosSystem {
modules = with inputs.self.modules; [
nixos.lxc
nixos."${username}"
nixos.mysops
nixos.step-ssh-host
inputs.home-manager.nixosModules.home-manager
nixos."${username}"
nixos.zsh
nixos.login-text
# nixos.mtls
# nixos.restic-server
@@ -25,17 +23,19 @@ in
step-ssh-host = {
hostname = hostname;
};
# This provides the secrets at install time
sops.defaultSopsFile = ./secrets.yaml;
home-manager.users."${username}" = {
imports = with inputs.self.modules; [
homeManager"${hostname}"
homeManager."${hostname}"
];
};
}
];
};
flake.modules.homeManager."${hostname}" = { config, lib, pkgs, ... }: {
flake.modules.homeManager."${hostname}" = { config, pkgs, lib, ... }: {
imports = with inputs.self.modules; [
homeManager.rebuild
homeManager.mysops
@@ -45,8 +45,6 @@ in
];
homeManagerFlakeDir = "${config.xdg.configHome}/home-manager";
home.username = "${username}";
home.homeDirectory = "/home/${username}";
shell.program = "zsh";
docker.enable = true;