Add pipewire and nvidia
This commit is contained in:
8
flake.lock
generated
8
flake.lock
generated
@@ -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"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
@@ -19,6 +19,7 @@
|
|||||||
pkgs.nixos-generators
|
pkgs.nixos-generators
|
||||||
pkgs.efibootmgr
|
pkgs.efibootmgr
|
||||||
pkgs.gptfdisk
|
pkgs.gptfdisk
|
||||||
|
pkgs.duf
|
||||||
];
|
];
|
||||||
services = {
|
services = {
|
||||||
locate = {
|
locate = {
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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": {
|
||||||
|
|||||||
@@ -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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
20
modules/optionnals/desktop/pipewire.nix
Normal file
20
modules/optionnals/desktop/pipewire.nix
Normal 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
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -14,6 +14,10 @@
|
|||||||
../desktop/packages.nix
|
../desktop/packages.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
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user