This commit is contained in:
4DBug
2026-01-20 00:21:45 -06:00
parent b85499b598
commit c482113a0b
2 changed files with 17 additions and 5 deletions

View File

@@ -7,13 +7,15 @@
nixos-cosmic.url = "github:lilyinstarlight/nixos-cosmic"; nixos-cosmic.url = "github:lilyinstarlight/nixos-cosmic";
hytale-launcher.url = "github:JPyke3/hytale-launcher-nix";
stylix = { stylix = {
url = "github:nix-community/stylix"; url = "github:nix-community/stylix";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
}; };
outputs = inputs@{ self, nixpkgs, stylix, home-manager, flatpaks, ... }: outputs = inputs@{ self, nixpkgs, stylix, home-manager, flatpaks, hytale-launcher, ... }:
let let
deviceType = import /etc/nixos/device.nix; deviceType = import /etc/nixos/device.nix;
system = "x86_64-linux"; system = "x86_64-linux";

View File

@@ -59,11 +59,11 @@ in
powerManagement.enable = false; powerManagement.enable = false;
powerManagement.finegrained = false; powerManagement.finegrained = false;
open = false; open = true;
nvidiaSettings = true; nvidiaSettings = true;
package = config.boot.kernelPackages.nvidiaPackages.latest; package = config.boot.kernelPackages.nvidiaPackages.stable;
nvidiaPersistenced = false; nvidiaPersistenced = false;
} else {}; } else {};
@@ -214,7 +214,7 @@ in
xserver = { xserver = {
enable = true; enable = true;
videoDrivers = if desktop then ["nvidia"] else ["amdgpu"]; videoDrivers = if desktop then ["modesetting" "nvidia"] else ["amdgpu"];
excludePackages = [pkgs.xterm]; excludePackages = [pkgs.xterm];
xkb = { xkb = {
@@ -408,6 +408,7 @@ in
GBM_BACKEND = "nvidia-drm"; GBM_BACKEND = "nvidia-drm";
LIBVA_DRIVER_NAME = "nvidia"; LIBVA_DRIVER_NAME = "nvidia";
__GLX_VENDOR_LIBRARY_NAME = "nvidia"; __GLX_VENDOR_LIBRARY_NAME = "nvidia";
EGL_PLATFORM = "wayland";
} else { } else {
}); });
@@ -494,6 +495,8 @@ in
neovim neovim
micro micro
inputs.hytale-launcher.packages.${pkgs.system}.default
] ++ (if desktop then [ ] ++ (if desktop then [
(nix-gaming.packages.${pkgs.stdenv.hostPlatform.system}.star-citizen.override { (nix-gaming.packages.${pkgs.stdenv.hostPlatform.system}.star-citizen.override {
tricks = [ "arial" "vcrun2019" "win10" "sound=alsa" ]; tricks = [ "arial" "vcrun2019" "win10" "sound=alsa" ];
@@ -596,10 +599,17 @@ ssh -R \"$\{name}:80:localhost:$\{port}\" tuns.sh'\'' _";
enable = true; enable = true;
libraries = options.programs.nix-ld.libraries.default ++ (with pkgs; [ libraries = options.programs.nix-ld.libraries.default ++ (with pkgs; [
xorg.libX11
libxml2 libxml2
udev udev
gcc gcc
egl-wayland
mesa
libglvnd
wayland
xorg.libX11
xorg.libXcursor
xorg.libXrandr
xorg.libXi
]); ]);
}; };
}; };