task | convert some files to modules

This commit is contained in:
Don Harper 2024-12-24 19:26:56 -06:00
parent 03921b35d7
commit 37828b6801
15 changed files with 222 additions and 109 deletions

View file

@ -1,18 +1,24 @@
{ config, pkgs, inputs, ... }: {
home.packages = with pkgs;
{ lib, config, pkgs, inputs, outputs, home-manager, ... }:
with lib;
let cfg = config.roles.citrix;
in {
options.roles.citrix = { enable = lib.mkEnableOption "citrix tools"; };
config = mkIf cfg.enable {
home-manager.users.don.home.packages = with pkgs;
[
(pkgs.citrix_workspace.override {
libvorbis = pkgs.libvorbis.override {
libogg = pkgs.libogg.overrideAttrs (prevAttrs: {
cmakeFlags = (prevAttrs.cmakeFlags or [ ])
++ [ (lib.cmakeBool "BUILD_SHARED_LIBS" true) ];
});
};
})
libvorbis = pkgs.libvorbis.override {
libogg = pkgs.libogg.overrideAttrs (prevAttrs: {
cmakeFlags = (prevAttrs.cmakeFlags or [ ])
++ [ (lib.cmakeBool "BUILD_SHARED_LIBS" true) ];
});
};
})
];
home.file."ICAClient" = {
recursive = true;
source = ./files/citrix;
target = ".ICAClient";
home-manager.users.don.home.file."ICAClient" = {
recursive = true;
source = ./files/citrix;
target = ".ICAClient";
};
};
}