From 8ac7010414bf82645dd1832c9a9ebf47e11a9bc6 Mon Sep 17 00:00:00 2001 From: Yureka Date: Sun, 24 Oct 2021 22:43:11 +0200 Subject: [PATCH] move around users definition --- common/default.nix | 7 +++++++ hosts/bemmer/configuration.nix | 7 ------- shared-services/desktop.nix | 8 +------- 3 files changed, 8 insertions(+), 14 deletions(-) diff --git a/common/default.nix b/common/default.nix index 838bb20..3276807 100644 --- a/common/default.nix +++ b/common/default.nix @@ -50,4 +50,11 @@ la = "exa -la"; tree = "exa -T"; }; + + users.mutableUsers = false; + users.users.c3h = { + isNormalUser = true; + password = "c3h"; + extraGroups = [ "wheel" ]; + }; } diff --git a/hosts/bemmer/configuration.nix b/hosts/bemmer/configuration.nix index 349b3e1..f0548de 100644 --- a/hosts/bemmer/configuration.nix +++ b/hosts/bemmer/configuration.nix @@ -21,13 +21,6 @@ "profiles/base.nix" ]; - users.users.c3h = { - isNormalUser = true; - password = "c3h"; - extraGroups = [ "wheel" ]; - packages = with pkgs; [ chromium firefox mpv youtube-dl ]; - }; - networking.hostName = "bemmer"; networking.domain = "c3h"; networking.useDHCP = true; diff --git a/shared-services/desktop.nix b/shared-services/desktop.nix index f11fb04..dffae62 100644 --- a/shared-services/desktop.nix +++ b/shared-services/desktop.nix @@ -1,13 +1,7 @@ { pkgs, ... }: { - users.mutableUsers = false; - users.users.c3h = { - isNormalUser = true; - password = "c3h"; - extraGroups = [ "wheel" ]; - packages = with pkgs; [ chromium firefox mpv youtube-dl ]; - }; + users.users.c3h.packages = with pkgs; [ chromium firefox mpv youtube-dl ]; services.xserver = { enable = true;