home: scripts: simplify
This commit is contained in:
parent
207007fc9c
commit
dab5048159
1 changed files with 9 additions and 14 deletions
|
@ -2,25 +2,20 @@
|
||||||
binPATH = ".local/bin";
|
binPATH = ".local/bin";
|
||||||
in {
|
in {
|
||||||
home.sessionPath = ["$HOME/${binPATH}"];
|
home.sessionPath = ["$HOME/${binPATH}"];
|
||||||
home.file = {
|
home.file = builtins.mapAttrs (name: value: value // {executable = true;}) {
|
||||||
${binPATH} = {
|
${binPATH} = {
|
||||||
source = ./bin;
|
source = ./bin;
|
||||||
recursive = true;
|
recursive = true;
|
||||||
executable = true;
|
|
||||||
};
|
};
|
||||||
"${binPATH}/lofi" = {
|
|
||||||
source = pkgs.fetchurl {
|
"${binPATH}/lofi".source = pkgs.fetchurl {
|
||||||
url = "https://raw.githubusercontent.com/lime-desu/bin/69422c37582c5914863997c75c268791a0de136e/lofi";
|
url = "https://raw.githubusercontent.com/lime-desu/bin/69422c37582c5914863997c75c268791a0de136e/lofi";
|
||||||
hash = "sha256-hT+S/rqOHUYnnFcSDFfQht4l1DGasz1L3wDHKUWLraA=";
|
hash = "sha256-hT+S/rqOHUYnnFcSDFfQht4l1DGasz1L3wDHKUWLraA=";
|
||||||
};
|
|
||||||
executable = true;
|
|
||||||
};
|
};
|
||||||
"${binPATH}/screenshot" = {
|
|
||||||
source = pkgs.fetchurl {
|
"${binPATH}/screenshot".source = pkgs.fetchurl {
|
||||||
url = "https://raw.githubusercontent.com/nwg-piotr/nwg-shell/c29e8eb4658a2613fb221ead0b101c75f457bcaf/scripts/screenshot";
|
url = "https://raw.githubusercontent.com/nwg-piotr/nwg-shell/c29e8eb4658a2613fb221ead0b101c75f457bcaf/scripts/screenshot";
|
||||||
hash = "sha256-Z/fWloz8pLHsvPTPOeBxnbMsGDRTY3G3l/uePQ3ZxjU=";
|
hash = "sha256-Z/fWloz8pLHsvPTPOeBxnbMsGDRTY3G3l/uePQ3ZxjU=";
|
||||||
};
|
|
||||||
executable = true;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue