Initial template repo
This commit is contained in:
@@ -0,0 +1,67 @@
|
||||
{ lib, ... }:
|
||||
|
||||
let
|
||||
hostName = "example-host";
|
||||
userName = "gamer";
|
||||
fullName = "Gaming User";
|
||||
|
||||
# Desktop auswählen, indem du genau diese Zeile änderst:
|
||||
# ./modules/desktop/kde.nix
|
||||
# ./modules/desktop/gnome.nix
|
||||
# ./modules/desktop/budgie.nix
|
||||
# ./modules/desktop/hyprland.nix
|
||||
# ./modules/desktop/cosmic.nix
|
||||
# ./modules/desktop/cosmic-max.nix
|
||||
desktopConfig = ./modules/desktop/kde.nix;
|
||||
|
||||
# GPU/Treiber auswählen, indem du genau diese Zeile änderst:
|
||||
# ./modules/graphics/mesa-amd.nix
|
||||
# ./modules/graphics/mesa-amd-opencl.nix
|
||||
# ./modules/graphics/nvidia.nix
|
||||
# ./modules/graphics/nvidia-open.nix
|
||||
graphicsConfig = ./modules/graphics/mesa-amd.nix;
|
||||
|
||||
# Kernel auswählen (optional - Standard ist fein):
|
||||
# ./modules/kernel/linux-default.nix (Standard, stabil)
|
||||
# ./modules/kernel/linux-zen.nix (Gaming optimiert, empfohlen)
|
||||
# ./modules/kernel/linux-hardened.nix (Security, langsamer)
|
||||
# ./modules/kernel/linux-cachyos.nix
|
||||
kernelConfig = ./modules/kernel/linux-cachyos.nix;
|
||||
|
||||
# Zusätzliche Gaming-Tweaks aktivieren/deaktivieren.
|
||||
enableExtraGamingTweaks = true;
|
||||
in
|
||||
|
||||
{
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
./modules/base.nix
|
||||
./modules/packages.nix
|
||||
./modules/audio/pipewire.nix
|
||||
./modules/chaotic-nyx.nix
|
||||
graphicsConfig
|
||||
./modules/desktop/common.nix
|
||||
desktopConfig
|
||||
./modules/gaming.nix
|
||||
./modules/containers/podman-distrobox.nix # Optional: Container Support
|
||||
kernelConfig # Kernel-Auswahl
|
||||
./modules/peripherals.nix
|
||||
./modules/flatpak.nix
|
||||
] ++ lib.optional enableExtraGamingTweaks ./modules/gaming-tweaks.nix;
|
||||
|
||||
networking.hostName = hostName;
|
||||
|
||||
users.users.${userName} = {
|
||||
isNormalUser = true;
|
||||
description = fullName;
|
||||
extraGroups = [
|
||||
"wheel"
|
||||
"networkmanager"
|
||||
"audio"
|
||||
"video"
|
||||
"input"
|
||||
];
|
||||
};
|
||||
|
||||
system.stateVersion = "26.05";
|
||||
}
|
||||
Reference in New Issue
Block a user