aristotle: use greetd + tuigreet

This commit is contained in:
Guanran Wang 2024-07-21 13:32:29 +08:00
parent 8a1731ff35
commit 24412cd5e4
Signed by: nyancat
GPG key ID: 91F97D9ED12639CF

View file

@ -1,4 +1,8 @@
{pkgs, ...}: { {
lib,
pkgs,
...
}: {
imports = [ imports = [
../../nixos/profiles/opt-in/mihomo ../../nixos/profiles/opt-in/mihomo
../../nixos/profiles/opt-in/wireless ../../nixos/profiles/opt-in/wireless
@ -116,36 +120,41 @@
}; };
}; };
services.greetd = {
enable = true;
settings.default_session.command = "${lib.getExe pkgs.greetd.tuigreet} --cmd sway";
};
# polkit # polkit
security.polkit.enable = true; security.polkit.enable = true;
# systemd.user.services.polkit-gnome-authentication-agent-1 = { systemd.user.services.polkit-gnome-authentication-agent-1 = {
# description = "polkit-gnome-authentication-agent-1"; description = "polkit-gnome-authentication-agent-1";
# wantedBy = ["graphical-session.target"]; wantedBy = ["graphical-session.target"];
# wants = ["graphical-session.target"]; wants = ["graphical-session.target"];
# after = ["graphical-session.target"]; after = ["graphical-session.target"];
# serviceConfig = { serviceConfig = {
# Type = "simple"; Type = "simple";
# ExecStart = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1"; ExecStart = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1";
# Restart = "on-failure"; Restart = "on-failure";
# RestartSec = 1; RestartSec = 1;
# TimeoutStopSec = 10; TimeoutStopSec = 10;
# }; };
# }; };
# security.pam.services.swaylock = {}; security.pam.services.swaylock = {};
# xdg.portal = { xdg.portal = {
# enable = true; enable = true;
# xdgOpenUsePortal = true; xdgOpenUsePortal = true;
# wlr.enable = true; wlr.enable = true;
# extraPortals = [pkgs.xdg-desktop-portal-gtk]; extraPortals = [pkgs.xdg-desktop-portal-gtk];
# # https://gitlab.archlinux.org/archlinux/packaging/packages/sway/-/blob/main/sway-portals.conf # https://gitlab.archlinux.org/archlinux/packaging/packages/sway/-/blob/main/sway-portals.conf
# config."sway" = { config."sway" = {
# default = "gtk"; default = "gtk";
# "org.freedesktop.impl.portal.ScreenCast" = "wlr"; "org.freedesktop.impl.portal.ScreenCast" = "wlr";
# "org.freedesktop.impl.portal.Screenshot" = "wlr"; "org.freedesktop.impl.portal.Screenshot" = "wlr";
# "org.freedesktop.impl.portal.Inhibit" = "none"; "org.freedesktop.impl.portal.Inhibit" = "none";
# }; };
# }; };
### Removes debounce time ### Removes debounce time
# https://www.reddit.com/r/linux_gaming/comments/ku6gth # https://www.reddit.com/r/linux_gaming/comments/ku6gth