Install nixGL to support running graphical programs on non-nixos.
This commit is contained in:
36
nix/steam_deck/configuration/home.nix
Normal file
36
nix/steam_deck/configuration/home.nix
Normal file
@@ -0,0 +1,36 @@
|
||||
# TODO: Optimize for znver2
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
nixgl,
|
||||
...
|
||||
}:
|
||||
{
|
||||
home.username = "deck";
|
||||
home.homeDirectory = "/home/deck";
|
||||
home.stateVersion = "24.11";
|
||||
|
||||
programs.home-manager.enable = true;
|
||||
|
||||
# enable flakes
|
||||
nix = {
|
||||
package = pkgs.nix;
|
||||
settings.experimental-features = [
|
||||
"nix-command"
|
||||
"flakes"
|
||||
];
|
||||
};
|
||||
|
||||
home.packages = with pkgs; [
|
||||
steam-rom-manager
|
||||
pkgs.nixgl.nixGLIntel
|
||||
(pkgs.nixgl.nixGLCommon pkgs.nixgl.nixGLIntel)
|
||||
pkgs.nixgl.nixVulkanIntel
|
||||
];
|
||||
|
||||
# This would keep build-time dependencies so I can rebuild while offline.
|
||||
# nix.settings = {
|
||||
# keep-outputs = true;
|
||||
# keep-derivations = true;
|
||||
# };
|
||||
}
|
||||
Reference in New Issue
Block a user