diff options
author | sinanmohd <sinan@sinanmohd.com> | 2023-07-01 08:29:16 +0530 |
---|---|---|
committer | sinanmohd <sinan@sinanmohd.com> | 2023-07-01 08:54:34 +0530 |
commit | c9be1f0b64a32f7d6c638a8cfffced239df80a80 (patch) | |
tree | d815f0559307dd9ff1b380c2c12ebb63d5318fe1 | |
parent | 2cd85db644c0563f377642aa789fe6f92aabc1d4 (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; [ |