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, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = sisyphus.programs.direnv;
|
cfg = config.sisyphus.programs.direnv;
|
||||||
in {
|
in {
|
||||||
options.sisyphus.programs.direnv.enable = lib.mkEnableOption "direnv";
|
options.sisyphus.programs.direnv.enable = lib.mkEnableOption "direnv";
|
||||||
|
|
||||||
|
@ -14,9 +14,9 @@ in {
|
||||||
|
|
||||||
# This is also done by setting programs.direnv.persistDerivations.
|
# This is also done by setting programs.direnv.persistDerivations.
|
||||||
# Keep derivations so shells don't break.
|
# Keep derivations so shells don't break.
|
||||||
nix.extraOption = ''
|
nix.extraOptions = ''
|
||||||
keep-outputs = true
|
keep-outputs = true
|
||||||
keep-derivations = true
|
keep-derivations = true
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
}
|
||||||
|
|
|
@ -77,12 +77,15 @@ mode $mode_screenshot bindsym {
|
||||||
}
|
}
|
||||||
|
|
||||||
set $mode_preferences "Toggle (d)ark mode, (s)unset, (n)otification"
|
set $mode_preferences "Toggle (d)ark mode, (s)unset, (n)otification"
|
||||||
bindsym $alt+end mode $mode_preferences {
|
bindsym $alt+end mode $mode_preferences
|
||||||
d exec "${SCRIPT_DIR}/toggle-light-dark.sh", mode $default
|
bindsym $alt+KP_End mode $mode_preferences
|
||||||
s exec "${SCRIPT_DIR}/sunset.sh", mode $default
|
mode $mode_preferences bindsym {
|
||||||
n exec "${SCRIPT_DIR}/do-not-disturb.sh", mode $default
|
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
|
||||||
|
|
||||||
Return mode $default
|
Return mode $default
|
||||||
Escape mode $default
|
Escape mode $default
|
||||||
$alt+end mode $default
|
$alt+end mode $default
|
||||||
|
$alt+KP_End mode $default
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue