# Edit this configuration file to define what should be installed on # your system. Help is available in the configuration.nix(5) man page # and in the NixOS manual (accessible by running ‘nixos-help’). { config, pkgs, inputs, ... }: { imports = [ # Include the results of the hardware scan. ./hardware-configuration.nix inputs.home-manager.nixosModules.default ]; # Bootloader. boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; networking.hostName = "swordfish"; # Define your hostname. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. # Configure network proxy if necessary # networking.proxy.default = "http://user:password@proxy:port/"; # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain"; # Enable OpenGL hardware.graphics = { enable = true; }; # Load Nvidia drivers for Xorg and Wayland #services.xserver.videoDrivers = ["nvidia"]; #boot.initrd.kernelModules = [ "i915" "nvidia" "nvidia_modeset" "nvidia_uvm" "nvidia_drm" ]; #boot.kernelModules = [ "kvm-intel" ]; #boot.blacklistedKernelModules = [ "nouveau" ]; #boot.kernelParams = [ "split_lock_detect=off" "module_blacklist=nouveau" "module_blacklist=amdgpu" "i915.modeset=1" "nvidia_drm.modeset=1" "nvidia_drm.fbdev=1" "nvidia.NVreg_PreserveVideoMemoryAllocations=1" "NVreg_UsePageAttributeTable=1" ]; #hardware.nvidia = { # modesetting.enable = true; # powerManagement.enable = false; # powerManagement.finegrained = false; # open = true; # nvidiaSettings = true; # package = config.boot.kernelPackages.nvidiaPackages.latest; # prime = { # sync.enable = true; # intelBusId = "PCI:0:2:0"; # nvidiaBusId = "PCI:1:0:0"; # }; #}; # Audio #services.pulseaudio.enable = false; #security.rtkit.enable = true; #services.pipewire = { # enable = true; # alsa.enable = true; # alsa.support32Bit = true; # pulse.enable = true; #}; services.xserver.enable = true; services.displayManager.sddm.enable = true; # Enable networking networking.networkmanager.enable = true; # Set your time zone. time.timeZone = "Europe/Warsaw"; # Select internationalisation properties. i18n.defaultLocale = "en_US.UTF-8"; i18n.extraLocaleSettings = { LC_ADDRESS = "pl_PL.UTF-8"; LC_IDENTIFICATION = "pl_PL.UTF-8"; LC_MEASUREMENT = "pl_PL.UTF-8"; LC_MONETARY = "pl_PL.UTF-8"; LC_NAME = "pl_PL.UTF-8"; LC_NUMERIC = "pl_PL.UTF-8"; LC_PAPER = "pl_PL.UTF-8"; LC_TELEPHONE = "pl_PL.UTF-8"; LC_TIME = "pl_PL.UTF-8"; }; # Configure keymap in X11 services.xserver.xkb = { layout = "us"; variant = ""; }; programs.zsh.enable = true; # Define a user account. Don't forget to set a password with ‘passwd’. users.users.marked = { isNormalUser = true; description = "marked"; extraGroups = [ "networkmanager" "wheel" "docker" ]; packages = with pkgs; []; shell = pkgs.zsh; }; #home-manager = { # extraSpecialArgs = { inherit inputs; }; # users = { # "marked" = import ./hosts/swordfish/home.nix; # }; #}; # Allow unfree packages #nixpkgs.config.allowUnfree = true; #nix.settings.experimental-features = [ "nix-command" "flakes" ]; # List packages installed in system profile. To search, run: # $ nix search wge #programs.hyprland = { # enable = true; # withUWSM = true; # xwayland.enable = true; #}; #xdg.portal = { # enable = true; # extraPortals = with pkgs; [ # xdg-desktop-portal-gtk # ]; #}; #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 # lshw # kitty #]; #fonts.packages = with pkgs; [ # pkgs.nerd-fonts.jetbrains-mono #]; #programs.gamemode.enable = true; #programs.gamescope = { # enable = true; # capSysNice = true; #}; #virtualisation.docker.enable = true; #environment.sessionVariables = { # WLR_NO_HARDWARE_CURSORS = "1"; # NIXOS_OZONE_WL = "1"; #}; #environment.variables.EDITOR = "vim"; #services.printing.enable = false; # Some programs need SUID wrappers, can be configured further or are # started in user sessions. # programs.mtr.enable = true; # programs.gnupg.agent = { # enable = true; # enableSSHSupport = true; # }; # List services that you want to enable: # Enable the OpenSSH daemon. # services.openssh.enable = true; # Open ports in the firewall. # networking.firewall.allowedTCPPorts = [ ... ]; # networking.firewall.allowedUDPPorts = [ ... ]; # Or disable the firewall altogether. # networking.firewall.enable = false; # This value determines the NixOS release from which the default # settings for stateful data, like file locations and database versions # on your system were taken. It‘s perfectly fine and recommended to leave # this value at the release version of the first install of this system. # Before changing this value read the documentation for this option # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). system.stateVersion = "24.11"; # Did you read the comment? }