config: add check if home-manager
This commit is contained in:
parent
c1f9da7b40
commit
1b6e1b5d58
|
@ -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; }; };
|
||||||
|
|
|
@ -7,7 +7,7 @@ let
|
||||||
let
|
let
|
||||||
nixosSystem = if stable then inputs.nixpkgs-stable.lib.nixosSystem else inputs.nixpkgs.lib.nixosSystem;
|
nixosSystem = if stable then inputs.nixpkgs-stable.lib.nixosSystem else inputs.nixpkgs.lib.nixosSystem;
|
||||||
hm = if stable then inputs.configInputs-stable.inputs.home-manager else inputs.configInputs.inputs.home-manager;
|
hm = if stable then inputs.configInputs-stable.inputs.home-manager else inputs.configInputs.inputs.home-manager;
|
||||||
materusCfg = {
|
materusCfg = rec {
|
||||||
inherit stable;
|
inherit stable;
|
||||||
inherit materusFlake;
|
inherit materusFlake;
|
||||||
inherit host;
|
inherit host;
|
||||||
|
@ -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 = configInputs.inputs.nixpkgs.lib.mkDefault false;
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
(nixosSystem rec {
|
(nixosSystem {
|
||||||
specialArgs = { inherit materusCfg; };
|
specialArgs = { inherit materusCfg; };
|
||||||
system = arch;
|
system = arch;
|
||||||
modules = [
|
modules = [
|
||||||
|
|
|
@ -89,6 +89,8 @@ in
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#home.file."${(lib.optionalString (config.programs.zsh.dotDir != null) (config.programs.zsh.dotDir + "/")) + ".zshrc"}".text = lib.mkAfter "#TEST";
|
||||||
|
|
||||||
programs.starship.enableZshIntegration = lib.mkForce false;
|
programs.starship.enableZshIntegration = lib.mkForce false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue