1
0
Fork 0

Set up sops-nix

This commit is contained in:
Avery 2024-04-03 23:27:14 +02:00
parent 84c3e5a976
commit ca41f6af9e
Signed by: Avery
GPG key ID: B684FD451B692E04
6 changed files with 132 additions and 10 deletions

View file

@ -19,12 +19,13 @@
users.avery = {
extraGroups = [ "wheel" ];
isNormalUser = true;
hashedPasswordFile = config.sops.secrets.avery_password.path;
};
};
environment = {
shells = with pkgs; [ zsh ];
systemPackages = with pkgs; [ git htop neovim ];
systemPackages = with pkgs; [ git htop neovim sops ];
};
programs.zsh.enable = true;
@ -43,4 +44,12 @@
};
services.openssh.enable = true;
sops = {
secrets.avery_password = {
sopsFile = "/etc/nixos/secrets/hosts/common.yaml";
neededForUsers = true;
};
validateSopsFiles = false;
};
}