feat: niri settings
This commit is contained in:
parent
a40a2eb630
commit
be828a1ac6
2 changed files with 28 additions and 20 deletions
|
@ -46,7 +46,32 @@
|
|||
programs.niri = {
|
||||
enable = true;
|
||||
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" ]; };
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -51,24 +51,7 @@
|
|||
};
|
||||
};
|
||||
|
||||
xdg.portal.config = {
|
||||
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;
|
||||
};
|
||||
};
|
||||
xdg.portal.config.common.default = [ "gtk" "gnome" ];
|
||||
|
||||
services.ssh-agent.enable = true;
|
||||
|
||||
|
|
Loading…
Reference in a new issue