forcing root user name
This commit is contained in:
2
home.nix
2
home.nix
@@ -10,7 +10,7 @@
|
||||
# Home Manager needs a bit of information about you and the paths it should
|
||||
# manage.
|
||||
home.username = config.user;
|
||||
home.homeDirectory = "/home/${config.user}";
|
||||
home.homeDirectory = lib.mkIf (config.user != "root") "/home/${config.user}";
|
||||
home.stateVersion = config.stateVersion;
|
||||
|
||||
# The home.packages option allows you to install Nix packages into your
|
||||
|
||||
Reference in New Issue
Block a user