Skip to content

Commit

Permalink
📦 Added the xclip package in the common home role
Browse files Browse the repository at this point in the history
  • Loading branch information
theobori committed Dec 1, 2024
1 parent 91f24e3 commit 9bb7b67
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
20 changes: 20 additions & 0 deletions modules/home/cli/programs/xclip/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
pkgs,
config,
lib,
namespace,
...
}:
let
inherit (lib) mkIf;
inherit (lib.${namespace}) mkBoolOpt;

cfg = config.${namespace}.cli.programs.xclip;
in
{
options.${namespace}.cli.programs.xclip = {
enable = mkBoolOpt false "Whether or not to enable xclip.";
};

config = mkIf cfg.enable { home.packages = with pkgs; [ xclip ]; };
}
1 change: 1 addition & 0 deletions modules/home/roles/common/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ in
dua = enabled;
killall = enabled;
file-tools = enabled;
xclip = enabled;
};
};

Expand Down

0 comments on commit 9bb7b67

Please sign in to comment.