aboutsummaryrefslogtreecommitdiffstats
path: root/modules/scripts/default.nix
blob: f421543f6ac65e766b1749ed027a06eadc4c6b23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{ config, lib, pkgs, ... }:

{
	options.scripts = {
		enable = lib.mkEnableOption "Enable scripts.";
	};

	config = lib.mkIf config.scripts.enable {
		home.sessionPath = [
			"${config.home.homeDirectory}/scripts"
		];

		home.file."scripts/restart-network" = {
			source = ./restart-network.sh;
			executable = true;
		};
	};
}