change the password

Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com>
This commit is contained in:
Hadi
2026-08-13 23:20:58 +02:00
parent 8e093d75ef
commit b241f6bbd1
5 changed files with 9 additions and 7 deletions
+2
View File
@@ -29,6 +29,8 @@
home-manager.users."${config.var.username}" = import ./home.nix; home-manager.users."${config.var.username}" = import ./home.nix;
users.users.${config.var.username}.hashedPasswordFile = config.sops.secrets.hashedPassword.path;
# Don't touch this # Don't touch this
system.stateVersion = "26.05"; system.stateVersion = "26.05";
} }
+1 -1
View File
@@ -64,7 +64,7 @@
files = [ files = [
".ssh/known_hosts" ".ssh/known_hosts"
".config/sops-nix/age/keys.txt" ".config/sops/age/keys.txt"
]; ];
}; };
+3 -1
View File
@@ -9,9 +9,11 @@
home = "/home/${username}"; home = "/home/${username}";
in { in {
sops = { sops = {
age.keyFile = "${home}/.config/sops-nix/age/keys.txt"; age.keyFile = "${home}/.config/sops/age/keys.txt";
defaultSopsFile = ./secrets.yaml; defaultSopsFile = ./secrets.yaml;
secrets = { secrets = {
hashedPassword.neededForUsers = true;
ssh-config = { ssh-config = {
owner = username; owner = username;
path = "${home}/.ssh/config"; path = "${home}/.ssh/config";
File diff suppressed because one or more lines are too long
-3
View File
@@ -17,9 +17,6 @@ in {
"networkmanager" "networkmanager"
"wheel" "wheel"
]; ];
# CHANGEME: Set your password with: mkpasswd -m sha-512
# Or use initialPassword for first boot, then change it
initialPassword = "nixos";
}; };
}; };
} }