From f41dbb83588d3dd6723bb0d46b6ecbc73842316d Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Sat, 10 Jul 2021 15:30:43 -0600 Subject: [PATCH] [NixOS] Remove users from base.nix --- nixos/base.nix | 38 +------------------------------------- 1 file changed, 1 insertion(+), 37 deletions(-) diff --git a/nixos/base.nix b/nixos/base.nix index 50e2178e..4a9962f3 100644 --- a/nixos/base.nix +++ b/nixos/base.nix @@ -171,7 +171,7 @@ # TODO: Add a comment explaining what this does. services.gnome.at-spi2-core.enable = true; - services.xserver = { + services.xserver = { exportConfiguration = true; enable = true; layout = "us"; @@ -197,41 +197,5 @@ systemctl --user import-environment GDK_PIXBUF_MODULE_FILE DBUS_SESSION_BUS_ADDRESS PATH ''; }; - }; - - users.extraUsers = let - extraGroups = [ - "audio" - "adbusers" - "disk" - "docker" - "networkmanager" - "plugdev" - "systemd-journal" - "video" - "wheel" - ]; - userDefaults = { - inherit extraGroups; - group = "users"; - isNormalUser = true; - createHome = true; - shell = pkgs.zsh; - }; - in { - imalison = userDefaults // { - name = "imalison"; - uid = 1000; - home = "/home/imalison"; - shell = pkgs.zsh; - }; - kat = userDefaults // { - name = "kat"; - uid = 1001; - home = "/home/kat"; - shell = pkgs.zsh; - }; }; - - nix.trustedUsers = ["imalison" "kat"]; }