Flakify lib, sas
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
@@ -7,7 +7,6 @@
|
||||
...
|
||||
}:
|
||||
let
|
||||
selfLib = inputs.self.lib.${system};
|
||||
hmConfig = config.home-manager.users.${user};
|
||||
in
|
||||
{
|
||||
@@ -70,7 +69,9 @@ in
|
||||
"spotify/prefs.init" = {
|
||||
source = ./config/prefs;
|
||||
onChange = ''
|
||||
${selfLib.runtime.merge.keyValue} "${home}/.config/spotify/prefs.init" "${home}/.config/spotify/prefs"
|
||||
${
|
||||
inputs.lib.lib.${system}.runtime.merge.keyValue
|
||||
} "${home}/.config/spotify/prefs.init" "${home}/.config/spotify/prefs"
|
||||
'';
|
||||
};
|
||||
|
||||
@@ -78,7 +79,9 @@ in
|
||||
source = ./config/prefs-user;
|
||||
onChange = ''
|
||||
user=$(cat "${hmConfig.sops.secrets."spotify/username".path}")
|
||||
${selfLib.runtime.merge.keyValue} "${home}/.config/spotify/prefs-user.init" "${home}/.config/spotify/Users/''${user}-user/prefs"
|
||||
${
|
||||
inputs.lib.lib.${system}.runtime.merge.keyValue
|
||||
} "${home}/.config/spotify/prefs-user.init" "${home}/.config/spotify/Users/''${user}-user/prefs"
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
29
hosts/elara/configs/globalprotect/default.nix
Normal file
29
hosts/elara/configs/globalprotect/default.nix
Normal file
@@ -0,0 +1,29 @@
|
||||
{ config, inputs, ... }:
|
||||
{
|
||||
sops.secrets = {
|
||||
"globalprotect/email".sopsFile = "${inputs.secrets}/domains/sas/secrets.yaml";
|
||||
"globalprotect/gateway".sopsFile = "${inputs.secrets}/domains/sas/secrets.yaml";
|
||||
"globalprotect/ssh/key".sopsFile = "${inputs.secrets}/domains/sas/secrets.yaml";
|
||||
"ntfy/username".sopsFile = "${inputs.secrets}/domains/sas/secrets.yaml";
|
||||
"ntfy/password".sopsFile = "${inputs.secrets}/domains/sas/secrets.yaml";
|
||||
};
|
||||
|
||||
sas.globalprotect = {
|
||||
enable = true;
|
||||
|
||||
email.file = config.sops.secrets."globalprotect/email".path;
|
||||
gateway.file = config.sops.secrets."globalprotect/gateway".path;
|
||||
|
||||
sish = {
|
||||
host = "karaolidis.com";
|
||||
port = "2222";
|
||||
keyFile = config.sops.secrets."globalprotect/ssh/key".path;
|
||||
};
|
||||
|
||||
ntfy = {
|
||||
url = "https://ntfy.karaolidis.com/sas";
|
||||
username.file = config.sops.secrets."ntfy/username".path;
|
||||
password.file = config.sops.secrets."ntfy/password".path;
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user