141 lines
3.0 KiB
Nix
141 lines
3.0 KiB
Nix
{ config, pkgs, lib, ... }:
|
|
{
|
|
|
|
nixpkgs.overlays = [
|
|
(import ./overlays/suckless/st-overlay.nix)
|
|
# (import ./overlays/suckless/surf-overlay.nix)
|
|
(import ./overlays/suckless/dwm-overlay.nix)
|
|
];
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
arandr
|
|
# blender
|
|
dmenu
|
|
dunst
|
|
emacs
|
|
firefox
|
|
flutter
|
|
gimp
|
|
gnome.gnome-screenshot
|
|
guake
|
|
insomnia
|
|
# kcachegrind
|
|
libnotify
|
|
mpv
|
|
obs-studio
|
|
okular
|
|
# openhmd
|
|
pavucontrol
|
|
remmina
|
|
perlPackages.AppClusterSSH
|
|
signal-desktop
|
|
scrot
|
|
st
|
|
sunshine
|
|
# surf
|
|
sxiv
|
|
virt-manager
|
|
vlc
|
|
wireshark
|
|
x11vnc
|
|
# zoom-us
|
|
];
|
|
|
|
fonts.fonts = with pkgs; [
|
|
(nerdfonts.override { fonts = [ "DroidSansMono" ]; })
|
|
];
|
|
|
|
hardware.pulseaudio = {
|
|
daemon.config.default-sample-channels = 6;
|
|
enable = false;
|
|
# extraConfig = ''
|
|
# load-module module-simple-protocol-tcp rate=48000 format=s16le channels=2 source=alsa_output.pci-0000_01_00.1.hdmi-stereo.monitor record=true port=8888
|
|
# '';
|
|
package = pkgs.pulseaudioFull;
|
|
# tcp = {
|
|
# enable = true;
|
|
# };
|
|
};
|
|
|
|
networking.firewall.allowedTCPPorts = [ 4713 8888 ];
|
|
|
|
programs.steam.enable = true;
|
|
|
|
security.rtkit.enable = true;
|
|
|
|
services = {
|
|
blueman.enable = true;
|
|
picom = {
|
|
backend = "glx";
|
|
# backend = "xr_glx_hybrid";
|
|
enable = true;
|
|
vSync = true;
|
|
};
|
|
xserver = {
|
|
# defaultDepth = 30;
|
|
displayManager.defaultSession = "none+dwm";
|
|
dpi = 100;
|
|
enable = true;
|
|
videoDrivers = [ "nvidia" ];
|
|
windowManager.dwm.enable = true;
|
|
};
|
|
pipewire = {
|
|
alsa = {
|
|
enable = true;
|
|
support32Bit = true;
|
|
};
|
|
config.pipewire = {
|
|
#"context.properties" = {
|
|
# "link.max-buffers" = 16;
|
|
# "log.level" = 2;
|
|
# "default.clock.rate" = 48000;
|
|
# "default.clock.quantum" = 32;
|
|
# "default.clock.min-quantum" = 32;
|
|
# "default.clock.max-quantum" = 32;
|
|
# "core.daemon" = true;
|
|
# "core.name" = "pipewire-0";
|
|
#};
|
|
#"context.modules" = [
|
|
# {
|
|
# name = "libpipewire-module-rtkit";
|
|
# args = {
|
|
# "nice.level" = -15;
|
|
# "rt.prio" = 88;
|
|
# "rt.time.soft" = 200000;
|
|
# "rt.time.hard" = 200000;
|
|
# };
|
|
# flags = [ "ifexists" "nofail" ];
|
|
# }
|
|
# { name = "libpipewire-module-protocol-native"; }
|
|
# { name = "libpipewire-module-profiler"; }
|
|
# { name = "libpipewire-module-metadata"; }
|
|
# { name = "libpipewire-module-spa-device-factory"; }
|
|
# { name = "libpipewire-module-spa-node-factory"; }
|
|
# { name = "libpipewire-module-client-node"; }
|
|
# { name = "libpipewire-module-client-device"; }
|
|
# {
|
|
# name = "libpipewire-module-portal";
|
|
# flags = [ "ifexists" "nofail" ];
|
|
# }
|
|
# {
|
|
# name = "libpipewire-module-access";
|
|
# args = {};
|
|
# }
|
|
# { name = "libpipewire-module-adapter"; }
|
|
# { name = "libpipewire-module-link-factory"; }
|
|
# { name = "libpipewire-module-session-manager"; }
|
|
#];
|
|
};
|
|
enable = true;
|
|
jack.enable = true;
|
|
pulse.enable = true;
|
|
socketActivation = true;
|
|
};
|
|
};
|
|
|
|
systemd.user.services.sunshine = {
|
|
path = [ pkgs.sunshine ];
|
|
script = "sunshine";
|
|
};
|
|
}
|