fixed sops-nix on host system
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user