From 4d58fb7366f9f20cb0b98ce2d8f683954773b983 Mon Sep 17 00:00:00 2001 From: albert Date: Tue, 30 Apr 2024 11:42:53 +0900 Subject: [PATCH] UPdates --- home-manager/common/software/cli/atuin.nix | 6 +----- nixos/users/albert/default.nix | 8 ++++++++ 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/home-manager/common/software/cli/atuin.nix b/home-manager/common/software/cli/atuin.nix index 26d2f839..492def03 100644 --- a/home-manager/common/software/cli/atuin.nix +++ b/home-manager/common/software/cli/atuin.nix @@ -12,13 +12,9 @@ search_mode = "fuzzy"; search_mode_shell_up_key_binding = "fuzzy"; secrets_filter = true; - key_path = config.sops.secrets.atuin_key.path; + key_path = "/run/secrets/atuin_key"; filter_mode = "global"; workspaces = true; }; }; - - sops.secrets.atuin_key = { - sopsFile = ../../../../secrets/secrets.yaml; - }; } diff --git a/nixos/users/albert/default.nix b/nixos/users/albert/default.nix index e69df3fc..4b5cca9f 100644 --- a/nixos/users/albert/default.nix +++ b/nixos/users/albert/default.nix @@ -30,6 +30,14 @@ in { }; }; + # Used in home-manager's atuin config + # Used here instead of home-manager because HM randomly needs to restart sops-nix and I can't + # find a way to do so + sops.secrets.atuin_key = { + sopsFile = ../../../secrets/secrets.yaml; + owner = "albert"; + }; + # Make this user trusted nix.settings.trusted-users = [ "albert" ]; }