materusPC: add test user

This commit is contained in:
Mateusz Słodkowicz 2024-10-21 16:36:20 +02:00
parent 6d16c995e2
commit a1cf15a3ad
Signed by: materus
GPG Key ID: 28D140BCA60B4FD1
2 changed files with 33 additions and 0 deletions

View File

@ -3,6 +3,7 @@
imports = [
./apps.nix
./java.nix
./users.nix
./desktop
];

View File

@ -0,0 +1,32 @@
{ pkgs, materusArg, config, ... }:
{
users.users.materus = {
isNormalUser = true;
extraGroups = [
"audio"
"video"
"render"
"pipewire"
"wheel"
"networkmanager"
"input"
"kvm"
"libvirt-qemu"
"libvirt"
"libvirtd"
"podman"
"scanner"
"lp"
];
shell = pkgs.zsh;
description = "Mateusz Słodkowicz";
openssh.authorizedKeys.keyFiles = [ ("${materusArg.cfg.path}" + "/extraFiles/keys/ssh/materus.pub") ];
hashedPasswordFile = config.sops.secrets."users/materus".path;
};
users.users.tester = {
isNormalUser = true;
home = "/tmp/home/tester";
hashedPasswordFile = config.sops.secrets."users/materus".path;
};
}