diff options
author | sinanmohd <sinan@firemail.cc> | 2023-07-01 08:29:16 +0530 |
---|---|---|
committer | sinanmohd <sinan@firemail.cc> | 2023-07-01 08:54:34 +0530 |
commit | 37dc759b1d5e208bfbec2a41905e1940d052bb6b (patch) | |
tree | d815f0559307dd9ff1b380c2c12ebb63d5318fe1 | |
parent | a720329def9f55164fa7646413bfccb1e0ba1e53 (diff) |
configuration: make user a variable
-rw-r--r-- | configuration.nix | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/configuration.nix b/configuration.nix index 3aacb93..e6ade19 100644 --- a/configuration.nix +++ b/configuration.nix @@ -1,5 +1,8 @@ { config, pkgs, ... }: +let + user = "sinan"; +in { imports = [ # include the results of the hardware scan. @@ -24,7 +27,7 @@ }; # users - users.users.sinan = { + users.users.${user} = { isNormalUser = true; extraGroups = [ "wheel" ]; packages = with pkgs; [ @@ -33,7 +36,7 @@ ps_mem ]; }; - services.getty.autologinUser = "sinan"; + services.getty.autologinUser = user; # system environment.systemPackages = with pkgs; [ |