chromeos: style gui window title bars

This commit is contained in:
John Bowdre 2024-12-22 15:04:11 -06:00
parent 29f6d10bc2
commit e1e04f2a48
Signed by: john
SSH key fingerprint: SHA256:cZYnOxaLdo+MhBNMX38ihO/p2Kek6fBykSFoJwHBhUo

View file

@ -3,12 +3,19 @@
xdg.enable = true; xdg.enable = true;
xdg.mime.enable = true; xdg.mime.enable = true;
# make linux gui apps appear in chromeos launcher
xdg.configFile."systemd/user/cros-garcon.service.d/override.conf".text = '' xdg.configFile."systemd/user/cros-garcon.service.d/override.conf".text = ''
[Service] [Service]
Environment="PATH=%h/.nix-profile/bin:/usr/local/sbin:/usr/local/bin:/usr/local/games:/usr/sbin:/usr/bin:/usr/games:/sbin:/bin" Environment="PATH=%h/.nix-profile/bin:/usr/local/sbin:/usr/local/bin:/usr/local/games:/usr/sbin:/usr/bin:/usr/games:/sbin:/bin"
Environment="XDG_DATA_DIRS=/nix/var/nix/profiles/default/share:%h/.nix-profile/share:%h/.local/share:/usr/local/share:/usr/share:/var/lib/snapd/desktop:%h/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share" Environment="XDG_DATA_DIRS=/nix/var/nix/profiles/default/share:%h/.nix-profile/share:%h/.local/share:/usr/local/share:/usr/share:/var/lib/snapd/desktop:%h/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share"
''; '';
# make linux gui title bars not quite so bright
xdg.configFile."systemd/user/sommelier-x@0.service.d/override.conf".text = ''
[Service]
Environment="SOMMELIER_FRAME_COLOR=#313244"
'';
# activate NixGL wrapper for Crostini # activate NixGL wrapper for Crostini
nixGL.packages = inputs.nixgl.packages; nixGL.packages = inputs.nixgl.packages;
nixGL.defaultWrapper = "mesa"; nixGL.defaultWrapper = "mesa";