# 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’). { inputs, lib, config, pkgs, ... }: { imports = [ # Include the results of the hardware scan. ./hardware-configuration.nix ../common/global inputs.musnix.nixosModules.musnix ]; # Bootloader. boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; networking.hostName = "sol"; # 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"; networking.nameservers = ["8.8.8.8" "8.8.4.4"]; # Enable networking networking.networkmanager.enable = true; # Enable the X11 windowing system. services.xserver.enable = true; # Enable the Cinnamon Desktop Environment. services.xserver.displayManager.lightdm.enable = true; services.xserver.desktopManager.cinnamon.enable = true; services.xserver.windowManager.stumpwm.enable = true; services.autorandr = { enable = true; profiles = { "dual-monitor" = { fingerprint = { DP-1 = "00ffffffffffff004c2d7d7055473630ffff010380351e782adfd5a35b4da1250d5054bfef8081c0810081809500a9c0b300714f0101023a801871382d40582c450010292100001e000000fd00304b1e5412000a202020202020000000fc004c4632345433350a2020202020000000ff00484b32543730303135340a2020016e02031cb146901f0413031267030c0010000024681a00000101304b00011d00bc52d01e20b828554010292100001e8c0ad090204031200c4055001029210000188c0ad08a20e02d10103e9600102921000018011d007251d01e206e28550010292100001e2a4480a0703827403020350010292100001a00000000000000000018"; HDMI-0 = "00ffffffffffff004c2d200d55505a5a061c010380341d782a9315a655519c27115054bfef80714f81c0810081809500a9c0b3000101023a801871382d40582c450009252100001e000000fd00324b1e5111000a202020202020000000fc00533234463335300a2020202020000000ff0048345a4b3230323637330a202001de020311b14690041f13120365030c001000011d00bc52d01e20b828554009252100001e8c0ad090204031200c4055000925210000188c0ad08a20e02d10103e9600092521000018000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000051"; }; config = { DP-1 = { enable = true; primary = true; position = "0x0"; mode = "1920x1080"; }; HDMI-0 = { enable = true; position = "1920x0"; mode = "1920x1080"; }; }; }; }; }; keyboard.desktop = true; # Enable CUPS to print documents. services.printing.enable = true; # Enable sound with pipewire. hardware.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; }; musnix.enable = true; services.systembus-notify.enable = true; security.pam.loginLimits = [ { domain = "dk"; item = "nofile"; type = "hard"; value = "524288"; } ]; # 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.dk = { isNormalUser = true; description = "Dominik Kaiser"; extraGroups = [ "networkmanager" "wheel" "audio" ]; packages = with pkgs; [ # thunderbird podman-compose ]; }; services.flatpak.enable = true; # Nvidia hardware.graphics.enable = true; services.xserver.videoDrivers = ["nvidia"]; hardware.nvidia = { modesetting.enable = true; powerManagement.enable = false; powerManagement.finegrained = false; open = false; nvidiaSettings = true; package = config.boot.kernelPackages.nvidiaPackages.latest; }; hardware.nvidia-container-toolkit.enable = true; # Steam programs.steam = { enable = true; remotePlay.openFirewall = true; localNetworkGameTransfers.openFirewall = true; }; programs.direnv.enable = true; services.emacs.enable = true; # List packages installed in system profile. To search, run: # $ nix search wget environment.systemPackages = [ inputs.home-manager.packages.${pkgs.system}.default ]; virtualisation.containers.enable = true; virtualisation.podman = { enable = true; dockerCompat = true; autoPrune = { enable = true; dates = "weekly"; flags = [ "--filter=until=24h" "--filter=label!=important" ]; }; defaultNetwork.settings.dns_enabled = true; }; networking.firewall.allowedTCPPorts = [ 53 ]; networking.firewall.allowedUDPPorts = [ 53 ]; # 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? }