base: add spice configuration
This commit is contained in:
@@ -6,7 +6,7 @@ let
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILiUy2yjIkdryH7pYMdkCNryy9gceqXJ7bhtMvvpPBIk etorres@xenon"
|
||||
];
|
||||
in {
|
||||
imports = [ ./grafana-alloy.nix ./network.nix ./qemu.nix ];
|
||||
imports = [ ./grafana-alloy.nix ./network.nix ./qemu.nix ./spice.nix ];
|
||||
|
||||
time.timeZone = "Etc/UTC";
|
||||
|
||||
|
14
base/spice.nix
Normal file
14
base/spice.nix
Normal file
@@ -0,0 +1,14 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
let cfg = config.spice;
|
||||
in {
|
||||
options.spice = { enable = mkEnableOption "Enable SPICE guest setup"; };
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
environment.systemPackages = with pkgs; [ spice ];
|
||||
|
||||
services.spice-vdagentd.enable = true;
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user