# This is your system's configuration file. # Use this to configure your system environment (it replaces /etc/nixos/configuration.nix) { inputs, lib, config, pkgs, ... }: { # You can import other NixOS modules here imports = [ # If you want to use modules from other flakes (such as nixos-hardware): # inputs.hardware.nixosModules.common-cpu-amd # inputs.hardware.nixosModules.common-ssd # You can also split up your configuration and import pieces of it here: # ./users.nix # Import your generated (nixos-generate-config) hardware configuration ./hardware-configuration.nix inputs.serpantinum.nixosModules.default inputs.spicetify-nix.nixosModules.default inputs.helium-flake.nixosModules.default ]; nixpkgs = { # You can add overlays here overlays = [ # If you want to use overlays exported from other flakes: # neovim-nightly-overlay.overlays.default # Or define it inline, for example: # (final: prev: { # hi = final.hello.overrideAttrs (oldAttrs: { # patches = [ ./change-hello-to-hi.patch ]; # }); # }) ]; # Configure your nixpkgs instance config = { # Disable if you don't want unfree packages allowUnfree = true; permittedInsecurePackages = ["librewolf-152.0.2-1" "librewolf-unwrapped-152.0.2-1"]; }; }; nix = { settings = { # Enable flakes and new 'nix' command experimental-features = "nix-command flakes"; # Opinionated: disable global registry flake-registry = ""; }; # Opinionated: disable channels channel.enable = false; }; boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; networking.hostName = "phosphophyllite"; # Define your hostname. programs.hyprland = { enable = true; package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland; portalPackage = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland; xwayland.enable = true; }; services.xserver.enable = true; services.displayManager.gdm = { enable = true; }; services.desktopManager.gnome.enable = false; # Enable networking networking.networkmanager.enable = true; # Set your time zone. time.timeZone = "Europe/Bratislava"; # Select internationalisation properties. i18n.defaultLocale = "en_US.UTF-8"; i18n.extraLocaleSettings = { LC_ADDRESS = "sk_SK.UTF-8"; LC_IDENTIFICATION = "sk_SK.UTF-8"; LC_MEASUREMENT = "sk_SK.UTF-8"; LC_MONETARY = "sk_SK.UTF-8"; LC_NAME = "sk_SK.UTF-8"; LC_NUMERIC = "sk_SK.UTF-8"; LC_PAPER = "sk_SK.UTF-8"; LC_TELEPHONE = "sk_SK.UTF-8"; LC_TIME = "sk_SK.UTF-8"; }; # Configure keymap in X11 services.xserver.xkb = { layout = "us"; variant = ""; }; hardware.graphics = { enable = true; enable32Bit = true; # Critical for Steam/Proton performance }; services.xserver.videoDrivers = [ "nvidia" ]; hardware.nvidia = { modesetting.enable = true; powerManagement.enable = false; powerManagement.finegrained = false; open = false; # Set to true if you prefer NVIDIA open kernel modules nvidiaSettings = true; }; # Define a user account. Don't forget to set a password with ‘passwd’. users.users."phos" = { isNormalUser = true; extraGroups = [ "networkmanager" "wheel" ]; packages = with pkgs; []; }; services.pipewire = { enable = true; alsa.enable = true; alsa.support32Bit = true; pulse.enable = true; }; services.tailscale = { # Enable tailscale at startup enable = true; useRoutingFeatures = "client"; # If you would like to use a preauthorized key, set # authKeyFile = "/run/secrets/tailscale_key"; # Note: maximum expire time is 90 days }; fonts.packages = with pkgs; [ nerd-fonts.jetbrains-mono # If you are on an older NixOS version (24.05 or prior), use this syntax instead: # (nerdfonts.override { fonts = [ "JetBrainsMono" ]; }) ]; environment.systemPackages = with pkgs; [ vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default. wget foot starship fastfetch git neovim waybar #librewolf firefox-bin cliphist easyeffects nautilus vscodium pulseaudio inotify-tools matugen vesktop bibata-cursors wl-clipboard uv cliphist inputs.serpantinum.packages.${pkgs.stdenv.hostPlatform.system}.default (prismlauncher.override { # Include required JDKs for various Minecraft versions jdks = [ zulu8 # < 1.17 zulu17 # 1.18 – 1.20.4 zulu21 # >= 1.20.5 ]; # Optional tools needed by specific mods additionalPrograms = [ ffmpeg ]; }) ]; programs.helium = { enable = true; flags = [ "--ozone-platform-hint=auto" # Enables native Wayland for Hyprland ]; }; programs.thunar.enable = true; programs.ssh = { startAgent = true; }; programs.steam = { enable = true; }; programs.spicetify = let spicePkgs = inputs.spicetify-nix.legacyPackages.${pkgs.stdenv.hostPlatform.system}; in { enable = true; theme = { name = "Matugen"; src = ./spicetify-theme; injectCss = true; replaceColors = true; overwriteAssets = false; }; colorScheme = "Matugen"; enabledExtensions = with spicePkgs.extensions; [ adblock shuffle ]; }; programs.dconf.enable = true; programs.serpantinum.enable = true; # https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion system.stateVersion = "25.11"; }