summaryrefslogtreecommitdiff
path: root/nixos/configuration.nix
diff options
context:
space:
mode:
authoralex <[email protected]>2026-10-18 18:06:26 +0200
committeralex <[email protected]>2026-10-18 18:06:26 +0200
commite9b13d99836c5ccfaf8b878fd02d7f94c51e407b (patch)
tree3066d38b7fda7e73973d139c59c1d3b2c386c1db /nixos/configuration.nix
parent6f2ceddd86b9b4b779f7ef2e80a42d9bdb8694dd (diff)
downloadnixos-e9b13d99836c5ccfaf8b878fd02d7f94c51e407b.tar.xz
nixos-e9b13d99836c5ccfaf8b878fd02d7f94c51e407b.zip
modularized the setup more
Diffstat (limited to 'nixos/configuration.nix')
-rw-r--r--nixos/configuration.nix278
1 files changed, 0 insertions, 278 deletions
diff --git a/nixos/configuration.nix b/nixos/configuration.nix
deleted file mode 100644
index 5edf510..0000000
--- a/nixos/configuration.nix
+++ /dev/null
@@ -1,278 +0,0 @@
-# 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
- inputs.lanzaboote.nixosModules.lanzaboote
- ];
-
- 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.systemd-boot.enable = lib.mkForce false;
- boot.loader.efi.canTouchEfiVariables = true;
-
- boot.lanzaboote = {
- enable = true;
- pkiBundle = "/var/lib/sbctl";
- };
-
- 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;
-
- wireplumber.extraConfig."10-rename-devices" = {
- "monitor.alsa.rules" = [
- {
- matches = [
- {
- "node.name" = "alsa_output.pci-0000_0a_00.4.analog-stereo";
- }
- ];
- actions = {
- update-props = {
- "node.description" = "Speakers";
- };
- };
- }
- {
- matches = [
- {
- "node.name" = "alsa_output.pci-0000_08_00.1.hdmi-stereo";
- }
- ];
- actions = {
- update-props = {
- "device.disabled" = true;
- };
- };
- }
- # Example for your HyperX headset (replace with full name from wpctl status):
- {
- matches = [
- {
- "node.name" = "alsa_output.usb-HP__Inc_HyperX_Cloud_II_Core_Wireless-00";
- }
- ];
- actions = {
- update-props = {
- "node.description" = "HyperX Cloud II";
- };
- };
- }
- ];
-};
- };
-
- 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; [
- sbctl
- wget
- foot
- starship
- fastfetch
- git
- neovim
- qemu
- firefox-bin
- cliphist
- easyeffects
- vscodium
- tmux
- pulseaudio
- inotify-tools
- matugen
- pipes
- vesktop
- claude-code
- bibata-cursors
- wl-clipboard
- uv
- adw-gtk3
- papirus-icon-theme
- papirus-folders
- glib
- cliphist
- opencode
- gamescope
- godot_4-mono
- 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.direnv.enable = true;
-
- programs.helium = {
- enable = true;
- flags = [
- "--ozone-platform-hint=auto" # Enables native Wayland for Hyprland
- ];
- };
-
- programs.thunar.enable = true;
- services.flatpak.enable = true;
-
- programs.ssh = {
- startAgent = true;
- };
-
- programs.steam = {
- enable = true;
- gamescopeSession.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";
-}