From a61da48d682722b77bf7f7c1af2d546fc0bb395e Mon Sep 17 00:00:00 2001 From: Don Harper Date: Wed, 19 Feb 2025 22:30:30 -0600 Subject: [PATCH] workstation | disable wine for loki, added quickemu/quickgui for kvm roles --- hosts/loki/default.nix | 1 + hosts/workstation/default.nix | 1 + hosts/workstation/kvm.nix | 2 +- hosts/workstation/wine.nix | 15 +++++++++++++++ 4 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 hosts/workstation/wine.nix diff --git a/hosts/loki/default.nix b/hosts/loki/default.nix index bab543e..3ac4b8a 100644 --- a/hosts/loki/default.nix +++ b/hosts/loki/default.nix @@ -18,6 +18,7 @@ kmscon.enable = true; kvm.enable = true; games.enable = true; + # wine.enable = false; }; wm = { sway.enable = true; diff --git a/hosts/workstation/default.nix b/hosts/workstation/default.nix index c56ea7b..a35533a 100644 --- a/hosts/workstation/default.nix +++ b/hosts/workstation/default.nix @@ -35,6 +35,7 @@ in { ./tailscale.nix ./upgrade-diff.nix ./kmscon.nix + ./wine.nix ]; # Enable networking diff --git a/hosts/workstation/kvm.nix b/hosts/workstation/kvm.nix index 18201f9..e7ec5bb 100644 --- a/hosts/workstation/kvm.nix +++ b/hosts/workstation/kvm.nix @@ -5,6 +5,6 @@ in { options.roles.kvm = { enable = mkEnableOption "roles kvm"; }; config = mkIf cfg.enable { virtualisation.libvirtd.enable = true; - environment.systemPackages = with pkgs; [ gnome-boxes ]; + environment.systemPackages = with pkgs; [ gnome-boxes quickgui quickemu ]; }; } diff --git a/hosts/workstation/wine.nix b/hosts/workstation/wine.nix new file mode 100644 index 0000000..b87ea67 --- /dev/null +++ b/hosts/workstation/wine.nix @@ -0,0 +1,15 @@ +{ pkgs, inputs, config, lib, ... }: +with lib; +let cfg = config.roles.wine; +in { + options.roles.wine = { + enable = mkEnableOption "roles wine"; + }; + config = mkIf cfg.enable { + home-manager.users.don.home.packages = with pkgs; [ + # wineWowPackages.stable + wineWowPackages.waylandFull + winetricks + ]; + }; +}