From d7cb5b90f4551c8ef3b419deffc955d4a4eeb8c9 Mon Sep 17 00:00:00 2001 From: DashieTM Date: Sun, 25 Aug 2024 01:18:49 +0200 Subject: [PATCH] test --- modules/conf.nix | 4 ++-- programs/default.nix | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/conf.nix b/modules/conf.nix index 59639fa..aba6e0b 100644 --- a/modules/conf.nix +++ b/modules/conf.nix @@ -93,9 +93,9 @@ }; username = lib.mkOption { - default = lib.mkDefault "dashie"; + default = "dashie"; example = "pingpang"; - # type = lib.types.str; + type = lib.types.str; description = '' The username. ''; diff --git a/programs/default.nix b/programs/default.nix index 3276246..68b5f6b 100644 --- a/programs/default.nix +++ b/programs/default.nix @@ -16,6 +16,7 @@ let inputs.dashvim.homeManagerModules.dashvim ../modules ]; + usernamePassed = config.conf.username; in { xdg = { portal.config.common.default = "*"; @@ -29,7 +30,7 @@ in { useUserPackages = true; extraSpecialArgs = { inherit inputs; }; - users.${config.conf.username} = { + users.${usernamePassed} = { imports = [ ./common.nix ./xdg.nix