From c9be1f0b64a32f7d6c638a8cfffced239df80a80 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Sat, 1 Jul 2023 08:29:16 +0530 Subject: configuration: make user a variable --- configuration.nix | 7 +++++-- 1 file 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; [ -- cgit v1.2.3