From 24242b9570d61e1c659c4c6cfb0cd11c9c4c94ee Mon Sep 17 00:00:00 2001 From: caley Date: Fri, 12 Jun 2026 22:29:46 +0200 Subject: Rename conguration.nix to configuration.nix --- nixos/hosts/box/configuration.nix | 126 ++++++++++++++++++++++++++++++++++++++ nixos/hosts/box/conguration.nix | 126 -------------------------------------- 2 files changed, 126 insertions(+), 126 deletions(-) create mode 100644 nixos/hosts/box/configuration.nix delete mode 100644 nixos/hosts/box/conguration.nix (limited to 'nixos/hosts') 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"; +} diff --git a/nixos/hosts/box/conguration.nix b/nixos/hosts/box/conguration.nix deleted file mode 100644 index 70acf16..0000000 --- a/nixos/hosts/box/conguration.nix +++ /dev/null @@ -1,126 +0,0 @@ -{ 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"; -} -- cgit v1.3.1