dotfiles/root-conf/nixos/nixLap/configuration.nix
2026-06-04 14:41:38 +02:00

107 lines
2.3 KiB
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 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, pkgs-unstable, ... }:
let
optionalPkgs = import ../optional-packages.nix { inherit pkgs; };
in
{
imports =
[
../shared-conf.nix
];
# Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.initrd.availableKernelModules = [
"aesni_intel"
"cryptd"
];
# Start the driver at boot
systemd.services.fprintd = {
wantedBy = [ "multi-user.target" ];
serviceConfig.Type = "simple";
};
# Install the driver
services.fprintd.enable = true;
hardware.bluetooth.enable = true; # enables support for Bluetooth
hardware.graphics = {
enable = true;
enable32Bit = true;
};
# for 32 Bit
programs.steam.enable = true;
virtualisation.containers.enable = true;
services.flatpak.enable = true;
virtualisation = {
podman = {
enable = true;
dockerCompat = true;
defaultNetwork.settings.dns_enabled = true;
};
};
# Enable the X11 windowing system.
services.xserver.enable = true;
# Enable the KDE Plasma Desktop Environment.
# https://wiki.nixos.org/wiki/KDE#Unlock_KDE_Wallet_with_LUKS_password
# Enabeling this akes reaching graphical target slow
boot.initrd.systemd.enable = false;
services.displayManager = {
plasma-login-manager = {
enable = true;
};
};
services.desktopManager.plasma6.enable = true;
# Configure keymap in X11
services.xserver.xkb = {
layout = "de";
variant = "";
};
# Configure console keymap
console.keyMap = "de";
# 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;
};
users.groups.wireshark = {};
programs.kdeconnect.enable = true;
environment.systemPackages = with pkgs; [
# KDE
kdePackages.bluedevil
kdePackages.krdc
# Net
pkgs-unstable.gns3-gui
docker-compose
# Utils
imagemagick
] ++ optionalPkgs;
system.stateVersion = "25.05";
}