secrets hidden / ready to be public

This commit is contained in:
Polen 2024-11-07 09:57:00 -05:00
parent 41131223bb
commit ea715d7924
6 changed files with 86 additions and 14 deletions

View file

@ -2,7 +2,6 @@
let
user = "polen";
password = "password";
hostname = "pi";
in {
boot = {
@ -22,12 +21,20 @@ in {
};
};
sops.defaultSopsFile = ../../secrets/secrets.yaml;
sops.defaultSopsFormat = "yaml";
sops.age.keyFile = "/home/polen/.config/sops/age/keys.txt";
sops.secrets.pi_user_pass.neededForUsers = true;
networking = {
networkmanager.enable = true;
wireless.enable = false;
hostName = hostname;
};
nix.settings.trusted-users = [ "polen" ];
environment.systemPackages = with pkgs; [
neovim
tmux
@ -45,7 +52,7 @@ in {
mutableUsers = false;
users."${user}" = {
isNormalUser = true;
password = password;
hashedPasswordFile = config.sops.secrets.pi_user_pass.path;
extraGroups = [ "wheel" "docker" ];
};
};