summaryrefslogtreecommitdiff
path: root/nixos/hosts/box/configuration.nix
diff options
context:
space:
mode:
authorcaley <u65487754@gmail.com>2026-06-12 22:29:46 +0200
committerGitHub <noreply@github.com>2026-06-12 22:29:46 +0200
commit24242b9570d61e1c659c4c6cfb0cd11c9c4c94ee (patch)
treee55404ac72e05f27af53ebde9334b8ff671f70d6 /nixos/hosts/box/configuration.nix
parent2c7d682623ea2e2a265c70b6b08da2c871c65875 (diff)
Rename conguration.nix to configuration.nix
Diffstat (limited to 'nixos/hosts/box/configuration.nix')
-rw-r--r--nixos/hosts/box/configuration.nix126
1 files changed, 126 insertions, 0 deletions
diff --git a/nixos/hosts/box/configuration.nix b/nixos/hosts/box/configuration.nix
new file mode 100644
index 0000000..70acf16
--- /dev/null
+++ b/nixos/hosts/box/configuration.nix
@@ -0,0 +1,126 @@
+{ config, pkgs, ... }:
+
+{
+ imports = [
+ ./hardware-configuration.nix
+ ];
+
+ nix.settings.experimental-features = [ "nix-command" "flakes" ];
+ nix.settings.auto-optimise-store = true;
+
+ nix.gc = {
+ automatic = true;
+ dates = "weekly";
+ options = "--delete-older-than 7d";
+ };
+
+ boot.loader.grub = {
+ enable = true;
+ device = "/dev/nvme0n1";
+ useOSProber = true;
+ };
+ boot.kernelPackages = pkgs.linuxPackages_latest;
+
+ zramSwap = {
+ enable = true;
+ memoryPercent = 25;
+ };
+
+ services.getty.autologinUser = "cat";
+ services.fstrim.enable = true;
+
+ networking.hostName = "box";
+ networking.networkmanager.enable = true;
+
+ time.timeZone = "Europe/Berlin";
+ i18n.defaultLocale = "en_US.UTF-8";
+ i18n.extraLocaleSettings = {
+ LC_ADDRESS = "de_DE.UTF-8";
+ LC_IDENTIFICATION = "de_DE.UTF-8";
+ LC_MEASUREMENT = "de_DE.UTF-8";
+ LC_MONETARY = "de_DE.UTF-8";
+ LC_NAME = "de_DE.UTF-8";
+ LC_NUMERIC = "de_DE.UTF-8";
+ LC_PAPER = "de_DE.UTF-8";
+ LC_TELEPHONE = "de_DE.UTF-8";
+ LC_TIME = "de_DE.UTF-8";
+ };
+
+ nixpkgs.config.allowUnfree = true;
+
+ hardware.graphics = {
+ enable = true;
+ enable32Bit = true;
+ };
+
+ services.xserver.videoDrivers = [ "nvidia" ];
+ hardware.nvidia = {
+ modesetting.enable = true;
+ powerManagement.enable = false;
+ nvidiaSettings = true;
+ open = true;
+ package = config.boot.kernelPackages.nvidiaPackages.stable;
+ };
+
+ security.rtkit.enable = true;
+ services.pipewire = {
+ enable = true;
+ alsa.enable = true;
+ alsa.support32Bit = true;
+ pulse.enable = true;
+ jack.enable = true;
+ };
+
+ programs.hyprland.enable = true;
+ programs.fish.enable = true;
+ programs.dconf.enable = true;
+ programs.steam.enable = true;
+
+ xdg.portal = {
+ enable = true;
+ extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
+ };
+
+ users.users.cat = {
+ isNormalUser = true;
+ description = "cat";
+ extraGroups = [ "networkmanager" "wheel" ];
+ shell = pkgs.fish;
+ };
+
+environment.systemPackages = with pkgs; [
+ btop
+ git
+ kitty
+ wl-clipboard
+ neovim
+ awww
+ libnotify
+ pywal
+ quickshell
+ grim
+ slurp
+ kdePackages.dolphin
+ kdePackages.ark
+ imv
+ mpv
+ obs-studio
+ prismlauncher
+ obsidian
+ ];
+
+ fonts.packages = with pkgs; [
+ corefonts
+ noto-fonts
+ noto-fonts-cjk-sans
+ google-fonts
+ nerd-fonts.jetbrains-mono
+ noto-fonts-color-emoji
+ twemoji-color-font
+ ];
+
+documentation.enable = false;
+documentation.man.enable = false;
+
+ system.stateVersion = "26.05";
+}