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;};
|
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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue