nix-config/modules/regreet/regreet.nix

45 lines
1.1 KiB
Nix
Raw Normal View History

2025-03-28 11:44:46 +01:00
{ pkgs, username, ... }: {
2025-03-28 11:28:56 +01:00
2025-03-28 16:47:30 +01:00
services.cage = {
enable = true;
user = username;
};
2025-03-28 16:35:54 +01:00
environment.etc = {
2025-03-28 17:11:36 +01:00
"background.jpg".source = ./background.jpg;
2025-03-28 16:39:51 +01:00
};
2025-03-28 11:28:56 +01:00
2025-03-28 11:52:32 +01:00
programs.regreet = {
2025-03-28 11:28:56 +01:00
enable = true;
settings = {
background = {
2025-03-28 17:11:36 +01:00
path = "/etc/background.jpg";
2025-03-28 11:28:56 +01:00
fit = "Contain";
};
env = {};
GTK = {
application_prefer_dark_theme = true;
cursor_theme_name = "Adwaita";
font_name = "Cantarell 16";
icon_theme_name = "Adwaita";
theme_name = "Adwaita";
};
commands = {
2025-03-28 11:44:46 +01:00
reboot = ["systemctl" "reboot"];
poweroff = ["systemctl" "poweroff"];
x11_prefix = ["startx" "/usr/bin/env"];
2025-03-28 11:28:56 +01:00
};
widget.clock = {
format = "%A %d.%m.%Y %T"; # Sunday 30.03.2025 11:25:17
resolution = "500ms";
timezone = "Europe/Berlin";
label_width = 150;
2025-03-28 11:44:46 +01:00
};
2025-03-28 11:28:56 +01:00
};
2025-03-28 11:44:46 +01:00
};
2025-03-28 11:28:56 +01:00
}