Tuning/refactoring/etc

This commit is contained in:
Don Harper 2026-05-16 22:36:47 -05:00
parent cdfcbf76e3
commit 73482423ee
28 changed files with 189 additions and 211 deletions

View file

@ -1,6 +1,7 @@
{ lib, config, pkgs, inputs, outputs, home-manager, ... }:
{ lib, config, pkgs, inputs, outputs, home-manager, ... }@args:
with lib; let
cfg = config.roles.citrix;
osConfig = if args ? osConfig then args.osConfig else args.config;
cfg = if osConfig ? roles && osConfig.roles ? citrix then osConfig.roles.citrix else {enable = false;};
citrixPkgs = import inputs.nixpkgs {
system = pkgs.system;
config = pkgs.config // {
@ -9,14 +10,13 @@ with lib; let
};
};
in {
options.roles.citrix = {enable = lib.mkEnableOption "citrix tools";};
config = mkIf cfg.enable {
home-manager.users.don.home.packages = with citrixPkgs; [ citrix_workspace ];
home.packages = with citrixPkgs; [ citrix_workspace ];
nixpkgs.config = {
allowUnfree = true;
allowInsecure = true;
};
home-manager.users.don.home.file."ICAClient" = {
home.file."ICAClient" = {
recursive = true;
source = ./files/citrix;
target = ".ICAClient";