username cleanup :3

This commit is contained in:
jacekpoz 2024-07-19 21:04:44 +02:00
parent 5406b7b390
commit 42695380a1
Signed by: poz
SSH key fingerprint: SHA256:JyLeVWE4bF3tDnFeUpUaJsPsNlJyBldDGV/dIKSLyN8

View file

@ -6,6 +6,8 @@
...
}: let
inherit (lib) getExe getExe';
inherit (config.myOptions.other.system) username;
in {
nixpkgs.config.allowUnfree = true;
@ -31,7 +33,7 @@ in {
security.polkit.enable = true;
users.users.${config.myOptions.other.system.username} = {
users.users.${username} = {
extraGroups = [ "video" ];
};
@ -141,7 +143,6 @@ in {
programs = {
agenix.enable = true;
nh = let
inherit (config.myOptions.other.system) username;
home = config.home-manager.users.${username}.home.homeDirectory;
in {
enable = true;
@ -170,7 +171,6 @@ in {
land = {
enable = true;
extraSettings = let
inherit (config.myOptions.other.system) username;
hmCfg = config.home-manager.users.${username};
swww = getExe inputs.nixpkgs-wayland.packages.${pkgs.system}.swww;
nix_wallpaper = pkgs.fetchurl {