config: add check if home-manager

This commit is contained in:
Mateusz Słodkowicz 2024-02-25 22:30:13 +01:00
parent 64e8520dbd
commit 88bdef3961
Signed by: materus
GPG Key ID: 28D140BCA60B4FD1
3 changed files with 5 additions and 3 deletions

View File

@ -14,7 +14,7 @@ let
value = let host = builtins.elemAt hosts i; in
materusFlake.nixosConfigurations.${host}.materusCfg.hm.lib.homeManagerConfiguration {
pkgs = materusFlake.nixosConfigurations.${host}.pkgs;
extraSpecialArgs = { materusCfg = materusFlake.nixosConfigurations.${host}.materusCfg; };
extraSpecialArgs = { materusCfg = materusFlake.nixosConfigurations.${host}.materusCfg // {isHm = true;}; };
modules = [
./${username}
../host/${host}/extraHome.nix
@ -37,6 +37,7 @@ let
nixerus = inputs.configInputs.inputs.nixerus;
configInputs = inputs.configInputs;
path = materusFlake.selfPath;
isHm = true;
}; in
inputs.configInputs.inputs.home-manager.lib.homeManagerConfiguration {
pkgs = import inputs.nixpkgs { system = "x86_64-linux"; config = { allowUnfree = true; }; };

View File

@ -15,9 +15,10 @@ let
nixerus = if stable then inputs.configInputs-stable.inputs.nixerus else inputs.configInputs.inputs.nixerus;
configInputs = if stable then inputs.configInputs-stable else inputs.configInputs;
path = materusFlake.selfPath;
isHm = false;
};
in
(nixosSystem rec {
(nixosSystem {
specialArgs = { inherit materusCfg; };
system = arch;
modules = [

View File

@ -1,4 +1,4 @@
{ config, pkgs, lib, materusArg, options, ... }:
{ config, pkgs, lib, materusArg, ... }:
let
p10kcfg = "${zshcfg}/p10kcfg";
zshcfg = "${materusArg.cfg.path}" + "/extraFiles/config/zsh";