From 42695380a19f0057e7f51e1d2df2cdab0069aaf5 Mon Sep 17 00:00:00 2001 From: jacekpoz Date: Fri, 19 Jul 2024 21:04:44 +0200 Subject: [PATCH] username cleanup :3 --- hosts/del/configuration.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hosts/del/configuration.nix b/hosts/del/configuration.nix index afa86ef..89b135f 100644 --- a/hosts/del/configuration.nix +++ b/hosts/del/configuration.nix @@ -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 {