mirror of
https://github.com/jbowdre/dotfiles.git
synced 2024-12-22 12:22:17 +00:00
add nixgl for crostini
This commit is contained in:
parent
6b7a5b445d
commit
02b20dd048
3 changed files with 15 additions and 8 deletions
|
@ -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;
|
||||
|
|
|
@ -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 ];
|
||||
}
|
|
@ -21,4 +21,5 @@
|
|||
config.allowUnfree = true;
|
||||
};
|
||||
};
|
||||
nixgl = inputs.nixgl.overlay;
|
||||
}
|
Loading…
Reference in a new issue