[shared] Sops nix for user passwords

This commit is contained in:
2025-04-17 00:31:19 +02:00
parent 8244fe8927
commit 01e5fb42d3
9 changed files with 93 additions and 7 deletions

View File

@ -1,11 +1,11 @@
{ systemConfig, ... }:
{ config, systemConfig, ... }:
let
username = systemConfig.user.name;
in
{
# Define a user without a password, TODO pass in user.password
users.users.${username} = {
isNormalUser = true;
hashedPasswordFile = config.sops.secrets.password.path;
description = username;
extraGroups = [
"networkmanager"