From 7e08fe65a4216397e8b511f54430b2797794e637 Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Wed, 9 Aug 2023 22:02:37 +0300 Subject: [PATCH] add user in default . nix x --- default.nix | 5 +++++ hosts/sakotop/configuration.nix | 7 ------- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/default.nix b/default.nix index 45792956..336b759a 100644 --- a/default.nix +++ b/default.nix @@ -78,6 +78,11 @@ # already sold soul to corporations \_o_/ nixpkgs.config.allowUnfree = true; + users.users.sako = { + isNormalUser = true; + extraGroups = ["wheel" "networkmanager"]; # Enable ‘sudo’ for the user. + }; + home-manager.useUserPackages = true; home-manager.users.sako = {pkgs, ...}: { # CHANGE THIS WHEN THE SYSTEM VERSION CHANGES TOO!!! diff --git a/hosts/sakotop/configuration.nix b/hosts/sakotop/configuration.nix index dc7a96f7..708740d5 100644 --- a/hosts/sakotop/configuration.nix +++ b/hosts/sakotop/configuration.nix @@ -97,13 +97,6 @@ # Enable CUPS to print documents. # services.printing.enable = true; - # TODO(sako):: put this in different files - # Define a user account. Don't forget to set a password with ‘passwd’. - users.users.sako = { - isNormalUser = true; - extraGroups = ["wheel" "networkmanager"]; # Enable ‘sudo’ for the user. - }; - services.xserver.videoDrivers = ["nvidia"]; # Enable the OpenSSH daemon.