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

8
flake.lock generated
View File

@@ -23,11 +23,11 @@
"mysecrets": {
"flake": false,
"locked": {
"lastModified": 1758805800,
"narHash": "sha256-gpsVmfnAx5WvuJccSEFFCGQauVwTtMOvNX8MU2rAh9g=",
"lastModified": 1758835276,
"narHash": "sha256-RlfV0236hc1olvLMUDmd6uBOYGqr+77pF+UjGzELPA8=",
"ref": "refs/heads/main",
"rev": "e323fa4ec284046bd64842e70123ffadfa2b859f",
"revCount": 6,
"rev": "38102377bbb3ecc2de852446ad03a6e4e98aba0b",
"revCount": 7,
"type": "git",
"url": "file:///home/beastie/nixos/secrets"
},

View File

@@ -5,7 +5,7 @@
{
networking = {
hostName = "${hostname}";
interfaces.enp1s0 = {
interfaces.enp5s0 = {
ipv4.addresses = [
{
address = "192.168.0.2";
@@ -15,7 +15,7 @@
};
defaultGateway = {
address = "192.168.0.254";
interface = "enp1s0";
interface = "enp5s0";
};
nameservers = [
"9.9.9.9"

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