diff --git a/flake.nix b/flake.nix index 2b627f5..fb40d54 100644 --- a/flake.nix +++ b/flake.nix @@ -32,9 +32,15 @@ url = "github:nix-community/nixvim/nixos-24.11"; inputs.nixpkgs.follows = "nixpkgs"; }; + + # NixGL + nixgl = { + url = "github:nix-community/nixGL"; + inputs.nixpkgs.follows = "nixpkgs"; + }; }; - outputs = { self, nixpkgs, home-manager, nixvim, ... } @inputs: + outputs = { self, nixpkgs, home-manager, nixgl, nixvim, ... }@inputs: let inherit (self) outputs; lib = nixpkgs.lib // home-manager.lib; diff --git a/home/lib/chromeos.nix b/home/lib/chromeos.nix index dc4c678..608beeb 100644 --- a/home/lib/chromeos.nix +++ b/home/lib/chromeos.nix @@ -1,15 +1,15 @@ -{ pkgs, lib, ... }: { - # ChromeOS integration +{ pkgs, ... }: +let path = "config/systemd/user/cros-garcon.service.d/override.conf"; +in { + xdg.enable = true; + xdg.mime.enable = true; - home.file.".config/systemd/user/cros-garcon.service.d/override.conf" = { + xdg.configFile.${path} = { 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" ''; }; - - # XDG settings - xdg.enable = true; - xdg.mime.enable = true; + home.packages = with pkgs; [ nixgl.nixGLMesa ]; } \ No newline at end of file diff --git a/overlays/default.nix b/overlays/default.nix index b9e5f13..14f1823 100644 --- a/overlays/default.nix +++ b/overlays/default.nix @@ -21,4 +21,5 @@ config.allowUnfree = true; }; }; + nixgl = inputs.nixgl.overlay; } \ No newline at end of file