From b07d0ef6fe45d5728ca10b2a687dbd33341a038e Mon Sep 17 00:00:00 2001 From: Myned Date: Mon, 23 Dec 2024 12:59:31 -0500 Subject: [PATCH] agenix: move vm secrets to vm.nix Signed-off-by: Myned --- options/custom/desktops/hyprland/binds.nix | 10 ---------- options/custom/settings/vm.nix | 10 ++++++++++ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/options/custom/desktops/hyprland/binds.nix b/options/custom/desktops/hyprland/binds.nix index 2fb0337..4a35020 100644 --- a/options/custom/desktops/hyprland/binds.nix +++ b/options/custom/desktops/hyprland/binds.nix @@ -53,16 +53,6 @@ in { options.custom.desktops.hyprland.binds.enable = mkOption {default = false;}; config = mkIf cfg.enable { - age.secrets = let - secret = filename: { - file = "${inputs.self}/secrets/${filename}"; - owner = config.custom.username; - group = "users"; - }; - in { - "desktop/vm/myndows.pass" = secret "desktop/vm/myndows.pass"; - }; - home-manager.users.${config.custom.username} = { wayland.windowManager.hyprland.settings = let # Reverse mods and key for alphabetical sorting diff --git a/options/custom/settings/vm.nix b/options/custom/settings/vm.nix index 1e3a01c..73b1b66 100644 --- a/options/custom/settings/vm.nix +++ b/options/custom/settings/vm.nix @@ -27,6 +27,16 @@ in { }; config = mkIf cfg.enable { + age.secrets = let + secret = filename: { + file = "${inputs.self}/secrets/${filename}"; + owner = config.custom.username; + group = "users"; + }; + in { + "desktop/vm/myndows.pass" = secret "desktop/vm/myndows.pass"; + }; + virtualisation = { # https://wiki.nixos.org/wiki/Libvirt # https://libvirt.org