- Add .gitignore for common languages, tools, and OS/editor artifacts - Configure .gitattributes for Git LFS (fonts, images, archives, ISOs) - Add README with repo description - Add flake.nix defining inputs and outputs for NixOS, Home Manager, and related modules - Introduce home-manager configs: - Base home.nix with packages, services, and programs - Hyprland WM configuration (waybar, fuzzel, keybindings, theming) - Vim (nixvim) setup with LSP and plugins - Zsh setup with aliases, Oh My Zsh, clipboard helpers - Systemd user services (e.g., librespot) - Add scripts (GPU monitor, RAM build helper, install automation) - Add host configurations: - Nixbook (Apple laptop) with hardware, disko, and install script - Nixstation (desktop) with firewall, virtualization, Btrfs scrub timer - Nixtest (test VM) with QEMU + Alpine-based install test harness - Common modules (network, NVIDIA, rclone, screen, keychron, users) - Include statix config for linting
54 lines
1.1 KiB
Nix
54 lines
1.1 KiB
Nix
{ config
|
|
, pkgs
|
|
, unstable
|
|
, ...
|
|
}:
|
|
{
|
|
imports = [
|
|
# ./passthrough.nix
|
|
];
|
|
|
|
hardware = {
|
|
graphics = {
|
|
enable = true;
|
|
enable32Bit = true;
|
|
};
|
|
nvidia-container-toolkit = {
|
|
enable = true;
|
|
suppressNvidiaDriverAssertion = true;
|
|
};
|
|
nvidia = {
|
|
modesetting.enable = true;
|
|
powerManagement.enable = false;
|
|
powerManagement.finegrained = false;
|
|
open = false; # keep it like that for now, unstable!!
|
|
nvidiaSettings = true;
|
|
package = unstable.linuxPackages.nvidiaPackages.latest;
|
|
};
|
|
};
|
|
|
|
services = {
|
|
sunshine = {
|
|
enable = false;
|
|
# autoStart = true;
|
|
# openFirewall = true;
|
|
package = pkgs.sunshine.overrideAttrs (old: {
|
|
cmakeFlags = (old.cmakeFlags or [ ]) ++ [
|
|
"-DSUNSHINE_ENABLE_CUDA=OFF"
|
|
"-DCUDA_FAIL_ON_MISSING=OFF"
|
|
];
|
|
});
|
|
};
|
|
};
|
|
nixpkgs.config.cudaSupport = true;
|
|
environment.systemPackages = with pkgs; [
|
|
mesa
|
|
glxinfo
|
|
libepoxy
|
|
libglvnd
|
|
nvidia-container-toolkit
|
|
cudaPackages.cudatoolkit
|
|
cudaPackages.cuda_nvcc
|
|
];
|
|
|
|
}
|