diff --git a/nixos/i3/openweathermap-secrets.nix b/nixos/i3/openweathermap-secrets.nix index 2a1d1e80..83fa0924 100644 --- a/nixos/i3/openweathermap-secrets.nix +++ b/nixos/i3/openweathermap-secrets.nix @@ -1,7 +1,6 @@ { config, pkgs, ... }: { - sops.age.keyFile = /home/cyryl/.config/sops/age/keys.txt; sops.secrets.openweathermap-api-key = { mode = "0440"; owner = config.users.users.cyryl.name; diff --git a/nixos/security.nix b/nixos/security.nix index 90c6a2cf..155fb016 100644 --- a/nixos/security.nix +++ b/nixos/security.nix @@ -13,6 +13,11 @@ services.clamav.daemon.enable = true; services.clamav.updater.enable = true; + sops.age = { + keyFile = "/var/lib/sops-nix/key.txt"; + generateKey = true; + }; + boot.kernelParams = [ "slub_debug=FZP" "page_poison=1" "page_alloc.shuffle=1" ];