mirror of
https://github.com/jbowdre/dotfiles.git
synced 2024-12-23 04:32:19 +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";
|
url = "github:nix-community/nixvim/nixos-24.11";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
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
|
let
|
||||||
inherit (self) outputs;
|
inherit (self) outputs;
|
||||||
lib = nixpkgs.lib // home-manager.lib;
|
lib = nixpkgs.lib // home-manager.lib;
|
||||||
|
|
|
@ -1,15 +1,15 @@
|
||||||
{ pkgs, lib, ... }: {
|
{ pkgs, ... }:
|
||||||
# ChromeOS integration
|
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 = ''
|
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"
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
home.packages = with pkgs; [ nixgl.nixGLMesa ];
|
||||||
# XDG settings
|
|
||||||
xdg.enable = true;
|
|
||||||
xdg.mime.enable = true;
|
|
||||||
}
|
}
|
|
@ -21,4 +21,5 @@
|
||||||
config.allowUnfree = true;
|
config.allowUnfree = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
nixgl = inputs.nixgl.overlay;
|
||||||
}
|
}
|
Loading…
Reference in a new issue