Move Nix files into a nix directory
Move everything from `config` to the root level.
This commit is contained in:
parent
9f47df62b5
commit
69a397e624
124 changed files with 14 additions and 14 deletions
nix/lib/shared/scripts
13
nix/lib/shared/scripts/_timer.nix
Normal file
13
nix/lib/shared/scripts/_timer.nix
Normal file
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
name = "_timer";
|
||||
|
||||
runtimeInputs = [ ];
|
||||
|
||||
text = ''
|
||||
mins=$1
|
||||
message=''${2:-Time out!}
|
||||
|
||||
sleep -- "$mins" * 60
|
||||
notify-send -t 0 "''${message}" "Your timer of $mins min is over" -u normal
|
||||
'';
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue