nix-git/hosts/yodaTux/configuration.nix

119 lines
4.1 KiB
Nix
Raw Normal View History

2023-09-17 16:59:42 +02:00
{ config, pkgs, ... }:
2023-09-02 15:44:33 +02:00
{
imports =
2023-09-07 22:15:58 +02:00
[
2023-09-02 15:44:33 +02:00
./hardware-configuration.nix
2023-09-07 22:15:58 +02:00
../../modules/home-manager.nix
2023-10-20 15:01:12 +02:00
../../modules/nur-and-unstable.nix
2024-08-13 14:46:55 +02:00
../../modules/unfree.nix
2023-09-02 15:44:33 +02:00
../../modules/base.nix
2024-02-06 17:06:07 +01:00
../../modules/base-efi.nix
2024-02-23 13:53:27 +01:00
../../modules/xdg.nix
2023-12-21 18:21:12 +01:00
../../modules/power-management.nix
2024-01-27 15:53:27 +01:00
../../modules/tuxedo-rs.nix
2023-11-21 12:07:43 +01:00
../../modules/ntfs.nix
../../modules/git.nix
../../modules/zsh.nix
../../modules/nitrokey-gpg-smartcard.nix
../../modules/ssh-client.nix
../../modules/ssh-server.nix
../../modules/lid-switch-handling.nix
../../modules/btrfs-scrub.nix
../../modules/btrfs-mount-options.nix
2023-10-09 12:13:36 +02:00
2024-02-04 15:03:53 +01:00
../../modules/gpu-amd.nix
#../../modules/kde.nix
2023-10-09 12:05:56 +02:00
../../modules/gnome-base.nix
2023-10-09 12:13:36 +02:00
../../modules/gnome-config.nix
../../modules/gnome-extensions.nix
2024-08-13 14:46:55 +02:00
# TODO currently broken
#../../modules/gnome-fractional-scaling.nix
2023-11-21 12:07:43 +01:00
../../modules/fwupd-gnome.nix
2024-02-04 15:03:53 +01:00
../../modules/gnome-wallpaper.nix
2023-10-09 12:13:36 +02:00
2024-02-04 15:03:53 +01:00
#../../modules/gnome-terminal.nix
2024-01-13 22:04:09 +01:00
../../modules/blackbox.nix
2024-02-04 15:03:53 +01:00
2024-02-06 20:18:48 +01:00
../../modules/programs-base.nix
2024-02-04 15:03:53 +01:00
../../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
2023-12-20 23:08:05 +01:00
../../modules/ausweisapp.nix
2024-02-06 17:26:15 +01:00
../../modules/nextcloud-client.nix
2023-11-28 15:24:57 +01:00
../../modules/syncthing.nix
../../modules/signal-desktop.nix
2023-11-28 15:23:44 +01:00
../../modules/obsidian.nix
2024-01-07 22:35:38 +01:00
../../modules/vlc-dvd-blu-ray.nix
2023-09-11 13:05:48 +02:00
../../modules/firefox.nix
2023-09-07 22:15:58 +02:00
../../modules/thunderbird.nix
2023-11-21 12:07:43 +01:00
../../modules/tor-browser.nix
2023-12-19 14:03:39 +01:00
../../modules/digikam-rawtherapee-hugin-gimp.nix
2023-11-21 12:07:43 +01:00
../../modules/freetube.nix
2023-10-06 12:04:48 +02:00
../../modules/ghostwriter.nix
2023-11-21 12:07:43 +01:00
../../modules/print-and-scan.nix
2024-02-02 11:17:07 +01:00
#../../modules/waydroid.nix
2024-08-23 12:37:30 +02:00
../../modules/uni-vpn.nix
2024-02-12 16:49:44 +01:00
2024-01-21 15:37:08 +01:00
../../modules/games.nix
2024-02-12 16:49:44 +01:00
../../modules/dosbox-x.nix
2023-11-21 12:07:43 +01:00
../../modules/autostart.nix
../../modules/jetbrains-ide.nix
2024-02-04 15:03:53 +01:00
#../../modules/vscodium.nix
2023-09-13 13:39:45 +02:00
../../modules/android.nix
2023-10-29 17:53:14 +01:00
../../modules/pmbootstrap.nix
2023-11-21 12:07:43 +01:00
2024-02-12 16:50:03 +01:00
../../modules/boxes.nix
#../../modules/virtualbox.nix
2023-09-14 15:54:48 +02:00
../../modules/docker.nix
2023-09-21 13:09:15 +02:00
../../modules/docker-pushrm.nix
2023-09-02 15:44:33 +02:00
];
networking.hostName = "yodaTux";
2023-09-25 21:21:53 +02:00
boot.initrd.luks.devices."luks-ea7099e3-320d-4eb3-a4c3-9910a9af817b".allowDiscards = true;
2023-10-09 10:46:57 +02:00
yoda.btrfsFileSystems = ["/"];
#yoda.btrfsMounts = yoda.btrfsFileSystems;
2023-09-20 22:23:48 +02:00
2023-09-23 17:58:12 +02:00
# Systemd Journal entry:
# S Sat Sep 23 16:11:52 2023 p4 kernel: TSC found unstable after boot, most likely due to broken BIOS. Use 'tsc=unstable'.
boot.kernelParams = [ "tsc=unstable" ];
2024-02-08 20:31:51 +01:00
# LAN Internet is not working, only WiFi.
# Replacing in-kernel r8169 with r8168 fixes this.
# https://github.com/avnik/nixos-configs/blob/master/modules/r8168.nix
# https://github.com/poscat0x04/nixos-configuration/blob/master/hardware/profiles/r8168.nix
# https://github.com/NixOS/nixpkgs/blob/961c422b48b3458a01a9c0f2a24e25a1d61018e9/pkgs/os-specific/linux/r8168/default.nix#L51-L52
# But this requires an old kernel version (we use 5.15 LTS) as r8168 is broken for kernels >= 6
# https://github.com/NixOS/nixpkgs/issues/256329
# This does not help, there is a compile error
# nixpkgs.config.allowBroken = true;
#
boot.blacklistedKernelModules = [ "r8169" ];
boot.extraModulePackages = [
config.boot.kernelPackages.r8168
];
2023-09-20 22:23:48 +02:00
# List all available kernel versions:
# `nix repl` -> `:l <nixpkgs>` -> `pkgs.linuxPackages` and press `TAB`
# Default.
#boot.kernelPackages = pkgs.linuxPackages;
# Latest.
2024-02-08 20:31:51 +01:00
#boot.kernelPackages = pkgs.linuxPackages_latest;
# LTS, see https://endoflife.date/linux
2024-08-24 13:02:42 +02:00
# TODO: When NixOS 26.05 is out, this kernel is near EOL
2024-02-08 20:31:51 +01:00
boot.kernelPackages = pkgs.linuxPackages_5_15;
#boot.kernelPackages = pkgs.linuxPackages_6_1;
2023-09-20 22:23:48 +02:00
# 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;
2023-12-15 13:03:18 +01:00
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.
2023-12-15 13:03:18 +01:00
system.stateVersion = "23.05";
2023-09-02 15:44:33 +02:00
}