summaryrefslogtreecommitdiff
path: root/modules/pc/software/users.nix
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-10-01 06:02:50 -0700
committerFuwn <[email protected]>2024-10-01 06:02:50 -0700
commitfcddd3ba06088e235243d41395e40fd9e0107a76 (patch)
tree8b4fabd85315ec93a09842a2123a2e6e16583c75 /modules/pc/software/users.nix
parentmodules: move shared i18n to pc (diff)
downloadnixos-config-fcddd3ba06088e235243d41395e40fd9e0107a76.tar.xz
nixos-config-fcddd3ba06088e235243d41395e40fd9e0107a76.zip
modules: move shared pc modules from desktop to pc
Diffstat (limited to 'modules/pc/software/users.nix')
-rw-r--r--modules/pc/software/users.nix46
1 files changed, 46 insertions, 0 deletions
diff --git a/modules/pc/software/users.nix b/modules/pc/software/users.nix
new file mode 100644
index 0000000..ab3fe03
--- /dev/null
+++ b/modules/pc/software/users.nix
@@ -0,0 +1,46 @@
+{ pkgs, secrets, ... }:
+let
+ initialHashedPassword = secrets.initial_hashed_password;
+in
+{
+ users = {
+ mutableUsers = false;
+
+ users = {
+ root = {
+ inherit initialHashedPassword;
+
+ shell = pkgs.bash;
+ };
+
+ ebisu = {
+ inherit initialHashedPassword;
+
+ isNormalUser = true;
+ shell = pkgs.fish;
+
+ extraGroups = [
+ "wheel"
+ "systemd-journal"
+ "audio"
+ "video"
+ "input"
+ "plugdev"
+ "lp"
+ "tss"
+ "power"
+ "nix"
+ "network"
+ "networkmanager"
+ "wireshark"
+ "mysql"
+ "docker"
+ "podman"
+ "git"
+ "libvirtd"
+ "kvm"
+ ];
+ };
+ };
+ };
+}