diff options
| author | Fuwn <[email protected]> | 2024-09-23 01:01:28 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-09-23 01:01:28 -0700 |
| commit | 1ead23b7e642a0306733b6552f3d56ffed85937a (patch) | |
| tree | 915404df4317daf9d109b03f53041d4ca64b8844 /home/ebisu/fortune/scripts | |
| parent | server: add beszel (diff) | |
| download | nixos-config-1ead23b7e642a0306733b6552f3d56ffed85937a.tar.xz nixos-config-1ead23b7e642a0306733b6552f3d56ffed85937a.zip | |
ebisu: set up rui notifier
Diffstat (limited to 'home/ebisu/fortune/scripts')
| -rw-r--r-- | home/ebisu/fortune/scripts/default.nix | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/home/ebisu/fortune/scripts/default.nix b/home/ebisu/fortune/scripts/default.nix index fe83721..26a1231 100644 --- a/home/ebisu/fortune/scripts/default.nix +++ b/home/ebisu/fortune/scripts/default.nix @@ -1,15 +1,16 @@ { pkgs, ... }: -let - scriptDir = ./scripts; - - generateScripts = builtins.listToAttrs ( - builtins.map (name: { - inherit name; - - value = pkgs.writeShellScriptBin name (builtins.readFile "${scriptDir}/${name}"); - }) (builtins.attrNames (builtins.readDir scriptDir)) - ); -in { - home.packages = builtins.attrValues generateScripts; + 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)) + ) + ); } |