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";
};
};
}

View file

@ -1,3 +1,3 @@
{ pkgs, inputs, ... }: {
home-manager.users.don = { imports = [ ./citrix.nix ./zoom.nix ]; };
{ pkgs, inputs, lib, config, home-manager, outputs, ... }: {
imports = [ ./citrix.nix ./zoom.nix ];
}

View file

@ -1,19 +1,9 @@
{ config, pkgs, ... }: {
home.packages = with pkgs; [ zoom-us ];
# xdg = {
# configFile."zoom.conf".source = files/zoom.conf;
# configFile."zoomus.conf".source = files/zoomus.conf;
# desktopEntries = {
# myzoom = {
# name = "My Zoom-Zoom";
# exec = "/home/don/bin/myzoom %u";
# terminal = false;
# type = "Application";
# icon = "Zoom";
# comment = "Zoom Video";
# mimeType = ["x-scheme-handler/zoommtg" "x-scheme-handler/zoomus" "x-scheme-handler/tel" "x-scheme-handler/callto" "x-scheme-handler/zoomphonecall" "application/x-zoom"];
# categories = ["Network" "Application" "Application"];
# };
# };
# };
{ lib, config, pkgs, inputs, outputs, home-manager, ... }:
with lib;
let cfg = config.roles.zoom;
in {
options.roles.zoom = { enable = lib.mkEnableOption "citrix tools"; };
config = mkIf cfg.enable {
home-manager.users.don.home.packages = with pkgs; [ zoom-us ];
};
}