Add pipewire and nvidia

This commit is contained in:
2025-09-26 01:06:26 +02:00
parent 81c83f6264
commit dc6e082a50
9 changed files with 69 additions and 18 deletions

View File

@@ -19,6 +19,7 @@
pkgs.nixos-generators
pkgs.efibootmgr
pkgs.gptfdisk
pkgs.duf
];
services = {
locate = {

View File

@@ -4,11 +4,11 @@
# See https://wiki.hyprland.org/Configuring/Monitors/
monitor=Virtual-1,1920x1080,0x0,1
workspace = 1, monitor:Virtual-1
workspace = 2, monitor:Virtual-1
workspace = 3, monitor:Virtual-1
workspace = 4, monitor:Virtual-1
workspace = 5, monitor:Virtual-1
workspace = 6, monitor:Virtual-1
workspace = 7, monitor:Virtual-1
workspace = 8, monitor:Virtual-1
workspace = 1, monitor:HDMI-A-1
workspace = 2, monitor:HDMI-A-1
workspace = 3, monitor:HDMI-A-1
workspace = 4, monitor:HDMI-A-1
workspace = 5, monitor:HDMI-A-2
workspace = 6, monitor:HDMI-A-2
workspace = 7, monitor:HDMI-A-2
workspace = 8, monitor:HDMI-A-2

View File

@@ -34,7 +34,7 @@
},
"disk": {
"interval": 300,
"format": "  {percentage_free}% ",
"format": "  {percentage_used}% ",
"path": "/"
},
"network": {
@@ -73,9 +73,8 @@
"all-outputs": false,
"on-click": "activate",
"persistent-workspaces": {
"HDMI-A-1": [1, 2, 3],
"HDMI-A-2": [4, 5, 6],
"eDP-1": [7, 8, 9],
"HDMI-A-1": [1, 2, 3, 4],
"HDMI-A-2": [5, 6, 7, 8],
},
"format": "{name}",
"format-icons": {

View File

@@ -0,0 +1,26 @@
{
lib,
config,
...
}:
let
hostname = config.networking.hostName;
in
{
services.xserver.videoDrivers = [ "nvidia" ];
hardware = {
graphics = {
# enable opengl
enable = true;
enable32Bit = true;
};
nvidia = {
modesetting.enable = true;
powerManagement.enable = false;
powerManagement.finegrained = false;
open = true;
nvidiaSettings = true;
package = config.boot.kernelPackages.nvidiaPackages.latest;
};
};
}

View File

@@ -0,0 +1,20 @@
{
lib,
config,
pkgs,
...
}:
{
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
environment.systemPackages = with pkgs; [
pavucontrol
pulseaudio # for pactl
easyeffects
];
}

View File

@@ -14,6 +14,10 @@
../desktop/packages.nix
../desktop/qwerty-fr.nix
../desktop/rofi.nix
../desktop/starship.nix
../desktop/wayland.nix
### Import Graphics modules
../desktop/nvidia.nix
];
}

View File

@@ -12,6 +12,7 @@
../desktop/dunst.nix
../desktop/kitty.nix
../desktop/packages.nix
../desktop/pipewire.nix
../desktop/qwerty-fr.nix
../desktop/rofi.nix
../desktop/starship.nix