task | convert some files to modules
This commit is contained in:
parent
03921b35d7
commit
37828b6801
15 changed files with 222 additions and 109 deletions
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 ];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 ];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue