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" ]; }