restructure
This commit is contained in:
@@ -2,12 +2,7 @@
|
||||
|
||||
flake.nixosModules.virtual-machines = { config, lib, pkgs, ... }: {
|
||||
|
||||
options.sysconfig.virtual-machines.enable = with lib; mkOption {
|
||||
type = with types; bool;
|
||||
default = false;
|
||||
};
|
||||
|
||||
config = lib.mkIf config.sysconfig.virtual-machines.enable {
|
||||
config = {
|
||||
programs.virt-manager.enable = true;
|
||||
|
||||
virtualisation = {
|
||||
@@ -19,7 +14,7 @@
|
||||
spiceUSBRedirection.enable = true;
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; lib.mkIf config.sysconfig.graphical [
|
||||
environment.systemPackages = with pkgs; lib.mkIf config.hardware.graphics.enable [
|
||||
virt-viewer
|
||||
];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user