- Remove disko everywhere: - Delete hosts/Nixbook/disko.nix and hosts/Nixtest/disko.nix - Drop disko input, modules, and disko-install app - Update README to remove disko mention - Simplify flake inputs: - Use nixpkgs = nixos-unstable only - Home Manager -> master (follows nixpkgs) - Remove nixpkgs-unstable and vscode-extensions - Pass allowUnfree via specialArgs - Centralize storage tools: - Add fuse3 and rclone to hosts/common/default.nix - Remove hosts/common/rclone.nix and screen.nix - Add user thiago to "fuse" group - Drop per-host rclone packages - NVIDIA module: - Use pkgs.linuxPackages.nvidiaPackages.latest (no unstable import) - Keep nvidiaSettings=true, open=false - Remove sunshine service block - Hosts: - Nixstation: remove Hyprland block, zramSwap 30% -> 25% - Clean hardware-configuration args - Versions: - system.stateVersion: 24.05 -> 25.11 (Nixstation) - home.stateVersion: 24.05 -> 25.11 - README: adjust Nixbook and common modules descriptions
43 lines
841 B
Nix
43 lines
841 B
Nix
{ pkgs
|
|
, ...
|
|
}:
|
|
{
|
|
imports = [
|
|
# ./passthrough.nix
|
|
];
|
|
|
|
hardware = {
|
|
graphics = {
|
|
enable = true;
|
|
enable32Bit = true;
|
|
};
|
|
nvidia-container-toolkit = {
|
|
enable = true;
|
|
suppressNvidiaDriverAssertion = true;
|
|
};
|
|
nvidia = {
|
|
modesetting.enable = true;
|
|
nvidiaSettings = true;
|
|
open = false; # keep it like that for now, unstable!!
|
|
package = pkgs.linuxPackages.nvidiaPackages.latest;
|
|
powerManagement.enable = false;
|
|
powerManagement.finegrained = false;
|
|
};
|
|
};
|
|
|
|
services = {
|
|
xserver = {
|
|
videoDrivers = [ "nvidia" ];
|
|
};
|
|
};
|
|
nixpkgs.config.cudaSupport = true;
|
|
environment.systemPackages = with pkgs; [
|
|
cudaPackages.cuda_nvcc
|
|
cudaPackages.cudatoolkit
|
|
glxinfo
|
|
libepoxy
|
|
libglvnd
|
|
mesa
|
|
nvidia-container-toolkit
|
|
];
|
|
}
|