2024-03-07 00:07:23 +01:00
|
|
|
{
|
|
|
|
lib,
|
2024-05-20 19:40:05 +02:00
|
|
|
config,
|
2024-03-07 00:07:23 +01:00
|
|
|
pkgs,
|
|
|
|
...
|
2024-03-07 11:38:49 +01:00
|
|
|
}: let
|
2024-05-20 20:53:29 +02:00
|
|
|
cfg = config.myConfig.greetd;
|
2024-03-14 09:53:30 +01:00
|
|
|
themeEnv = ''
|
|
|
|
export XDG_DATA_DIRS="${pkgs.whitesur-gtk-theme}/share:$XDG_DATA_DIRS"
|
|
|
|
export XDG_DATA_DIRS="${pkgs.whitesur-icon-theme}/share:$XDG_DATA_DIRS"
|
|
|
|
export XDG_DATA_DIRS="${pkgs.whitesur-cursors}/share:$XDG_DATA_DIRS"
|
2024-03-07 11:38:49 +01:00
|
|
|
'';
|
|
|
|
in {
|
2024-05-20 20:53:29 +02:00
|
|
|
options.myConfig.greetd = {
|
|
|
|
enable = lib.mkEnableOption "greetd, a light weight greater deamon";
|
2024-05-20 19:40:05 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
environment.extraInit = themeEnv;
|
|
|
|
programs.regreet = {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
|
|
|
background = {
|
|
|
|
fit = "Contain";
|
|
|
|
path = ../../assets/bg4k.png;
|
|
|
|
};
|
|
|
|
GTK = {
|
|
|
|
application_prefer_dark_theme = true;
|
2024-11-25 22:27:37 +01:00
|
|
|
cursor_theme_name = lib.mkForce "capitaine-cursors-white";
|
|
|
|
font_name = lib.mkForce "FiraCode Nerd Font 20";
|
|
|
|
icon_theme_name = lib.mkForce "WhiteSur-dark";
|
|
|
|
theme_name = lib.mkForce "WhiteSur-Dark";
|
2024-05-20 19:40:05 +02:00
|
|
|
};
|
|
|
|
commands = {
|
|
|
|
reboot = ["systemctl" "reboot"];
|
|
|
|
poweroff = ["systemctl" "poweroff"];
|
|
|
|
};
|
2024-03-07 11:45:35 +01:00
|
|
|
};
|
|
|
|
};
|
2024-03-07 11:10:34 +01:00
|
|
|
|
2024-05-20 19:40:05 +02:00
|
|
|
users.users.greeter = {
|
|
|
|
isNormalUser = false;
|
|
|
|
description = "Greeter";
|
|
|
|
extraGroups = [];
|
|
|
|
};
|
2024-03-07 11:38:49 +01:00
|
|
|
|
2024-05-20 19:40:05 +02:00
|
|
|
services.greetd.enable = true;
|
2024-03-07 00:07:23 +01:00
|
|
|
|
2024-05-20 19:40:05 +02:00
|
|
|
environment.etc."greetd/environments".text = ''
|
|
|
|
sway
|
|
|
|
'';
|
2024-03-13 22:12:57 +01:00
|
|
|
|
2024-05-20 19:40:05 +02:00
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
whitesur-gtk-theme
|
|
|
|
whitesur-icon-theme
|
|
|
|
whitesur-cursors
|
|
|
|
];
|
|
|
|
};
|
2024-03-07 00:07:23 +01:00
|
|
|
}
|