blob: c46065811dbcdac9d7da8f4f3944b8dedc1d0b8b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
{ config, lib, pkgs, ... }:
{
config = {
home.sessionPath = [
"${config.home.homeDirectory}/scripts"
];
home.file = let
shellScript = path: {
text = ''
#!${pkgs.bash}/bin/bash
${builtins.readFile path}
'';
executable = true;
};
in {
"scripts/system-monitor" = shellScript ./system-monitor.sh;
"scripts/warp-start" = shellScript ./warp-start.sh;
"scripts/warp-stop" = shellScript ./warp-stop.sh;
};
};
}
|