add user in default . nix x

This commit is contained in:
Sakooooo 2023-08-09 22:02:37 +03:00
parent 5bab9d869d
commit 7e08fe65a4
Signed by: sako
GPG key ID: 3FD715D87D7725E0
2 changed files with 5 additions and 7 deletions

View file

@ -78,6 +78,11 @@
# already sold soul to corporations \_o_/ # already sold soul to corporations \_o_/
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
users.users.sako = {
isNormalUser = true;
extraGroups = ["wheel" "networkmanager"]; # Enable sudo for the user.
};
home-manager.useUserPackages = true; home-manager.useUserPackages = true;
home-manager.users.sako = {pkgs, ...}: { home-manager.users.sako = {pkgs, ...}: {
# CHANGE THIS WHEN THE SYSTEM VERSION CHANGES TOO!!! # CHANGE THIS WHEN THE SYSTEM VERSION CHANGES TOO!!!

View file

@ -97,13 +97,6 @@
# Enable CUPS to print documents. # Enable CUPS to print documents.
# services.printing.enable = true; # 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"]; services.xserver.videoDrivers = ["nvidia"];
# Enable the OpenSSH daemon. # Enable the OpenSSH daemon.