gave files.nix it's own directory, renamed all of the options ending with 'Opts' to end with 'Config' instead for consistency.

This commit is contained in:
pagedmov
2024-11-01 22:00:08 -04:00
parent 08bed40c52
commit 99b13fd979
18 changed files with 81 additions and 71 deletions

View File

@@ -1,8 +1,8 @@
{lib, config, username, ...}: {
options = {
virtOpts.enable = lib.mkEnableOption "enables virtualization";
virtConfig.enable = lib.mkEnableOption "enables virtualization";
};
config = lib.mkIf config.virtOpts.enable {
config = lib.mkIf config.virtConfig.enable {
virtualisation.libvirtd.enable = true;
programs.virt-manager.enable = true;
};