diff --git a/configurations/host/materusPC/other/default.nix b/configurations/host/materusPC/other/default.nix index 5dd5df9..59d8a21 100644 --- a/configurations/host/materusPC/other/default.nix +++ b/configurations/host/materusPC/other/default.nix @@ -3,6 +3,7 @@ imports = [ ./apps.nix ./java.nix + ./users.nix ./desktop ]; diff --git a/configurations/host/materusPC/other/users.nix b/configurations/host/materusPC/other/users.nix new file mode 100644 index 0000000..f48c72e --- /dev/null +++ b/configurations/host/materusPC/other/users.nix @@ -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; + }; +} \ No newline at end of file