treewide: move FLAKE env variable to core/nix

This commit is contained in:
Anthony Rodriguez 2025-01-28 23:43:25 +01:00
parent f1353b550c
commit 93d12da62b
Signed by: nezia
SSH key fingerprint: SHA256:R/ue1eTzTHUoo77lJD/3fSUsyL4AwvcHImU5BAZai+8
3 changed files with 15 additions and 5 deletions

View file

@ -22,6 +22,4 @@ _: {
nvidia.enable = true;
};
};
environment.variables.FLAKE = "/home/nezia/.dotfiles";
}

View file

@ -25,6 +25,4 @@ _: {
hyprland.enable = true;
};
};
environment.variables.FLAKE = "/home/nezia/.dotfiles";
}

View file

@ -1,4 +1,12 @@
{pkgs, ...}: {
{
lib,
pkgs,
config,
...
}: let
inherit (lib) mkIf;
inherit (config.local.systemVars) username;
in {
nix = {
package = pkgs.lix;
settings = {
@ -32,4 +40,10 @@
segger-jlink.acceptLicense = true;
};
};
hjem.users.${username} = {
files.".config/environment.d/${config.local.homeVars.userEnvFile}.conf".text = ''
FLAKE="${config.hjem.users.${username}.directory}/.dotfiles"
'';
};
}