fixed sops-nix on host system

This commit is contained in:
John Lancaster
2026-03-14 11:41:44 -05:00
parent d60a52edda
commit 4f3976a979
4 changed files with 36 additions and 21 deletions

View File

@@ -12,10 +12,24 @@ in
settings.PasswordAuthentication = false;
settings.KbdInteractiveAuthentication = false;
};
};
imports = with inputs.sops-nix.nixosModules; [
sops
];
sops.defaultSopsFile = ../../keys/secrets.yaml;
sops.age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];
# sops.age.keyFile = "/var/lib/sops-nix/key.txt";
sops.secrets."test-nix/ssh_host_key" = {
owner = "john";
path = "/home/john/.ssh/host_key";
};
};
flake.nixosConfigurations."${hostname}" = inputs.nixpkgs.lib.nixosSystem {
modules = with inputs.self.modules; [
nixos."${hostname}"
nixos.lxc
inputs.home-manager.nixosModules.home-manager
nixos."${username}"
nixos.zsh
@@ -23,9 +37,9 @@ in
nixos.step-client
{
home-manager.users."${username}" = {
# imports = with inputs.self.modules.homeManager; [
# step-client
# ];
imports = with inputs.self.modules.homeManager; [
sops
];
shell.program = "zsh";
docker.enable = true;
ssh.matchSets = {