summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-09-17 01:32:58 -0700
committerFuwn <[email protected]>2024-09-17 01:32:58 -0700
commit4172b3dae476eb70ee8eadfc6fc5126fc8ea553a (patch)
treeb47fa54b1552f9e052ebdf3eb41911d38d732e09
parentsoftware: extend shell (diff)
downloadnixos-config-4172b3dae476eb70ee8eadfc6fc5126fc8ea553a.tar.xz
nixos-config-4172b3dae476eb70ee8eadfc6fc5126fc8ea553a.zip
users: immutable users
-rw-r--r--modules/software/users.nix64
1 files changed, 34 insertions, 30 deletions
diff --git a/modules/software/users.nix b/modules/software/users.nix
index 4055353..be33ac8 100644
--- a/modules/software/users.nix
+++ b/modules/software/users.nix
@@ -3,40 +3,44 @@ let
initialPassword = "123456";
in
{
- users.users = {
- root = {
- inherit initialPassword;
+ users = {
+ mutableUsers = false;
- shell = pkgs.bash;
- };
+ users = {
+ root = {
+ inherit initialPassword;
+
+ shell = pkgs.bash;
+ };
- ebisu = {
- inherit initialPassword;
+ ebisu = {
+ inherit initialPassword;
- isNormalUser = true;
- shell = pkgs.fish;
+ 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"
- ];
+ extraGroups = [
+ "wheel"
+ "systemd-journal"
+ "audio"
+ "video"
+ "input"
+ "plugdev"
+ "lp"
+ "tss"
+ "power"
+ "nix"
+ "network"
+ "networkmanager"
+ "wireshark"
+ "mysql"
+ "docker"
+ "podman"
+ "git"
+ "libvirtd"
+ "kvm"
+ ];
+ };
};
};
}