nix-git/hosts/yodaGaming/configuration.nix

80 lines
2.7 KiB
Nix
Raw Normal View History

2024-02-06 16:48:22 +01:00
{ config, pkgs, ... }:
{
imports =
[
./hardware-configuration.nix
../../modules/home-manager.nix
../../modules/nur-and-unstable.nix
2024-08-13 14:46:55 +02:00
../../modules/unfree.nix
2024-02-06 16:48:22 +01:00
../../modules/base.nix
2024-02-06 17:06:07 +01:00
../../modules/base-bios.nix
2024-02-06 16:48:22 +01:00
../../modules/power-management.nix
../../modules/ntfs.nix
2024-02-07 13:33:57 +01:00
#../../modules/ssh-fde-unlock.nix
2024-02-06 16:48:22 +01:00
../../modules/zsh.nix
2024-02-06 18:27:55 +01:00
../../modules/nitrokey-gpg-smartcard.nix
2024-02-06 16:48:22 +01:00
../../modules/ssh-client.nix
../../modules/ssh-server.nix
../../modules/btrfs-scrub.nix
../../modules/btrfs-mount-options.nix
#../../modules/gpu-amd.nix
../../modules/gnome-base.nix
../../modules/gnome-config.nix
../../modules/gnome-extensions.nix
../../modules/fwupd-gnome.nix
../../modules/gnome-wallpaper.nix
#../../modules/gnome-terminal.nix
../../modules/blackbox.nix
2024-02-06 20:18:48 +01:00
../../modules/programs-base.nix
#../../modules/programs.nix
2024-02-06 19:05:01 +01:00
../../modules/flatpak.nix
2024-02-08 20:57:06 +01:00
../../modules/file-roller.nix
2024-02-06 16:48:22 +01:00
../../modules/signal-desktop.nix
2024-02-06 20:46:52 +01:00
../../modules/firefox.nix
2024-02-06 21:19:34 +01:00
../../modules/steam.nix
2024-02-06 16:48:22 +01:00
#../../modules/games.nix
2024-02-06 18:27:55 +01:00
../../modules/jetbrains-ide.nix
2024-02-06 16:48:22 +01:00
];
2024-08-18 19:01:05 +02:00
foo = throw "NixOS rebuild boot required to update to 24.05";
2024-02-06 16:48:22 +01:00
networking.hostName = "yodaGaming";
boot.initrd.luks.devices."luks-root".allowDiscards = true;
yoda.btrfsFileSystems = ["/"];
#yoda.btrfsMounts = yoda.btrfsFileSystems;
2024-02-06 17:06:07 +01:00
# BIOS
2024-02-06 18:27:55 +01:00
boot.loader.grub.devices = ["/dev/disk/by-id/ata-Samsung_SSD_840_EVO_250GB_S1DBNSAF715594P"];
2024-02-06 17:06:07 +01:00
2024-02-06 22:59:26 +01:00
# Disable `i915` (onboard Intel GPU).
2024-02-06 22:00:01 +01:00
# https://github.com/NixOS/nixos-hardware/blob/master/common/gpu/intel/disable.nix
2024-02-06 22:59:26 +01:00
# https://discourse.nixos.org/t/fully-disabling-the-nvidia-dgpu-on-an-optimus-laptop/29686/6
# Disable `radeon` so that `amdgpu` is used instead.
# https://nixos.wiki/wiki/AMD_GPU#Enable_Southern_Islands_.28SI.29_and_Sea_Islands_.28CIK.29_support
2024-02-06 22:00:01 +01:00
boot.blacklistedKernelModules = [ "i915" ];
2024-02-06 22:59:26 +01:00
boot.kernelParams = [ "i915.modeset=0" "radeon.si_support=0" "amdgpu.si_support=1" ];
2024-02-06 22:00:01 +01:00
2024-02-06 16:48:22 +01:00
# List all available kernel versions:
# `nix repl` -> `:l <nixpkgs>` -> `pkgs.linuxPackages` and press `TAB`
# Default.
#boot.kernelPackages = pkgs.linuxPackages;
# Latest.
boot.kernelPackages = pkgs.linuxPackages_latest;
# Hardened.
# https://archlinux.org/packages/extra/x86_64/linux-hardened/
# -> https://github.com/anthraxx/linux-hardened
#boot.kernelPackages = pkgs.linuxPackages_hardened;
# Free/Libre.
# https://en.wikipedia.org/wiki/Linux-libre
#boot.kernelPackages = pkgs.linuxPackages-libre;
2024-02-07 14:29:55 +01:00
# Most users should never change this value after the initial install, for any reason, even if you've upgraded your system to a new NixOS release.
2024-02-06 16:48:22 +01:00
system.stateVersion = "23.11";
}