initial setup

This commit is contained in:
2025-05-29 13:53:53 +02:00
commit 9f1f69cf9b
112 changed files with 3344 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
# Normal desktop programs for both gnome and plasma.
{ pkgs, ... }:
{
environment.systemPackages =
(with pkgs; [
ibm-plex
adwaita-fonts
pciutils
aha
vesktop
obs-studio
teams-for-linux
]);
}

View File

@@ -0,0 +1,6 @@
# Enable bluetooth on boot.
{ ... }:
{
hardware.bluetooth.enable = true;
hardware.bluetooth.powerOnBoot = true;
}

View File

@@ -0,0 +1,8 @@
# Only install Chrome. Declaritive options not needed.
{ pkgs, ... }:
{
environment.systemPackages =
(with pkgs; [
google-chrome
]);
}

View File

@@ -0,0 +1,7 @@
{ ... }:
{
# Ignore Dualsense touchpad in desktop mode.
services.udev.extraRules =''
ACTION=="add|change", KERNEL=="event[0-9]*", ATTRS{name}=="*Wireless Controller Touchpad", ENV{LIBINPUT_IGNORE_DEVICE}="1"
'';
}

View File

@@ -0,0 +1,15 @@
# Install GPU drivers and vulkan hdr layer
{ pkgs, ... }:
{
hardware.amdgpu.initrd.enable = true;
boot.initrd.kernelModules = [ "amdgpu" ];
boot.kernelModules = [ "amdgpu" ];
environment.systemPackages = with pkgs;[
vulkan-tools
vulkan-hdr-layer-kwin6
];
hardware.graphics = {
enable = true;
enable32Bit = true;
};
}

View File

@@ -0,0 +1,5 @@
# Enable libinput.
{ ... }:
{
services.libinput.enable = true;
}

View File

@@ -0,0 +1,5 @@
# Enable CUPS for printing.
{ ... }:
{
services.printing.enable = true;
}

View File

@@ -0,0 +1,11 @@
# Use pipewire and alsa instead of pulseaudio.
{ ... }:
{
#hardware.pulseaudio.enable = false;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
}