From 44db2ce0b455f5176a4840ad3b6cb06ab2da5987 Mon Sep 17 00:00:00 2001 From: Sean Buckley Date: Sat, 4 May 2024 23:02:37 -0400 Subject: [PATCH] remove vmware horizon --- hosts/hp/default.nix | 1 - hosts/levi/default.nix | 1 - modules/horizon.nix | 23 ----------------------- 3 files changed, 25 deletions(-) delete mode 100644 modules/horizon.nix diff --git a/hosts/hp/default.nix b/hosts/hp/default.nix index ecb5935..48eda11 100644 --- a/hosts/hp/default.nix +++ b/hosts/hp/default.nix @@ -6,7 +6,6 @@ in sconfig = { gnome = true; desktop.enable = true; - horizon.enable = true; wg-home.enable = true; }; diff --git a/hosts/levi/default.nix b/hosts/levi/default.nix index ab31093..68754d0 100644 --- a/hosts/levi/default.nix +++ b/hosts/levi/default.nix @@ -18,7 +18,6 @@ in sconfig = { gnome = true; desktop.enable = true; - horizon.enable = true; wg-home = { enable = true; path = "${persist}/wireguard_home.conf"; }; }; diff --git a/modules/horizon.nix b/modules/horizon.nix deleted file mode 100644 index b1ec9cb..0000000 --- a/modules/horizon.nix +++ /dev/null @@ -1,23 +0,0 @@ -{ config, lib, pkgs, ... }: -let - cfg = config.sconfig.horizon; -in -{ - options.sconfig.horizon.enable = lib.mkEnableOption "Enable vmware-horizon"; - - config = lib.mkIf cfg.enable - { - systemd.services.vmware-usbarbitrator = { - serviceConfig.Type = "forking"; - wantedBy = [ "multi-user.target" ]; - script = "${pkgs.vmware-horizon-client}/bin/vmware-usbarbitrator"; - preStart = '' - vdir="/var/run/vmware/$(id -u sean)" - mkdir -p $vdir - chmod 700 $vdir - chown sean $vdir - ''; - }; - environment.systemPackages = [ pkgs.vmware-horizon-client ]; - }; -}