#W# Initial Commit: NixOS
This commit is contained in:
commit
f79adc1a63
77 changed files with 15125 additions and 0 deletions
18
home-manager/modules/scripts.nix
Executable file
18
home-manager/modules/scripts.nix
Executable file
|
|
@ -0,0 +1,18 @@
|
|||
{ pkgs, ... }:
|
||||
let
|
||||
# This packages your script and its dependencies
|
||||
nerdfont-search = pkgs.writeShellScriptBin "nfPicker" ''
|
||||
# We reference the CSV file.
|
||||
# If you put nerdfont.csv in the same folder as this nix file:
|
||||
CSV_PATH="${../files/nerdfont.csv}"
|
||||
|
||||
# Run the pipeline using packages from the Nix store
|
||||
cat "$CSV_PATH" | ${pkgs.fuzzel}/bin/fuzzel -d | ${pkgs.gawk}/bin/gawk -F, '{printf $3}' | ${pkgs.wl-clipboard}/bin/wl-copy
|
||||
${pkgs.wl-clipboard}/bin/wl-paste
|
||||
'';
|
||||
in
|
||||
{
|
||||
home.packages = [
|
||||
nerdfont-search
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue