I really need help and guidance for setting up my system that is dell XPS 15 9510 model I9 11900H with 32Gb ram and intel uhd with rtx 3050 TI. I have managed to get working basic setup with all apps and stuff so I actually can use it but now comes the hard parts. I will post soon more specs when back on the laptop
{ config, pkgs, ... }:
{
# -------------------------------------------------------------------
# 1. SYSTEM-LEVEL IMPORTS (MODULES)
# -------------------------------------------------------------------
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
# REMOVED: <home-manager/nixos>
];
# Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
# Use latest kernel.
boot.kernelPackages = pkgs.linuxPackages_latest;
boot.initrd.luks.devices."luks-8edb1b27-5162-4113-8d34-8b440a45ef52".device = "/dev/disk/by-uuid/8edb1b27-5162-4113-8d34-8b440a45ef52";
networking.hostName = "nixos"; # 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 networking
networking.networkmanager.enable = true;
# 2. Firewall Configuration (Recommended Security)
networking.firewall.enable = true;
# Allow SSH if you need to log in remotely (port 22)
# networking.firewall.allowedTCPPorts = [ 22 ];
# Log refused connections for debugging/security review
networking.firewall.logRefusedConnections = true;
# Set your time zone.
time.timeZone = "Europe/Helsinki";
# Select internationalisation properties.
i18n.defaultLocale = "en_US.UTF-8";
i18n.extraLocaleSettings = {
LC_ADDRESS = "fi_FI.UTF-8";
LC_IDENTIFICATION = "fi_FI.UTF-8";
LC_MEASUREMENT = "fi_FI.UTF-8";
LC_MONETARY = "fi_FI.UTF-8";
LC_NAME = "fi_FI.UTF-8";
LC_NUMERIC = "fi_FI.UTF-8";
LC_PAPER = "fi_FI.UTF-8";
LC_TELEPHONE = "fi_FI.UTF-8";
LC_TIME = "fi_FI.UTF-8";
};
# Enable the X11 windowing system.
# You can disable this if you're only using the Wayland session.
services.xserver.enable = true;
# Enable the KDE Plasma Desktop Environment.
services.displayManager.sddm.enable = true;
services.desktopManager.plasma6.enable = true;
# Configure keymap in X11
services.xserver.xkb = {
layout = "fi";
variant = "nodeadkeys";
};
# Configure console keymap
console.keyMap = "fi";
# Enable CUPS to print documents.
services.printing.enable = true;
# Enable sound with pipewire.
services.pulseaudio.enable = false;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
# If you want to use JACK applications, uncomment this
#jack.enable = true;
# use the example session manager (no others are packaged yet so this is enabled by default,
# no need to redefine it in your config for now)
#media-session.enable = true;
};
# Enable touchpad support (enabled default in most desktopManager).
# services.xserver.libinput.enable = true;
# Define a user account. Don't forget to set a password with âpasswdâ.
users.users.phatle = {
isNormalUser = true;
description = "Marko Jokinen";
extraGroups = [ "networkmanager" "wheel" ];
# All user packages previously defined in home.nix are now installed here:
packages = with pkgs; [
kdePackages.kate
# kdePackages.neochat
# Applications moved from home.nix:
thunderbird
blender
darktable
gimp
inkscape
steam
libreoffice
signal-desktop
protonvpn-gui
protonmail-bridge-gui
proton-pass
];
};
# REMOVED: Section 3. HOME MANAGER CONFIGURATION
# Install firefox.
programs.firefox.enable = true;
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
# Enable Zsh program features and add it to the list of available system shells
environment.shells = with pkgs; [ zsh ];
programs.zsh.enable = true;
# Set Zsh as the default shell for all users
users.defaultUserShell = pkgs.zsh;
# List packages installed in system profile. To search, run:
# $ nix search wget
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
# REMOVED: home-manager
git
nodejs
zsh
];
nix.settings.experimental-features = [ "nix-command" "flakes" ];
# 4. Nix Optimization and Garbage Collection
nix = {
# Set the Nix daemon to use maximum parallel build jobs
settings = {
max-jobs = "auto";
cores = 0;
# Automatically symlink duplicate files in the Nix store
auto-optimise-store = true;
};
# Enable automatic garbage collection
gc = {
automatic = true;
dates = "weekly"; # Run weekly
# Keep generations only for the last 30 days
options = "--delete-older-than 30d";
};
};
# 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 = "25.11"; # Did you read the comment?
}
hardware-confuguration.nix
# Do not modify this file! It was generated by ânixos-generate-configâ
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }:
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "xhci_pci" "thunderbolt" "vmd" "nvme" "uas" "sd_mod" "rtsx_pci_sdmmc" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/mapper/luks-f1a43e56-d2f9-4b0e-9238-82b840993cc1";
fsType = "ext4";
};
boot.initrd.luks.devices."luks-f1a43e56-d2f9-4b0e-9238-82b840993cc1".device = "/dev/disk/by-uuid/f1a43e56-d2f9-4b0e-9238-82b840993cc1";
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/7E07-FD8D";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
};
swapDevices =
[ { device = "/dev/mapper/luks-8edb1b27-5162-4113-8d34-8b440a45ef52"; }
];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}
just ask more since i have no idea yet what i am doing
