dotfiles/machines/common/linux/greeter.nix

85 lines
2.1 KiB
Nix
Raw Normal View History

{
config,
lib,
pkgs,
...
}: let
greetdConfig = pkgs.writeText "greetd-config" ''
2023-05-20 08:27:56 +02:00
output "*" {
scale 2
}
exec "dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP"
seat seat0 xcursor_theme "Numix-Cursor" 24
xwayland disable
exec "${lib.getExe config.programs.regreet.package}; swaymsg exit"
'';
in {
programs.regreet = {
enable = true;
settings = {
background = {
path = ../../../home/wallpapers/dhm_1610.png;
fit = "Cover";
};
GTK = {
font_name = "IBM Plex Mono 16";
cursor_theme_name = "Numix-Cursor";
2023-05-20 08:27:56 +02:00
icon_theme_name = "Papirus";
theme_name = "Catppuccin-Mocha-Compact-Pink-Dark";
};
};
};
services.greetd.settings.default_session.command = "${lib.getExe config.programs.sway.package} --config ${greetdConfig}";
services.gnome.gnome-keyring.enable = true;
programs.hyprland = {
enable = true;
xwayland.enable = true;
xwayland.hidpi = true;
};
2023-05-19 04:07:58 +02:00
security.pam = {
u2f = {
enable = true;
cue = true;
};
services.greetd = {
enableGnomeKeyring = true;
u2fAuth = true;
};
};
security.polkit.enable = true;
2023-05-19 04:07:58 +02:00
systemd = {
packages = [pkgs.polkit_gnome];
user.services.polkit-gnome-authentication-agent-1 = {
unitConfig = {
Description = "polkit-gnome-authentication-agent-1";
Wants = ["graphical-session.target"];
WantedBy = ["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;
};
};
};
2023-06-11 05:17:43 +02:00
environment.systemPackages = with pkgs; [
(catppuccin-gtk.override {
accents = ["pink"];
variant = "mocha";
size = "compact";
})
2023-06-11 05:17:43 +02:00
(catppuccin-papirus-folders.override {
flavor = "mocha";
accent = "pink";
})
numix-cursor-theme
xorg.xprop
];
}