From ff3698ade7134b7eabaa0f9a7f798c4acafbdb17 Mon Sep 17 00:00:00 2001 From: Tristan Druyen Date: Thu, 14 Sep 2023 18:09:31 +0200 Subject: [PATCH] Move nixos user config into home.nix Signed-off-by: Tristan Druyen --- configuration.nix | 6 ------ home.nix | 14 +++++++++++++- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/configuration.nix b/configuration.nix index 9c9a92f..b3dc401 100644 --- a/configuration.nix +++ b/configuration.nix @@ -87,12 +87,6 @@ }; # Define a user account. Don't forget to set a password with ‘passwd’. - users.users.tristand = { - isNormalUser = true; - description = "Tristan Druyen"; - extraGroups = ["networkmanager" "wheel" "libvirtd"]; - shell = pkgs.fish; - }; # Enable automatic login for the user. services.xserver.displayManager.defaultSession = "plasmawayland"; diff --git a/home.nix b/home.nix index 6d6d600..969e91f 100644 --- a/home.nix +++ b/home.nix @@ -1,4 +1,15 @@ -{nix-doom-emacs-module, ...}: { +{ + nix-doom-emacs-module, + pkgs, + ... +}: { + users.users.tristand = { + isNormalUser = true; + description = "Tristan Druyen"; + extraGroups = ["networkmanager" "wheel" "libvirtd"]; + shell = pkgs.fish; + }; + home-manager.users.tristand = {pkgs, ...}: { imports = [ nix-doom-emacs-module @@ -67,6 +78,7 @@ signal-desktop statix tailscale + tokei thunderbird ];