mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 17:17:22 +01:00
16 lines
649 B
Nix
16 lines
649 B
Nix
{ pkgs, config, lib, ... }:
|
|
{
|
|
sops.secrets.swarseluser = lib.mkIf (!config.swarselsystems.isPublic) { neededForUsers = true; };
|
|
|
|
users = {
|
|
mutableUsers = lib.mkIf (!config.swarselsystems.initialSetup) false;
|
|
users.swarsel = {
|
|
isNormalUser = true;
|
|
description = "Leon S";
|
|
password = lib.mkIf config.swarselsystems.initialSetup "setup";
|
|
hashedPasswordFile = lib.mkIf (!config.swarselsystems.initialSetup) config.sops.secrets.swarseluser.path;
|
|
extraGroups = [ "networkmanager" "syncthing" "docker" "wheel" "lp" "audio" "video" "vboxusers" "libvirtd" "scanner" ];
|
|
packages = with pkgs; [ ];
|
|
};
|
|
};
|
|
}
|