Tuning/refactoring/etc
This commit is contained in:
parent
cdfcbf76e3
commit
73482423ee
28 changed files with 189 additions and 211 deletions
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue