mirror of
https://github.com/nmasur/dotfiles
synced 2025-07-06 19:00:14 +00:00
fix infinite recursion by namespacing new pkgs
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
@ -43,7 +44,7 @@ in
|
||||
body = builtins.readFile ./functions/fish_user_key_bindings.fish;
|
||||
};
|
||||
ip = {
|
||||
body = builtins.readFile ./functions/ip.fish;
|
||||
body = lib.getExe pkgs.nmasur.ip-check;
|
||||
};
|
||||
json = {
|
||||
description = "Tidy up JSON using jq";
|
||||
|
@ -20,7 +20,7 @@ in
|
||||
gitCredentialHelper.enable = true;
|
||||
settings.git_protocol = "https";
|
||||
extensions = [
|
||||
pkgs.gh-collaborators
|
||||
pkgs.nmasur.gh-collaborators
|
||||
pkgs.gh-dash
|
||||
pkgs.gh-copilot
|
||||
];
|
||||
|
@ -47,7 +47,7 @@ in
|
||||
pkgs.ponymix
|
||||
rofi
|
||||
];
|
||||
text = builtins.readFile ./rofi/pulse-sink.sh;
|
||||
text = builtins.readFile ./pulse-sink.sh;
|
||||
}
|
||||
);
|
||||
};
|
||||
|
@ -20,7 +20,7 @@ in
|
||||
wallpaper = lib.mkOption {
|
||||
type = lib.types.path;
|
||||
description = "Wallpaper background image file";
|
||||
default = "${pkgs.wallpapers}/gruvbox/road.jpg";
|
||||
default = "${pkgs.nmasur.wallpapers}/gruvbox/road.jpg";
|
||||
};
|
||||
commands = {
|
||||
launcher = lib.mkOption {
|
||||
|
@ -162,7 +162,7 @@ in
|
||||
ramp-volume-0 = "";
|
||||
ramp-volume-1 = "";
|
||||
ramp-volume-2 = "";
|
||||
click-right = config.audioSwitchCommand;
|
||||
click-right = config.nmasur.presets.services.i3.commands.audioSwitch;
|
||||
};
|
||||
# "module/xkeyboard" = {
|
||||
# type = "internal/xkeyboard";
|
||||
@ -217,7 +217,7 @@ in
|
||||
"module/power" = {
|
||||
type = "custom/text";
|
||||
content = " ";
|
||||
click-left = config.powerCommand;
|
||||
click-left = config.nmasur.presets.services.i3.commands.toggleBar;
|
||||
click-right = "polybar-msg cmd restart";
|
||||
content-foreground = config.theme.colors.base04;
|
||||
};
|
||||
|
@ -14,23 +14,23 @@ let
|
||||
increaseVolume = pkgs.writeShellScriptBin "increaseVolume" ''
|
||||
${pkgs.pamixer}/bin/pamixer -i 2
|
||||
volume=$(${pkgs.pamixer}/bin/pamixer --get-volume)
|
||||
${pkgs.volnoti}/bin/volnoti-show $volume
|
||||
${pkgs.nmasur.volnoti}/bin/volnoti-show $volume
|
||||
'';
|
||||
|
||||
decreaseVolume = pkgs.writeShellScriptBin "decreaseVolume" ''
|
||||
${pkgs.pamixer}/bin/pamixer -d 2
|
||||
volume=$(${pkgs.pamixer}/bin/pamixer --get-volume)
|
||||
${pkgs.volnoti}/bin/volnoti-show $volume
|
||||
${pkgs.nmasur.volnoti}/bin/volnoti-show $volume
|
||||
'';
|
||||
|
||||
toggleMute = pkgs.writeShellScriptBin "toggleMute" ''
|
||||
${pkgs.pamixer}/bin/pamixer --toggle-mute
|
||||
mute=$(${pkgs.pamixer}/bin/pamixer --get-mute)
|
||||
if [ "$mute" == "true" ]; then
|
||||
${pkgs.volnoti}/bin/volnoti-show --mute
|
||||
${pkgs.nmasur.volnoti}/bin/volnoti-show --mute
|
||||
else
|
||||
volume=$(${pkgs.pamixer}/bin/pamixer --get-volume)
|
||||
${pkgs.volnoti}/bin/volnoti-show $volume
|
||||
${pkgs.nmasur.volnoti}/bin/volnoti-show $volume
|
||||
fi
|
||||
'';
|
||||
in
|
||||
|
Reference in New Issue
Block a user