treewide: ran deadnix

This commit is contained in:
Rouven Seifert 2024-03-11 22:48:42 +01:00
parent 75ef09ca41
commit 0655bc7be8
Signed by: rouven.seifert
GPG key ID: B95E8FE6B11C4D09
5 changed files with 10 additions and 11 deletions

View file

@ -180,11 +180,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1710062421, "lastModified": 1710164657,
"narHash": "sha256-FiCNRfyUgJOLYIokLiFsfI7B+Zn9HDnOzFR3uVr5qsQ=", "narHash": "sha256-l64+ZjaQAVkHDVaK0VHwtXBdjcBD6nLBD+p7IfyBp/w=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "36f873dfc8e2b6b89936ff3e2b74803d50447e0a", "rev": "017b12de5b899ef9b64e2c035ce257bfe95b8ae2",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -3,11 +3,10 @@ let
inherit (prev) callPackage; inherit (prev) callPackage;
inherit (prev) fetchFromGitHub; inherit (prev) fetchFromGitHub;
inherit (prev) fetchPypi; inherit (prev) fetchPypi;
inherit (prev) fetchpatch;
inherit (prev) makeWrapper; inherit (prev) makeWrapper;
inherit (prev) python3Packages; inherit (prev) python3Packages;
in in
rec { {
pww = callPackage ../pkgs/pww { }; pww = callPackage ../pkgs/pww { };
ianny = callPackage ../pkgs/ianny { }; ianny = callPackage ../pkgs/ianny { };

View file

@ -1,4 +1,4 @@
{ pkgs, ... }: { ... }:
{ {
programs.git = { programs.git = {
enable = true; enable = true;

View file

@ -39,11 +39,11 @@
K = ''send-layout-cmd rivertile "main-count +1"''; K = ''send-layout-cmd rivertile "main-count +1"'';
L = ''send-layout-cmd rivertile "main-ratio +0.05"''; L = ''send-layout-cmd rivertile "main-ratio +0.05"'';
}; };
"Alt" = builtins.mapAttrs (key: bind: "spawn " + bind) { "Alt" = builtins.mapAttrs (_key: bind: "spawn " + bind) {
Space = "${pkgs.fuzzel}/bin/fuzzel"; Space = "${pkgs.fuzzel}/bin/fuzzel";
A = "${pkgs.wofi-emoji}/bin/wofi-emoji"; A = "${pkgs.wofi-emoji}/bin/wofi-emoji";
}; };
"None" = builtins.mapAttrs (key: bind: "spawn \"" + bind + "\"") { "None" = builtins.mapAttrs (_key: bind: "spawn \"" + bind + "\"") {
Print = "${pkgs.sway-contrib.grimshot}/bin/grimshot copy area"; Print = "${pkgs.sway-contrib.grimshot}/bin/grimshot copy area";
XF86Launch2 = "${pkgs.sway-contrib.grimshot}/bin/grimshot save area - | ${pkgs.swappy}/bin/swappy -f -"; XF86Launch2 = "${pkgs.sway-contrib.grimshot}/bin/grimshot save area - | ${pkgs.swappy}/bin/swappy -f -";
XF86MonBrightnessUp = "${pkgs.light}/bin/light -A 10"; XF86MonBrightnessUp = "${pkgs.light}/bin/light -A 10";
@ -56,7 +56,7 @@
XF86Messenger = "${pkgs.swaynotificationcenter}/bin/swaync-client --toggle-panel"; XF86Messenger = "${pkgs.swaynotificationcenter}/bin/swaync-client --toggle-panel";
Cancel = "${pkgs.swaynotificationcenter}/bin/swaync-client --hide-latest"; Cancel = "${pkgs.swaynotificationcenter}/bin/swaync-client --hide-latest";
}; };
"Shift" = builtins.mapAttrs (key: bind: "spawn \"" + bind + "\"") { "Shift" = builtins.mapAttrs (_key: bind: "spawn \"" + bind + "\"") {
XF86AudioRaiseVolume = "${pkgs.pulseaudio}/bin/pactl set-source-volume @DEFAULT_SOURCE@ +5%"; XF86AudioRaiseVolume = "${pkgs.pulseaudio}/bin/pactl set-source-volume @DEFAULT_SOURCE@ +5%";
XF86AudioLowerVolume = "${pkgs.pulseaudio}/bin/pactl set-source-volume @DEFAULT_SOURCE@ -5%"; XF86AudioLowerVolume = "${pkgs.pulseaudio}/bin/pactl set-source-volume @DEFAULT_SOURCE@ -5%";
Cancel = "${pkgs.swaynotificationcenter}/bin/swaync-client --cloes-all"; Cancel = "${pkgs.swaynotificationcenter}/bin/swaync-client --cloes-all";
@ -64,7 +64,7 @@
} }
# fuckery. Encodes https://github.com/riverwm/river/blob/c474be1537c833da35682ef54194c3d6ddf1eee0/example/init#L77 in nix # fuckery. Encodes https://github.com/riverwm/river/blob/c474be1537c833da35682ef54194c3d6ddf1eee0/example/init#L77 in nix
(lib.attrsets.mapAttrs (lib.attrsets.mapAttrs
(mod: value: lib.attrsets.genAttrs (lib.lists.forEach (lib.lists.range 1 9) (num: toString num)) (_mod: value: lib.attrsets.genAttrs (lib.lists.forEach (lib.lists.range 1 9) (num: toString num))
(tag: value + builtins.replaceStrings [ "TAG" ] [ tag ] " $((1 << (TAG - 1)))")) (tag: value + builtins.replaceStrings [ "TAG" ] [ tag ] " $((1 << (TAG - 1)))"))
{ {
"Super" = "set-focused-tags"; "Super" = "set-focused-tags";

View file

@ -1,4 +1,4 @@
{ config, pkgs, lib, ... }: { config, pkgs, ... }:
{ {
systemd.user.services.waybar.Service.Environment = "PATH=${pkgs.swaynotificationcenter}/bin"; systemd.user.services.waybar.Service.Environment = "PATH=${pkgs.swaynotificationcenter}/bin";
programs.waybar = { programs.waybar = {