1
1
Fork 0

agenix: move vm secrets to vm.nix

Signed-off-by: Myned <dev@bjork.tech>
This commit is contained in:
Myned 2024-12-23 12:59:31 -05:00
parent 6956361274
commit b07d0ef6fe
Signed by: myned
GPG key ID: C7224454F7881A34
2 changed files with 10 additions and 10 deletions

View file

@ -53,16 +53,6 @@ in {
options.custom.desktops.hyprland.binds.enable = mkOption {default = false;}; options.custom.desktops.hyprland.binds.enable = mkOption {default = false;};
config = mkIf cfg.enable { 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} = { home-manager.users.${config.custom.username} = {
wayland.windowManager.hyprland.settings = let wayland.windowManager.hyprland.settings = let
# Reverse mods and key for alphabetical sorting # Reverse mods and key for alphabetical sorting

View file

@ -27,6 +27,16 @@ in {
}; };
config = mkIf cfg.enable { 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 = { virtualisation = {
# https://wiki.nixos.org/wiki/Libvirt # https://wiki.nixos.org/wiki/Libvirt
# https://libvirt.org # https://libvirt.org