Fix direnv
This commit is contained in:
parent
39992187a6
commit
d9188bfd13
2 changed files with 13 additions and 10 deletions
|
@ -1,7 +1,7 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
cfg = sisyphus.programs.direnv;
|
||||
cfg = config.sisyphus.programs.direnv;
|
||||
in {
|
||||
options.sisyphus.programs.direnv.enable = lib.mkEnableOption "direnv";
|
||||
|
||||
|
@ -14,9 +14,9 @@ in {
|
|||
|
||||
# This is also done by setting programs.direnv.persistDerivations.
|
||||
# Keep derivations so shells don't break.
|
||||
nix.extraOption = ''
|
||||
nix.extraOptions = ''
|
||||
keep-outputs = true
|
||||
keep-derivations = true
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -77,7 +77,9 @@ mode $mode_screenshot bindsym {
|
|||
}
|
||||
|
||||
set $mode_preferences "Toggle (d)ark mode, (s)unset, (n)otification"
|
||||
bindsym $alt+end mode $mode_preferences {
|
||||
bindsym $alt+end mode $mode_preferences
|
||||
bindsym $alt+KP_End mode $mode_preferences
|
||||
mode $mode_preferences bindsym {
|
||||
d exec "${SCRIPT_DIR}/toggle-light-dark.sh", mode $default
|
||||
s exec "${SCRIPT_DIR}/sunset.sh", mode $default
|
||||
n exec "${SCRIPT_DIR}/do-not-disturb.sh", mode $default
|
||||
|
@ -85,4 +87,5 @@ bindsym $alt+end mode $mode_preferences {
|
|||
Return mode $default
|
||||
Escape mode $default
|
||||
$alt+end mode $default
|
||||
$alt+KP_End mode $default
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue