Last active
January 8, 2025 08:33
-
-
Save liberodark/181f004cbbbc3cbdb83800b5d3503ca8 to your computer and use it in GitHub Desktop.
NixOS KDE 6 Install
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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, ... }: | |
{ | |
imports = | |
[ # Include the results of the hardware scan. | |
./hardware-configuration.nix | |
]; | |
# Bootloader. | |
boot.loader.systemd-boot.enable = true; | |
boot.loader.efi.canTouchEfiVariables = true; | |
boot.kernelPackages = pkgs.linuxPackages_6_12; | |
# Avoid touchpad click to tap (clickpad) bug. For more detail see: | |
# https://wiki.archlinux.org/title/Touchpad_Synaptics#Touchpad_does_not_work_after_resuming_from_hibernate/suspend | |
boot.kernelParams = [ "psmouse.synaptics_intertouch=0" ]; | |
#boot.kernelModules = [ "cgroup2" ]; | |
#boot.initrd.kernelModules = [ "amdgpu" ]; | |
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; | |
networking.enableIPv6 = false; | |
networking.timeServers = [ | |
"time.cloudflare.com" | |
]; | |
networking.nameservers = [ | |
"1.1.1.1" | |
"1.0.0.1" | |
"606:4700:4700::1111" | |
"2606:4700:4700::1001" | |
]; | |
# Hosts | |
networking.extraHosts = | |
'' | |
# My Hosts | |
192.168.1.1 local.ovh.lan | |
''; | |
# Enable StevenBlack | |
networking.stevenblack = { | |
enable = true; | |
# By Default adware + malware is enable | |
#block = [ "fakenews" "gambling" "porn" "social" ]; | |
}; | |
# VPN WireGuard | |
# networking.wg-quick.interfaces = { | |
# wg0 = { | |
# address = [ "IP_CLIENT/32" ]; | |
# dns = [ "1.1.1.1" ]; | |
# privateKeyFile = "/root/.wireguard/private.key"; | |
# | |
# peers = [ | |
# { | |
# publicKey = "PUBLIC_KEY"; | |
# #presharedKeyFile = "/root/wireguard-keys/preshared_from_peer0_key"; | |
# allowedIPs = [ "0.0.0.0/24" ]; | |
# endpoint = "SERVER_IP:PORT"; | |
# persistentKeepalive = 25; | |
# } | |
# ]; | |
# }; | |
# }; | |
# Set your time zone. | |
time.timeZone = "Europe/Paris"; | |
# Select internationalisation properties. | |
i18n.defaultLocale = "fr_FR.UTF-8"; | |
i18n.extraLocaleSettings = { | |
LC_ADDRESS = "fr_FR.UTF-8"; | |
LC_IDENTIFICATION = "fr_FR.UTF-8"; | |
LC_MEASUREMENT = "fr_FR.UTF-8"; | |
LC_MONETARY = "fr_FR.UTF-8"; | |
LC_NAME = "fr_FR.UTF-8"; | |
LC_NUMERIC = "fr_FR.UTF-8"; | |
LC_PAPER = "fr_FR.UTF-8"; | |
LC_TELEPHONE = "fr_FR.UTF-8"; | |
LC_TIME = "fr_FR.UTF-8"; | |
}; | |
# Enable the X11 windowing system. | |
services.xserver.enable = true; | |
#services.xserver.videoDrivers = [ "amdgpu" ]; | |
services.xserver.videoDrivers = [ "modesettings" ]; | |
# Enable the KDE Plasma Desktop Environment. | |
services.displayManager.sddm.enable = true; | |
services.desktopManager.plasma6.enable = true; | |
services.displayManager.sddm.wayland.enable = true; | |
services.displayManager.sddm.autoNumlock = true; | |
services.displayManager.sddm.theme = "breeze"; | |
programs.dconf.enable = true; | |
# Enable automatic login for the user. | |
#services.displayManager.autoLogin.enable = true; | |
#services.displayManager.autoLogin.user = "pc"; | |
# Configure keymap in X11 | |
services.xserver = { | |
xkb.layout = "fr"; | |
xkb.variant = "azerty"; | |
}; | |
# Configure console keymap | |
console.keyMap = "fr"; | |
# Enable CUPS to print documents. | |
services.printing.enable = false; | |
# Enable Bluetooth | |
hardware.bluetooth.enable = true; | |
hardware.bluetooth.powerOnBoot = true; | |
#services.blueman.enable = true; | |
# Enable hickory-dns | |
#services.hickory-dns.enable = true; | |
# Enable ntpd-rs | |
services.ntpd-rs = { | |
enable = true; | |
useNetworkingTimeServers = false; | |
settings = { | |
source = [ | |
{ | |
mode = "nts"; | |
address = "time.cloudflare.com"; | |
} | |
{ | |
mode = "nts"; | |
address = "nts.netnod.se"; | |
} | |
{ | |
mode = "nts"; | |
address = "paris.time.system76.com"; | |
} | |
{ | |
mode = "nts"; | |
address = "ntp3.fau.de"; | |
} | |
]; | |
}; | |
}; | |
# Enable GPU | |
hardware.graphics = { | |
enable = true; | |
enable32Bit = true; | |
extraPackages = with pkgs; [ | |
intel-gpu-tools | |
intel-media-driver | |
vaapiIntel | |
vaapiVdpau | |
libvdpau-va-gl | |
libva | |
]; | |
extraPackages32 = with pkgs; [ | |
intel-gpu-tools | |
intel-media-driver | |
vaapiIntel | |
vaapiVdpau | |
libvdpau-va-gl | |
libva | |
]; | |
}; | |
# Enable sudo-rs | |
security.sudo-rs = { | |
enable = true; | |
package = pkgs.sudo-rs; | |
execWheelOnly = false; | |
wheelNeedsPassword = true; | |
}; | |
# Enable sound with pipewire. | |
hardware.pulseaudio.enable = false; | |
#sound.enable = true; | |
security.rtkit.enable = true; | |
services.pipewire = { | |
enable = true; | |
alsa.enable = true; | |
alsa.support32Bit = true; | |
pulse.enable = true; | |
#jack.enable = true; | |
wireplumber.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.pc = { | |
isNormalUser = true; | |
description = "pc"; | |
extraGroups = [ "networkmanager" "wheel" "docker" ]; | |
shell = pkgs.fish; | |
packages = with pkgs; [ | |
#filezilla | |
]; | |
}; | |
# Allow unfree packages | |
nixpkgs.config.allowUnfree = true; | |
# Battery | |
services.power-profiles-daemon.enable = false; | |
services.auto-cpufreq.enable = true; | |
# Docker | |
virtualisation.docker.enable = true; | |
virtualisation.docker.storageDriver = "overlay2"; | |
virtualisation.docker.rootless = { | |
enable = true; | |
setSocketVariable = true; | |
}; | |
# Flatpak | |
xdg.portal.enable = true; # only needed if you are not doing Gnome | |
services.flatpak.enable = true; | |
# Firefox | |
#programs.firefox = { | |
# enable = true; | |
# package = pkgs.firefox; | |
# languagePacks = [ "fr" ]; | |
#}; | |
# Fish | |
programs.fish.enable = true; | |
# Fwupd | |
services.fwupd.enable = true; | |
# Nomachine Server | |
#services.nxserver.enable = true; | |
# Samba Browsing | |
services.avahi = { | |
enable = true; | |
nssmdns4 = true; | |
}; | |
# VMware | |
virtualisation.vmware.host.enable = true; | |
virtualisation.vmware.guest.enable = true; | |
# Xbox Controllers | |
#hardware.xone.enable = true; | |
#hardware.xpadneo.enable = true; | |
# Insecure Packages | |
#nixpkgs.config.permittedInsecurePackages = [ | |
# "electron-19.1.9" | |
#]; | |
# Exclude KDE Apps | |
environment.plasma6.excludePackages = with pkgs; [ | |
kdePackages.elisa | |
kdePackages.kate | |
]; | |
# List packages installed in system profile. To search, run: | |
# $ nix search wget | |
environment.systemPackages = with pkgs; [ | |
# Core | |
bubblewrap | |
nano | |
fish | |
wget | |
inxi | |
pciutils | |
xdg-user-dirs | |
htop | |
btop | |
linux-firmware | |
spectre-meltdown-checker | |
fwupd | |
fwupd-efi | |
wireplumber | |
lm_sensors | |
appimage-run | |
patchelf | |
dmidecode | |
avahi | |
samba | |
cifs-utils | |
#(pkgs.uutils-coreutils.override { prefix = ""; }) | |
auto-cpufreq | |
unzip | |
# Tools | |
gparted | |
angryipscanner | |
#etcher | |
caligula | |
fd | |
sshx | |
timeshift | |
wrk | |
rustdesk-flutter | |
# Vmware | |
linuxKernel.packages.linux_6_12.vmware | |
vmware-workstation | |
# Docker | |
docker | |
docker-compose | |
docker-buildx | |
# Dev | |
git | |
pre-commit | |
shfmt | |
bats | |
parallel | |
shellcheck | |
vscodium-fhs | |
haskellPackages.ShellCheck | |
sublime-merge | |
jq | |
# Web | |
filezilla | |
firefox | |
element-desktop | |
vesktop # Better Support of Wayland | |
#discord | |
thunderbird | |
riseup-vpn | |
#nodePackages_latest.webtorrent-cli | |
transmission_4-qt | |
# Video | |
mpv | |
# VPN | |
wireguard-tools | |
# Vulkan | |
vulkan-tools | |
vulkan-headers | |
vulkan-loader | |
# Driver | |
mesa | |
glxinfo | |
# Wayland | |
wayland | |
wayland-protocols | |
xwayland | |
xorg.xdpyinfo | |
# KDE | |
kdePackages.xdg-desktop-portal-kde | |
kdePackages.qttranslations | |
kdePackages.plasma-pa | |
kdePackages.sddm-kcm | |
kdePackages.plasma-wayland-protocols | |
# KDE Apps | |
kdePackages.kalk | |
# Language | |
poppler_data | |
hunspell | |
hunspellDicts.fr-any | |
hyphen | |
texlivePackages.hyphen-french | |
# Office | |
onlyoffice-bin_latest | |
# Game | |
airshipper | |
minetest | |
# Wine | |
gnutls | |
libxcrypt | |
mangohud | |
fontconfig | |
faudio | |
freetype | |
xorg.libXft | |
flex | |
fluidsynth | |
mpg123 | |
xorg.libXrandr | |
xorg.libXcomposite | |
xorg.libXi | |
xorg.libXinerama | |
xorg.libXScrnSaver | |
openal | |
krb5 | |
giflib | |
#haskellPackages.gstreamer | |
gst123 | |
gst_all_1.gst-vaapi | |
gst_all_1.gst-libav | |
gst_all_1.gst-plugins-bad | |
gst_all_1.gst-plugins-base | |
gst_all_1.gst-plugins-good | |
gst_all_1.gst-plugins-ugly | |
gst_all_1.gstreamer | |
libpng | |
v4l-utils | |
libgpg-error | |
libjpeg | |
libgcrypt | |
ncurses | |
ocl-icd | |
libxslt | |
libGLU | |
sqlite | |
gamemode | |
vkbasalt | |
cabextract | |
]; | |
# Steam | |
programs.steam.enable = true; | |
# 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; | |
# networking.firewall.allowPing = 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.autoUpgrade.enable = true; | |
#system.autoUpgrade.allowReboot = true; | |
system.stateVersion = "24.05"; # Did you read the comment? | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment