From 4547e75868cba2a265b78661ddc386b5e81c1bb0 Mon Sep 17 00:00:00 2001 From: gramanas Date: Mon, 7 Oct 2024 11:47:06 +0300 Subject: init --- nixos/user.nix | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 nixos/user.nix (limited to 'nixos/user.nix') diff --git a/nixos/user.nix b/nixos/user.nix new file mode 100644 index 0000000..00d4efe --- /dev/null +++ b/nixos/user.nix @@ -0,0 +1,25 @@ +{pkgs, ...}: { + users.users = { + root = { + # inherit initialHashedPassword; + hashedPasswordFile = "/persist/passwordFiles/root"; + }; + + grm = { + # inherit initialHashedPassword; + hashedPasswordFile = "/persist/passwordFiles/grm"; + description = "grm"; + isNormalUser = true; + extraGroups = ["wheel" "audio" "docker" "networkmanager"]; + }; + }; + + # Don't allow mutation of users outside of the config. + users.mutableUsers = false; + + # programs.steam = { + # enable = true; + # remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play + # dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server + # }; +} -- cgit v1.2.3