Skip to content

Commit

Permalink
feat(nix): add virt manager darwin module
Browse files Browse the repository at this point in the history
  • Loading branch information
sbulav committed Feb 26, 2024
1 parent 4d936af commit b2eb6df
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
21 changes: 21 additions & 0 deletions nix/modules/darwin/virtualisation/virt-manager/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
options,
config,
lib,
pkgs,
...
}:
with lib;
with lib.custom; let
cfg = config.custom.virtualisation.virt-manager;
in {
options.custom.virtualisation.virt-manager = with types; {
enable = mkBoolOpt false "Whether or not to enable virt-manager.";
};

config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [
virt-manager
];
};
}
4 changes: 4 additions & 0 deletions nix/systems/aarch64-darwin/mbp13/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ with lib.custom; {
develop = enabled;
};

virtualisation = {
virt-manager = enabled;
};

desktop.yabai = enabled;
desktop.addons.wezterm = enabled;
};
Expand Down

0 comments on commit b2eb6df

Please sign in to comment.