hosts: add hostPath; home: add homePath
This commit is contained in:
parent
41114f4960
commit
8293c9ff44
|
@ -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 // {isHm = true;}; };
|
extraSpecialArgs = { materusCfg = materusFlake.nixosConfigurations.${host}.materusCfg // {homePath = materusFlake.selfPath + "/configurations/home/${username}"; isHm = true;}; };
|
||||||
modules = [
|
modules = [
|
||||||
./${username}
|
./${username}
|
||||||
../host/${host}/extraHome.nix
|
../host/${host}/extraHome.nix
|
||||||
|
@ -38,6 +38,7 @@ let
|
||||||
nixerus = inputs.configInputs.nixerus;
|
nixerus = inputs.configInputs.nixerus;
|
||||||
configInputs = inputs.configInputs;
|
configInputs = inputs.configInputs;
|
||||||
path = materusFlake.selfPath;
|
path = materusFlake.selfPath;
|
||||||
|
homePath = materusFlake.selfPath + "/configurations/home/${username}";
|
||||||
isHm = true;
|
isHm = true;
|
||||||
}; in
|
}; in
|
||||||
inputs.configInputs.home-manager.lib.homeManagerConfiguration {
|
inputs.configInputs.home-manager.lib.homeManagerConfiguration {
|
||||||
|
|
|
@ -15,6 +15,7 @@ let
|
||||||
nixerus = if stable then inputs.configInputs-stable.nixerus else inputs.configInputs.nixerus;
|
nixerus = if stable then inputs.configInputs-stable.nixerus else inputs.configInputs.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;
|
||||||
|
hostPath = materusFlake.selfPath + "/configurations/host/${host}";
|
||||||
isHm = false;
|
isHm = false;
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
|
|
|
@ -8,10 +8,8 @@
|
||||||
sops.age.generateKey = false;
|
sops.age.generateKey = false;
|
||||||
sops.gnupg.home = null;
|
sops.gnupg.home = null;
|
||||||
sops.gnupg.sshKeyPaths = [];
|
sops.gnupg.sshKeyPaths = [];
|
||||||
sops.secrets."users/materus" = {
|
sops.defaultSopsFile = materusCfg.hostPath + "/secrets/secrets.yaml";
|
||||||
format = "yaml";
|
sops.secrets."users/materus" = {};
|
||||||
sopsFile = ./users.yaml;
|
|
||||||
};
|
|
||||||
|
|
||||||
services.openssh.hostKeys = [
|
services.openssh.hostKeys = [
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,8 +16,8 @@ sops:
|
||||||
dWVzbzUyakxXUGpTQjNsYzcyVG1aRDgKXVa8tIAbmggw1vSt3NJYRLgXhbagpNrX
|
dWVzbzUyakxXUGpTQjNsYzcyVG1aRDgKXVa8tIAbmggw1vSt3NJYRLgXhbagpNrX
|
||||||
RNXyndPaeQXVPVXuJWmHgRCYbwPTcfAFpGwFlX2IxVLlmC914Zklhw==
|
RNXyndPaeQXVPVXuJWmHgRCYbwPTcfAFpGwFlX2IxVLlmC914Zklhw==
|
||||||
-----END AGE ENCRYPTED FILE-----
|
-----END AGE ENCRYPTED FILE-----
|
||||||
lastmodified: "2024-03-02T22:12:15Z"
|
lastmodified: "2024-03-03T01:46:25Z"
|
||||||
mac: ENC[AES256_GCM,data:h7iDHiyVoW9fAi5Gmitrlw01rXBC92UL5PGywV3tx6gdfSsqigX8aecuFnaYrP8ijLzABoXRG6QSLJzn7odJP0e9xXRkoVkMrBZHqRuroN+ouzYjqLJ0DrH2EGb8O/EcwoS9cHuusZTsBnfAfc9l6TuqGu9f8HIwzlcg+jEA2X4=,iv:m0acbZsaqhJ4/kQJ4tGeAiws0r8gJuX8OKp2xSRzkEg=,tag:f6Kh73EBZ4TBbohQozXzog==,type:str]
|
mac: ENC[AES256_GCM,data:6YlLYKUzG2rorS22B6s4P6wJHCU1BWfEazXoEfEITB/qe3Ek3ITafX+RZI7pYLMiatIt9GHPb3YzDt6tOb91EakodC9pBTmW1E6NRzCZDr96nBQ+oIEmGBOOBwq/ysAeJRga0Sz5Xfx6rjRVCTARSLOmbouW5EF/bCKFVowgPYU=,iv:iZkBEIXreVic57ishmziIDNw6H6cNqA32ZxjTa8mjzA=,tag:ws3bj3T4xEGlq7YoB4RH1A==,type:str]
|
||||||
pgp:
|
pgp:
|
||||||
- created_at: "2024-03-02T22:10:50Z"
|
- created_at: "2024-03-02T22:10:50Z"
|
||||||
enc: |-
|
enc: |-
|
Loading…
Reference in New Issue