2024-12-20 20:53:12 +00:00
|
|
|
{ inputs, ... }: {
|
|
|
|
|
2024-12-20 01:08:24 +00:00
|
|
|
xdg.enable = true;
|
|
|
|
xdg.mime.enable = true;
|
2023-07-28 22:15:33 +00:00
|
|
|
|
2024-12-20 20:53:12 +00:00
|
|
|
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";
|
2024-12-21 22:58:20 +00:00
|
|
|
# to use:
|
|
|
|
# programs.example.package = (config.lib.nixGL.wrap pkgs.example);
|
|
|
|
# or:
|
|
|
|
# home.packages = with pkgs; [ (config.libnixGL.wrap example); ];
|
2024-12-20 01:30:06 +00:00
|
|
|
}
|