base: add spice configuration

This commit is contained in:
2025-07-06 23:22:55 -07:00
parent 61860e5409
commit 8ab5658578
2 changed files with 15 additions and 1 deletions

View File

@@ -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
View 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;
};
}