Compare commits

...

2 Commits

Author SHA1 Message Date
6135e433a6 Add pipewire 2025-09-26 01:06:40 +02:00
dc6e082a50 Add pipewire and nvidia 2025-09-26 01:06:26 +02:00
9 changed files with 70 additions and 18 deletions

8
flake.lock generated
View File

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

View File

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

View File

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

View File

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

View File

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

@@ -12,8 +12,13 @@
../desktop/dunst.nix ../desktop/dunst.nix
../desktop/kitty.nix ../desktop/kitty.nix
../desktop/packages.nix ../desktop/packages.nix
../desktop/pipewire.nix
../desktop/qwerty-fr.nix ../desktop/qwerty-fr.nix
../desktop/rofi.nix ../desktop/rofi.nix
../desktop/starship.nix
../desktop/wayland.nix ../desktop/wayland.nix
### Import Graphics modules
../desktop/nvidia.nix
]; ];
} }

View File

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