feat(desktop): set user password using hashedPasswordFile.

This commit is contained in:
CronyAkatsuki 2025-05-16 08:33:42 +02:00
parent eb5fffaaa0
commit 6e0452b9bf
4 changed files with 35 additions and 0 deletions

View file

@ -1,5 +1,6 @@
{
inputs,
config,
pkgs,
...
}: {
@ -106,9 +107,14 @@
users.users.crony = {
isNormalUser = true;
description = "Crony";
hashedPasswordFile = "${config.age.secrets.crony-passwd.path}";
extraGroups = ["networkmanager" "wheel" "video" "input" "audio" "gamemode" "seat"];
};
users.users.root.hashedPasswordFile = "${config.age.secrets.root-passwd.path}";
users.mutableUsers = false;
# Allow unfree packages
nixpkgs.config.allowUnfree = true;

View file

@ -1,5 +1,6 @@
{
inputs,
config,
pkgs,
...
}: {
@ -106,9 +107,14 @@
users.users.crony = {
isNormalUser = true;
description = "Crony";
hashedPasswordFile = "${config.age.secrets.crony-passwd.path}";
extraGroups = ["networkmanager" "wheel" "video" "input" "audio" "gamemode" "seat"];
};
users.users.root.hashedPasswordFile = "${config.age.secrets.root-passwd.path}";
users.mutableUsers = false;
# Allow unfree packages
nixpkgs.config.allowUnfree = true;