config: add check if home-manager
This commit is contained in:
parent
64e8520dbd
commit
88bdef3961
|
@ -14,7 +14,7 @@ let
|
||||||
value = let host = builtins.elemAt hosts i; in
|
value = let host = builtins.elemAt hosts i; in
|
||||||
materusFlake.nixosConfigurations.${host}.materusCfg.hm.lib.homeManagerConfiguration {
|
materusFlake.nixosConfigurations.${host}.materusCfg.hm.lib.homeManagerConfiguration {
|
||||||
pkgs = materusFlake.nixosConfigurations.${host}.pkgs;
|
pkgs = materusFlake.nixosConfigurations.${host}.pkgs;
|
||||||
extraSpecialArgs = { materusCfg = materusFlake.nixosConfigurations.${host}.materusCfg; };
|
extraSpecialArgs = { materusCfg = materusFlake.nixosConfigurations.${host}.materusCfg // {isHm = true;}; };
|
||||||
modules = [
|
modules = [
|
||||||
./${username}
|
./${username}
|
||||||
../host/${host}/extraHome.nix
|
../host/${host}/extraHome.nix
|
||||||
|
@ -37,6 +37,7 @@ let
|
||||||
nixerus = inputs.configInputs.inputs.nixerus;
|
nixerus = inputs.configInputs.inputs.nixerus;
|
||||||
configInputs = inputs.configInputs;
|
configInputs = inputs.configInputs;
|
||||||
path = materusFlake.selfPath;
|
path = materusFlake.selfPath;
|
||||||
|
isHm = true;
|
||||||
}; in
|
}; in
|
||||||
inputs.configInputs.inputs.home-manager.lib.homeManagerConfiguration {
|
inputs.configInputs.inputs.home-manager.lib.homeManagerConfiguration {
|
||||||
pkgs = import inputs.nixpkgs { system = "x86_64-linux"; config = { allowUnfree = true; }; };
|
pkgs = import inputs.nixpkgs { system = "x86_64-linux"; config = { allowUnfree = true; }; };
|
||||||
|
|
|
@ -15,9 +15,10 @@ let
|
||||||
nixerus = if stable then inputs.configInputs-stable.inputs.nixerus else inputs.configInputs.inputs.nixerus;
|
nixerus = if stable then inputs.configInputs-stable.inputs.nixerus else inputs.configInputs.inputs.nixerus;
|
||||||
configInputs = if stable then inputs.configInputs-stable else inputs.configInputs;
|
configInputs = if stable then inputs.configInputs-stable else inputs.configInputs;
|
||||||
path = materusFlake.selfPath;
|
path = materusFlake.selfPath;
|
||||||
|
isHm = false;
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
(nixosSystem rec {
|
(nixosSystem {
|
||||||
specialArgs = { inherit materusCfg; };
|
specialArgs = { inherit materusCfg; };
|
||||||
system = arch;
|
system = arch;
|
||||||
modules = [
|
modules = [
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ config, pkgs, lib, materusArg, options, ... }:
|
{ config, pkgs, lib, materusArg, ... }:
|
||||||
let
|
let
|
||||||
p10kcfg = "${zshcfg}/p10kcfg";
|
p10kcfg = "${zshcfg}/p10kcfg";
|
||||||
zshcfg = "${materusArg.cfg.path}" + "/extraFiles/config/zsh";
|
zshcfg = "${materusArg.cfg.path}" + "/extraFiles/config/zsh";
|
||||||
|
|
Loading…
Reference in New Issue