Alexandre 305352a3c4
All checks were successful
Check config / build (push) Successful in 9m47s
Finished porting the previous zed config, add more options later, maybe with local AI
2026-06-26 18:52:07 +02:00

44 lines
1.1 KiB
Nix

{ self, inputs, ... }:
{
flake.nixosModules.niri = { pkgs, lib, ... }: {
programs.niri = {
enable = true;
package = self.packages.${pkgs.stdenv.hostPlatform.system}.myNiri;
};
environment = {
systemPackages = with pkgs; [
wofi
firefox
];
};
};
perSystem = { pkgs, lib, ...}: {
packages.myNiri = inputs.wrapper-modules.wrappers.niri.wrap {
inherit pkgs;
settings = {
input.keyboard = {
xkb.layout = "fr";
};
layout = {
gaps = 5;
};
binds = {
"Mod+Return".spawn-sh = lib.getExe pkgs.kitty;
"Mod+R".spawn = [ "wofi" "--show" "drun"];
"Mod+Q".close-window = {};
# Audio
"XF86AudioRaiseVolume".spawn-sh = "wpctl set-volume -l 1.4 @DEFAULT_AUDIO_SINK@ 5%+";
"XF86AudioLowerVolume".spawn-sh = "wpctl set-volume -l 1.4 @DEFAULT_AUDIO_SINK@ 5%-";
"XF86AudioMute".spawn-sh = "wpctl set-mute @DEFAULT_AUDIO_SINK toogle";
};
xwayland-satellite.path = lib.getExe pkgs.xwayland-satellite;
};
};
};
}