Skip to content

Commit

Permalink
Make user credentials ready to be configured through sops
Browse files Browse the repository at this point in the history
  • Loading branch information
arunoruto committed Jul 19, 2024
1 parent 32a3222 commit 220f42a
Showing 1 changed file with 22 additions and 15 deletions.
37 changes: 22 additions & 15 deletions nixos/user.nix
Original file line number Diff line number Diff line change
@@ -1,27 +1,34 @@
{
inputs,
config,
pkgs,
lib,
username,
theme,
image,
...
}: {
users.users.${username} = {
isNormalUser = true;
shell = pkgs.zsh;
description = "Mirza";
extraGroups = [
"dialout"
"networkmanager"
"wheel"
"scanner"
"lp"
"pipewire"
"audio"
"video"
"render"
];
sops.secrets."passwords/${username}".neededForUsers = true;

users = {
# mutableUsers = false;
users.${username} = {
isNormalUser = true;
# hashedPasswordFile = config.sops.secrets."passwords/${username}".path;
shell = pkgs.zsh;
description = "Mirza";
extraGroups = [
"dialout"
"networkmanager"
"wheel"
"scanner"
"lp"
"pipewire"
"audio"
"video"
"render"
];
};
};

programs.zsh.enable = true;
Expand Down

0 comments on commit 220f42a

Please sign in to comment.