fixed onChange

This commit is contained in:
Moritz Böhme 2021-09-09 21:56:14 +02:00
parent 84f303eed6
commit cc61f02266

View file

@ -1,8 +1,8 @@
{ config, pkgs, ... }:
{ lib, pkgs, ... }:
{
# Let Home Manager install and manage itself.
programs.home-manager.enable = true;
# programs.home-manager.enable = true;
# paths it should manage.
home.username = "moritz";
@ -101,13 +101,24 @@
onChange = "pkill -USR1 -x sxhkd";
};
"bspwm/bspwmrc" = {
source = ~/.dotfiles/config/bspwm/bspwmrc;
source = /home/moritz/.dotfiles/config/bspwm/bspwmrc;
onChange = "bspc wm -r";
};
"doom" = {
source = ~/.dotfiles/config/doom;
recursive = true;
onChange = builtins.readFile ~/.dotfiles/config/doom/reload.sh;
# onChange = builtins.readFile ~/.dotfiles/config/doom/reload.sh;
onChange = ''
#!/bin/sh
DOOM="$HOME/.emacs.d"
if [ ! -d "$DOOM" ]; then
git clone https://github.com/hlissner/doom-emacs.git "$DOOM"
"$DOOM/bin/doom" -y install
fi
"$DOOM/bin/doom" sync
'';
};
"dunst/dunstrc" = {
source = ~/.dotfiles/config/dunst/dunstrc;
@ -155,12 +166,6 @@
keepassxc
];
nixpkgs.overlays = [
(import (builtins.fetchTarball {
url = https://github.com/nix-community/emacs-overlay/archive/master.tar.gz;
}))
];
# This value determines the Home Manager release that your
# configuration is compatible with. This helps avoid breakage
# when a new Home Manager release introduces backwards