aboutsummaryrefslogtreecommitdiffstats
path: root/modules/scripts/default.nix
blob: 8cf14473cebed0c572afa3d31fff44a7a60b9652 (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."scripts/system-monitor" =
			lib.mkIf
				(config.tools.bottom.enable &&
				config.tools.nvtop.enable &&
				config.tools.tmux.enable &&
				config.tools.kitty.enable)
		{
			text = ''
#!${pkgs.bash}/bin/bash
${builtins.readFile ./system-monitor.sh}
'';
			executable = true;
		};
	};
}