Add age identity secret file

This commit is contained in:
2023-01-14 01:04:10 +00:00
parent 4d7bf6328e
commit 09a30b5242
5 changed files with 19 additions and 4 deletions

View File

@@ -14,10 +14,16 @@
programs.nm-applet.enable = true; programs.nm-applet.enable = true;
# A bit confusing but this is required for the home-manager spotifyd :/ # A bit confusing but this is required for the home-manager spotifyd :/
age.secrets.spotify_pass = { age.secrets = {
spotify_pass = {
file = ../../../secrets/spotify_pass.age; file = ../../../secrets/spotify_pass.age;
owner = config.users.users.daniel.name; owner = config.users.users.daniel.name;
}; };
age_identity = {
file = ../../../secrets/age_identity.age;
owner = config.users.users.daniel.name;
};
};
fonts.fonts = with pkgs; [ fonts.fonts = with pkgs; [
(nerdfonts.override {fonts = ["CascadiaCode" "Iosevka" "FiraCode"]; }) (nerdfonts.override {fonts = ["CascadiaCode" "Iosevka" "FiraCode"]; })

BIN
secrets/age_identity.age Normal file

Binary file not shown.

View File

@@ -23,4 +23,5 @@ in {
"dungflix_bucket_account_key.age".publicKeys = users ++ [system2 system4]; "dungflix_bucket_account_key.age".publicKeys = users ++ [system2 system4];
"dungflix_crypt_remote_obscured_pass.age".publicKeys = users ++ [system2 system4]; "dungflix_crypt_remote_obscured_pass.age".publicKeys = users ++ [system2 system4];
"dungflix_crypt_remote_pass.age".publicKeys = users ++ [system2 system4]; "dungflix_crypt_remote_pass.age".publicKeys = users ++ [system2 system4];
"age_identity.age".publicKeys = users ++ [system1 system3];
} }

View File

@@ -1,4 +1,4 @@
{ {config, ...}: {
imports = [ imports = [
# ./i3 # ./i3
# ./i3status-rust # ./i3status-rust
@@ -6,4 +6,11 @@
./spotify ./spotify
./rofi ./rofi
]; ];
home.file = {
".age/age.txt" = {
source = config.lib.file.mkOutOfStoreSymlink "/run/agenix/age_identity";
};
};
} }

View File

@@ -22,6 +22,7 @@
}; };
cliPackages = with pkgs; [ cliPackages = with pkgs; [
age
direnv direnv
elixir_1_14 elixir_1_14
elixir_ls elixir_ls