dotfiles/home/lib/chromeos.nix
John Bowdre 863252abd6
gui: add alacritty
also: fix chromeos-related configurations for xdgconfig and nixgl
2024-12-20 14:53:12 -06:00

15 lines
642 B
Nix

{ inputs, ... }: {
xdg.enable = true;
xdg.mime.enable = true;
xdg.configFile."systemd/user/cros-garcon.service.d/override.conf".text = ''
[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="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"
'';
# activate NixGL wrapper for Crostini
nixGL.packages = inputs.nixgl.packages;
nixGL.defaultWrapper = "mesa";
}