feat: niri settings

This commit is contained in:
Ahurac 2024-10-12 14:47:10 +02:00
parent a40a2eb630
commit be828a1ac6
2 changed files with 28 additions and 20 deletions

View file

@ -46,7 +46,32 @@
programs.niri = { programs.niri = {
enable = true; enable = true;
package = pkgs.niri; package = pkgs.niri;
settings = {
input = {
keyboard.xkb.layout = "fr";
touchpad = {
tap = true;
natural-scroll = true;
accel-profile = "flat";
}; };
mouse.accel-profile = "flat";
warp-mouse-to-focus = true;
focus-follows-mouse.max-scroll-amount = "0%";
};
outputs."eDP-1" = { scale = 1; };
layout = {
gaps = 10;
focus-ring = {
width = 4;
active.color = "#10f810bb";
inactive.color = "#80808080";
};
};
prefer-no-csd = true;
screenshot-path = "~/screenshots/%Y%m%d%H%m%N.png";
binds = {
systemd.user.services.niri = { wants = [ "mako" ]; }; };
};
};
} }

View file

@ -51,24 +51,7 @@
}; };
}; };
xdg.portal.config = { xdg.portal.config.common.default = [ "gtk" "gnome" ];
common.default = [ "gtk" "gnome" ];
"org.freedesktop.impl.portal.Secret" = [ "gnome-keyring" ];
};
systemd.user.services.polkit-gnome-authentication-agent-1 = {
description = "polkit-gnome-authentication-agent-1";
wantedBy = [ "graphical-session.target" ];
wants = [ "graphical-session.target" ];
after = [ "graphical-session.target" ];
serviceConfig = {
Type = "simple";
ExecStart =
"${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1";
Restart = "on-failure";
RestartSec = 1;
TimeoutStopSec = 10;
};
};
services.ssh-agent.enable = true; services.ssh-agent.enable = true;