agenix: move vm secrets to vm.nix
Signed-off-by: Myned <dev@bjork.tech>
This commit is contained in:
parent
6956361274
commit
b07d0ef6fe
2 changed files with 10 additions and 10 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue