diff options
Diffstat (limited to 'programs')
-rwxr-xr-x | programs/scripts/watchfile.sh | 2 | ||||
-rw-r--r-- | programs/texlive.nix | 11 | ||||
-rw-r--r-- | programs/zsh.nix | 5 |
3 files changed, 18 insertions, 0 deletions
diff --git a/programs/scripts/watchfile.sh b/programs/scripts/watchfile.sh new file mode 100755 index 0000000..064a226 --- /dev/null +++ b/programs/scripts/watchfile.sh @@ -0,0 +1,2 @@ +#!/bin/sh +while inotifywait -e close_write $1; do $2; done diff --git a/programs/texlive.nix b/programs/texlive.nix new file mode 100644 index 0000000..02bc236 --- /dev/null +++ b/programs/texlive.nix @@ -0,0 +1,11 @@ +{ pkgs, ... }: +let + tex = (pkgs.texlive.combine { + inherit (pkgs.texlive) scheme-basic + }); +in +{ + home.packages = with pkgs; [ + tex + ] +} diff --git a/programs/zsh.nix b/programs/zsh.nix index 8d8fc91..03a096f 100644 --- a/programs/zsh.nix +++ b/programs/zsh.nix @@ -1,11 +1,16 @@ { config, pkgs, ... }: { + home.packages = with pkgs; [ + inotify-tools + ]; + programs.zsh = { enable = true; shellAliases = { ll = "ls -l"; unixos = "sudo nixos-rebuild switch --flake /etc/nixos"; uhome = "home-manager switch --flake /etc/nixos"; + watchfile = "/etc/nixos/programs/scripts/watchfile.sh "; }; history = { size = 10000; |