task | convert some files to modules

This commit is contained in:
Don Harper 2024-12-24 19:26:56 -06:00
parent 03921b35d7
commit 37828b6801
15 changed files with 222 additions and 109 deletions

View file

@ -1,4 +1,10 @@
{ pkgs, inputs, ... }: {
virtualisation.libvirtd.enable = true;
environment.systemPackages = with pkgs; [ gnome-boxes ];
{ pkgs, inputs, config, lib, ... }:
with lib;
let cfg = config.roles.kvm;
in {
options.roles.kvm = { enable = mkEnableOption "roles kvm"; };
config = mkIf cfg.enable {
virtualisation.libvirtd.enable = true;
environment.systemPackages = with pkgs; [ gnome-boxes ];
};
}