refactor: make username global variable
This commit is contained in:
parent
a5b3e2a175
commit
5d9230d64f
14 changed files with 25 additions and 79 deletions
|
@ -1,5 +1,6 @@
|
|||
{ username, ... }:
|
||||
{
|
||||
services.getty = {
|
||||
autologinUser = "rafiq";
|
||||
autologinUser = "${username}";
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ inputs, ... }:
|
||||
{ inputs, username, ... }:
|
||||
let
|
||||
opacity = 0.8;
|
||||
toImport = [
|
||||
|
@ -25,12 +25,12 @@ in
|
|||
fonts.enableDefaultPackages = true;
|
||||
|
||||
imports = [ inputs.stylix.nixosModules.stylix ] ++ toImport;
|
||||
home-manager.users.rafiq.imports = [ inputs.stylix.homeManagerModules.stylix ] ++ toImport;
|
||||
home-manager.users.${username}.imports = [ inputs.stylix.homeManagerModules.stylix ] ++ toImport;
|
||||
|
||||
# Put options that only exist in the NixOS module here.
|
||||
stylix.homeManagerIntegration.autoImport = false;
|
||||
stylix.homeManagerIntegration.followSystem = false;
|
||||
|
||||
# Put options that only exist in the home-manager module here.
|
||||
# home-manager.users.rafiq.stylix = {};
|
||||
# home-manager.users.${username}.stylix = {};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue