Compare commits
5 Commits
b1c55cd56d
...
fa61617816
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fa61617816 | ||
|
|
1787e510ed | ||
|
|
691fa486f5 | ||
|
|
d78a1db1ff | ||
|
|
4dcbb06296 |
@@ -6,8 +6,8 @@
|
|||||||
enableZshIntegration = true;
|
enableZshIntegration = true;
|
||||||
nix-direnv.enable = true;
|
nix-direnv.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
home.file.".config/direnv/direnvrc" = {
|
home.sessionVariables = {
|
||||||
source = ./direnv/direnvrc;
|
DIRENV_CACHE = "${config.home.homeDirectory}/.cache/direnv";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,15 +0,0 @@
|
|||||||
# Place in ~/.config/direnv/direnvrc
|
|
||||||
|
|
||||||
# Two things to know:
|
|
||||||
# * `direnv_layour_dir` is called once for every {.direnvrc,.envrc} sourced
|
|
||||||
# * The indicator for a different direnv file being sourced is a different $PWD value
|
|
||||||
# This means we can hash $PWD to get a fully unique cache path for any given environment
|
|
||||||
|
|
||||||
: ${XDG_CACHE_HOME:=$HOME/.cache}
|
|
||||||
declare -A direnv_layout_dirs
|
|
||||||
direnv_layout_dir() {
|
|
||||||
echo "${direnv_layout_dirs[$PWD]:=$(
|
|
||||||
echo -n "$XDG_CACHE_HOME"/direnv/layouts/
|
|
||||||
echo -n "$PWD" | sha1sum | cut -d ' ' -f 1
|
|
||||||
)}"
|
|
||||||
}
|
|
||||||
@@ -4,12 +4,6 @@
|
|||||||
programs.firefox = {
|
programs.firefox = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
profiles.default = {
|
|
||||||
settings = {
|
|
||||||
"extensions.activeThemeID" = "firefox-compact-dark@mozilla.org";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
policies = {
|
policies = {
|
||||||
# From https://discourse.nixos.org/t/declare-firefox-extensions-and-settings/36265/17
|
# From https://discourse.nixos.org/t/declare-firefox-extensions-and-settings/36265/17
|
||||||
ExtensionSettings = with builtins;
|
ExtensionSettings = with builtins;
|
||||||
|
|||||||
@@ -122,8 +122,6 @@
|
|||||||
", XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"
|
", XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"
|
||||||
", XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+"
|
", XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+"
|
||||||
", XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"
|
", XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"
|
||||||
", XF86AudioNext, exec, playerctl next"
|
|
||||||
", XF86AudioPrev, exec, playerctl previous"
|
|
||||||
];
|
];
|
||||||
|
|
||||||
bindm = [
|
bindm = [
|
||||||
|
|||||||
Reference in New Issue
Block a user