mirror of
https://github.com/anotherhadi/nixy.git
synced 2026-08-21 10:45:49 +02:00
change the password
Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com>
This commit is contained in:
@@ -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";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -64,7 +64,7 @@
|
|||||||
|
|
||||||
files = [
|
files = [
|
||||||
".ssh/known_hosts"
|
".ssh/known_hosts"
|
||||||
".config/sops-nix/age/keys.txt"
|
".config/sops/age/keys.txt"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -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
@@ -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";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user