polkit and tidy sessions
This commit is contained in:
parent
de86eefa5e
commit
00d9145f7e
5 changed files with 31 additions and 10 deletions
|
|
@ -45,6 +45,21 @@
|
|||
services.avahi.enable = true;
|
||||
|
||||
security.pam.services.swaylock = { };
|
||||
security.polkit.enable = true;
|
||||
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;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
i18n.defaultLocale = "en_GB.UTF-8";
|
||||
|
||||
|
|
@ -53,11 +68,15 @@
|
|||
services.greetd = {
|
||||
enable = true;
|
||||
settings = rec {
|
||||
initial_session = {
|
||||
hypr_session = {
|
||||
command = "Hyprland";
|
||||
user = "tristan";
|
||||
};
|
||||
default_session = initial_session;
|
||||
sway_session = {
|
||||
command = "sway";
|
||||
user = "tristan";
|
||||
};
|
||||
default_session = hypr_session;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue