dotfiles/user-modules/scripts/default.nix

22 lines
386 B
Nix
Raw Normal View History

2025-02-15 15:28:38 +00:00
{
config,
lib,
pkgs,
...
}:
with lib;
let
cfg = config.modules.scripts;
in
{
options.modules.scripts.enable = mkEnableOption "scripts";
config = mkIf cfg.enable {
# home.packages = with pkgs; map (path: (writeShellScriptBin "${path}" (readFile path))) scripts;
home.packages = with pkgs; [
(writeShellScriptBin "mkenv" (readFile ./mkenv.sh))
];
};
}