global(gpu): rename from gui

This commit is contained in:
514fpv 2024-01-27 22:14:03 +08:00
parent cdf4b29004
commit 665d0a3d7d
Signed by: koishi
SSH key fingerprint: SHA256:axz0uIzzY+5W19i7QOUuiw5LSqhKfCBKPf3L4xFRxLw
14 changed files with 24 additions and 24 deletions

23
global/gpu/greetd.nix Normal file
View file

@ -0,0 +1,23 @@
{ pkgs
, lib
, config
, ... }: with lib; let
cfg = config.global.gpu;
in mkIf (cfg.enable && cfg.session) {
programs.regreet = {
enable = true;
cageArgs = [ "-s" "-d" "-m" "last" ];
settings = {
background.path = ../../share/54345906_p0.jpg;
background.fit = "Fill";
GTK = {
application_prefer_dark_theme = true;
cursor_theme_name = "Bibata-Modern-Classic";
icon_theme_name = "WhiteSur-dark";
theme_name = "WhiteSur-Dark";
};
};
};
environment.persistence."/nix/persist/fhs".directories = [ "/var/cache/regreet" ];
}