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
20
nix/lib/shared/scripts/timer.nix
Normal file
20
nix/lib/shared/scripts/timer.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
name = "timer";
|
||||
|
||||
runtimeInputs = [ ];
|
||||
|
||||
text = ''
|
||||
if [[ "$1" == "" ]]; then
|
||||
echo "Usage: ''${0##*/} <mins> [message]"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
mins=$1
|
||||
message=$2
|
||||
|
||||
nohup _timer "$mins" "$message" &> /dev/null &
|
||||
|
||||
echo "timer started for $mins min"
|
||||
echo "timer started for $mins min, message: '$message'" | systemd-cat -t timer
|
||||
'';
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue