agenix: init environment-secrets
This commit is contained in:
parent
f2d20739e0
commit
3bb6c8bc66
|
@ -1,4 +1,4 @@
|
||||||
{ config, pkgs, lib, ... }:
|
{ config, pkgs, lib, self, ... }:
|
||||||
with lib;
|
with lib;
|
||||||
let
|
let
|
||||||
psCfg = config.pub-solar;
|
psCfg = config.pub-solar;
|
||||||
|
@ -10,7 +10,12 @@ in
|
||||||
];
|
];
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
pub-solar.x-os.keyfile = "/etc/nixos/hosts/dumpyourvms/secrets/keyfile.bin";
|
age.secrets.environment-secrets = {
|
||||||
|
file = "${self}/secrets/environment-secrets.age";
|
||||||
|
mode = "700";
|
||||||
|
owner = "teutat3s";
|
||||||
|
};
|
||||||
|
|
||||||
pub-solar.virtualisation.enable = true;
|
pub-solar.virtualisation.enable = true;
|
||||||
|
|
||||||
# fix backlight for keyboard and brightness, adjust function key binding
|
# fix backlight for keyboard and brightness, adjust function key binding
|
||||||
|
|
BIN
secrets/environment-secrets.age
Executable file
BIN
secrets/environment-secrets.age
Executable file
Binary file not shown.
|
@ -6,4 +6,5 @@ let
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
"example-secret.age".publicKeys = allKeys;
|
"example-secret.age".publicKeys = allKeys;
|
||||||
|
"environment-secrets.age".publicKeys = allKeys;
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,7 +6,7 @@ in
|
||||||
{
|
{
|
||||||
home-manager = pkgs.lib.setAttrByPath [ "users" psCfg.user.name ] {
|
home-manager = pkgs.lib.setAttrByPath [ "users" psCfg.user.name ] {
|
||||||
home.sessionVariables = {
|
home.sessionVariables = {
|
||||||
DRONE_SERVER = "https://drone.greenbaum.cloud";
|
DRONE_SERVER = "https://ci.b12f.io";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -83,4 +83,5 @@ pkgs:
|
||||||
complete -o nospace -C ${pkgs.waypoint}/bin/waypoint waypoint
|
complete -o nospace -C ${pkgs.waypoint}/bin/waypoint waypoint
|
||||||
complete -C '${pkgs.awscli2}/bin/aws_completer' ${pkgs.awscli2}/bin/aws
|
complete -C '${pkgs.awscli2}/bin/aws_completer' ${pkgs.awscli2}/bin/aws
|
||||||
|
|
||||||
|
source /run/secrets/environment-secrets
|
||||||
''
|
''
|
||||||
|
|
Loading…
Reference in a new issue