aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorene <ene@sils.li>2023-02-19 14:29:47 +0100
committerene <ene@sils.li>2023-02-19 14:29:47 +0100
commit2d3da16421a32fb1685eaf67c7faaa179e27d23e (patch)
tree27d56115ab9239bc7eb11d16ea63e7ca1ef60ac4
parentFix(home-manager): Remove typos (diff)
downloadnixos-config-2d3da16421a32fb1685eaf67c7faaa179e27d23e.zip
Fix: Further improve the secret handling
-rw-r--r--home-manager/config/nheko/default.nix4
-rw-r--r--secrets/default.nix5
-rw-r--r--todo.md1
3 files changed, 7 insertions, 3 deletions
diff --git a/home-manager/config/nheko/default.nix b/home-manager/config/nheko/default.nix
index b7f88378..176a8a3c 100644
--- a/home-manager/config/nheko/default.nix
+++ b/home-manager/config/nheko/default.nix
@@ -2,7 +2,7 @@
config,
pkgs,
lib,
- agenix,
+ nixosConfig,
...
}: {
programs.nheko = {
@@ -12,7 +12,7 @@
auth = {
# TODO This saves the token world readable in the store, but I don't see a better option yet
- access_token = builtins.readFile (lib.replaceStrings ["\n"] [""] config.age.secrets.nheko.path);
+ #access_token = lib.replaceStrings ["\n"] [""] (builtins.readFile "${nixosConfig.age.secrets.nheko.path}");
device_id = "BAEZYLUEKE";
home_server = "https://matrix.sils.li:443";
user_id = "@@ene:sils.li";
diff --git a/secrets/default.nix b/secrets/default.nix
index 661f51f5..5462e4d8 100644
--- a/secrets/default.nix
+++ b/secrets/default.nix
@@ -1,5 +1,8 @@
{config, ...}: {
- age.secrets.nheko = {
+ age = {
+ identityPaths = ["/home/soispha/.ssh/id_ed25519"];
+ secrets.nheko = {
file = ./nheko;
+ };
};
}
diff --git a/todo.md b/todo.md
index c98becb0..ec74c779 100644
--- a/todo.md
+++ b/todo.md
@@ -1,5 +1,6 @@
# Services to add
[ ] QEMU
[ ] Transfer the last user configs
+ [ ] secret token for nheko
[ ] Go through the system configs
[ ] Swap