dot

vizie's NixOS desktop: Hyprland, CachyOS kernel and gaming tweaks

66 lines2123 bytesNix
1# Desktop apps and what they need from the system.
2{ pkgs, ... }:
3{
4 programs.firefox.enable = true;
5
6 environment.systemPackages = with pkgs; [
7 claude-desktop
8 signal-desktop-themed
9 discord
10 bitwarden-desktop
11 opendeck
12 kdePackages.dolphin
13 kdePackages.ark
14 kdePackages.kio-extras
15 kdePackages.ffmpegthumbs
16 cosmic-files
17 kdePackages.partitionmanager
18 meld
19 mpv
20 vlc
21 pavucontrol
22 pulsemixer
23 playerctl
24 nwg-look
25 qalculate-gtk
26 alacritty
27 ];
28
29 # --- Claude Desktop's Cowork ----------------------------------------------------
30
31 # Cowork runs its tasks in a QEMU/KVM virtual machine. The app looks for the
32 # UEFI firmware at the path Debian uses, so it is linked there; QEMU, socat
33 # and virtiofsd come with the package (pkgs/claude-desktop).
34 boot.kernelModules = [ "vhost_vsock" ];
35 systemd.tmpfiles.rules = [
36 "L+ /usr/share/OVMF/OVMF_CODE_4M.fd - - - - ${pkgs.OVMF.fd}/FV/OVMF_CODE.fd"
37 ];
38
39 # --- OpenDeck -------------------------------------------------------------------
40
41 # Lets your user open the Stream Deck (40-streamdeck.rules on CachyOS).
42 services.udev.packages = [ pkgs.opendeck ];
43
44 # --- Flatpak --------------------------------------------------------------------
45
46 # Bolt (RuneScape launcher) was a system Flatpak on CachyOS. System Flatpaks
47 # live outside /home, so it is installed again here the first time the system
48 # boots with a network; its data in ~/.var/app/com.adamcake.Bolt is kept.
49 services.flatpak.enable = true;
50 systemd.services.flatpak-bolt = {
51 description = "Install Bolt from Flathub";
52 wantedBy = [ "multi-user.target" ];
53 wants = [ "network-online.target" ];
54 after = [ "network-online.target" ];
55 path = [ pkgs.flatpak ];
56 serviceConfig = {
57 Type = "oneshot";
58 Restart = "on-failure";
59 RestartSec = "1min";
60 };
61 script = ''
62 flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
63 flatpak info com.adamcake.Bolt >/dev/null 2>&1 || flatpak install --noninteractive flathub com.adamcake.Bolt
64 '';
65 };
66}