sops config

This commit is contained in:
John Lancaster
2026-03-23 18:54:28 -05:00
parent 3097fb0af1
commit 2ce1505fda
5 changed files with 67 additions and 37 deletions
+7 -7
View File
@@ -8,7 +8,7 @@ in
flake.nixosConfigurations."${hostname}" = inputs.nixpkgs.lib.nixosSystem {
modules = with inputs.self.modules; [
nixos.lxc
nixos.sops
nixos.mysops
nixos.step-ssh-host
inputs.home-manager.nixosModules.home-manager
nixos."${username}"
@@ -66,8 +66,6 @@ in
home-manager.users."${username}" = {
imports = with inputs.self.modules; [
homeManager.sops
homeManager.step-ssh-user
homeManager"${hostname}"
];
};
@@ -76,16 +74,18 @@ in
};
flake.modules.homeManager."${hostname}" = { config, ... }: {
imports = with inputs.self.modules.homeManager; [
rebuild
sops
mtls
imports = with inputs.self.modules; [
homeManager.rebuild
homeManager.mysops
homeManager.mtls
];
homeManagerFlakeDir = "${config.xdg.configHome}/home-manager";
home.username = "${username}";
home.homeDirectory = "/home/${username}";
shell.program = "zsh";
mysops.hostSecretFile = "${config.xdg.configHome}/home-manager/modules/hosts/soteria/secrets.yaml";
};
flake.homeConfigurations."${hostname}" = inputs.home-manager.lib.homeManagerConfiguration {