diff options
| author | Fuwn <[email protected]> | 2024-10-23 03:40:38 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-10-23 03:40:38 -0700 |
| commit | acd679c65a0dbd8020dfd7f6e3ea6f1e955fab94 (patch) | |
| tree | ceda1acda86dc4b39e7889fdc4dbde7fe11f29a2 /home/ebisu/kansai/scripts/default.nix | |
| parent | home: simplify akashi module population (diff) | |
| download | nixos-config-acd679c65a0dbd8020dfd7f6e3ea6f1e955fab94.tar.xz nixos-config-acd679c65a0dbd8020dfd7f6e3ea6f1e955fab94.zip | |
home: move fortune modules up into kansai module
Diffstat (limited to 'home/ebisu/kansai/scripts/default.nix')
| -rw-r--r-- | home/ebisu/kansai/scripts/default.nix | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/home/ebisu/kansai/scripts/default.nix b/home/ebisu/kansai/scripts/default.nix new file mode 100644 index 0000000..26a1231 --- /dev/null +++ b/home/ebisu/kansai/scripts/default.nix @@ -0,0 +1,16 @@ +{ pkgs, ... }: +{ + home.packages = + let + scriptsDirectory = ./scripts; + in + builtins.attrValues ( + builtins.listToAttrs ( + builtins.map (name: { + inherit name; + + value = pkgs.writeShellScriptBin name (builtins.readFile "${scriptsDirectory}/${name}"); + }) (builtins.attrNames (builtins.readDir scriptsDirectory)) + ) + ); +} |