refactor: make username global variable

This commit is contained in:
Mohammad Rafiq 2025-03-27 01:35:31 +08:00
parent a5b3e2a175
commit 5d9230d64f
No known key found for this signature in database
14 changed files with 25 additions and 79 deletions

View file

@ -1,5 +1,6 @@
{ username, ... }:
{
services.getty = {
autologinUser = "rafiq";
autologinUser = "${username}";
};
}

View file

@ -2,6 +2,7 @@
inputs,
hostname,
pkgs,
username,
...
}:
let
@ -17,7 +18,7 @@ let
in
{
security.pam.services.hyprlock = { };
home-manager.users.rafiq = {
home-manager.users.${username} = {
programs.hyprlock = {
enable = true;
package = inputs.hyprlock.packages.${pkgs.stdenv.hostPlatform.system}.hyprlock;