mirror of
https://github.com/materusPL/nixos-config
synced 2025-06-26 10:04:24 +02:00
materusPC: add test user
This commit is contained in:
parent
6d16c995e2
commit
a1cf15a3ad
@ -3,6 +3,7 @@
|
||||
imports = [
|
||||
./apps.nix
|
||||
./java.nix
|
||||
./users.nix
|
||||
./desktop
|
||||
];
|
||||
|
||||
|
32
configurations/host/materusPC/other/users.nix
Normal file
32
configurations/host/materusPC/other/users.nix
Normal 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;
|
||||
};
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user