more sensible config and nvidia option didn't really work like that
This commit is contained in:
parent
45a42eac96
commit
ac23dd9251
9 changed files with 21 additions and 25 deletions
|
@ -1,4 +1,4 @@
|
||||||
{ pkgs, ... }: {
|
{ config, pkgs, ... }: {
|
||||||
imports = [
|
imports = [
|
||||||
./options.nix
|
./options.nix
|
||||||
];
|
];
|
||||||
|
@ -50,11 +50,22 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services = {
|
||||||
|
xserver.videoDrivers = ["nvidia"];
|
||||||
|
};
|
||||||
|
|
||||||
hardware = {
|
hardware = {
|
||||||
enableRedistributableFirmware = true;
|
enableRedistributableFirmware = true;
|
||||||
enableAllFirmware = true;
|
enableAllFirmware = true;
|
||||||
cpu.amd.updateMicrocode = true;
|
cpu.amd.updateMicrocode = true;
|
||||||
|
|
||||||
|
|
||||||
|
nvidia = {
|
||||||
|
modesetting.enable = true;
|
||||||
|
nvidiaSettings = false;
|
||||||
|
package = config.boot.kernelPackages.nvidiaPackages.vulkan_beta;
|
||||||
|
};
|
||||||
|
|
||||||
opengl = {
|
opengl = {
|
||||||
enable = true;
|
enable = true;
|
||||||
driSupport = true;
|
driSupport = true;
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
|
|
||||||
withAudio = true;
|
withAudio = true;
|
||||||
withBluetooth = true;
|
withBluetooth = true;
|
||||||
withNvidia = true;
|
|
||||||
|
|
||||||
withNiri = true;
|
withNiri = true;
|
||||||
withGnome = false;
|
withGnome = false;
|
||||||
|
|
|
@ -49,7 +49,10 @@
|
||||||
};
|
};
|
||||||
swapDevices = [ { device = "/swap/swapfile"; } ];
|
swapDevices = [ { device = "/swap/swapfile"; } ];
|
||||||
|
|
||||||
services.thermald.enable = true;
|
services = {
|
||||||
|
thermald.enable = true;
|
||||||
|
upower.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
hardware = {
|
hardware = {
|
||||||
enableRedistributableFirmware = true;
|
enableRedistributableFirmware = true;
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
|
|
||||||
withAudio = true;
|
withAudio = true;
|
||||||
withBluetooth = true;
|
withBluetooth = true;
|
||||||
withNvidia = false;
|
|
||||||
|
|
||||||
withNiri = true;
|
withNiri = true;
|
||||||
withGnome = false;
|
withGnome = false;
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
|
|
||||||
withAudio = true;
|
withAudio = true;
|
||||||
withBluetooth = true;
|
withBluetooth = true;
|
||||||
withNvidia = false;
|
|
||||||
|
|
||||||
withNiri = true;
|
withNiri = true;
|
||||||
withGnome = false;
|
withGnome = false;
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
{ lib, config, ... }: lib.mkIf(config.withAudio) {
|
{ lib, config, ... }: lib.mkIf(config.withAudio) {
|
||||||
|
security.rtkit.enable = true;
|
||||||
|
|
||||||
services.pipewire = {
|
services.pipewire = {
|
||||||
enable = true;
|
enable = true;
|
||||||
alsa.enable = true;
|
alsa.enable = true;
|
||||||
|
|
|
@ -7,7 +7,6 @@
|
||||||
./gnome
|
./gnome
|
||||||
./home
|
./home
|
||||||
./niri
|
./niri
|
||||||
./nvidia
|
|
||||||
./virt
|
./virt
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -20,6 +19,9 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
environment.sessionVariables = {
|
||||||
|
NIXOS_OZONE_WL = "1";
|
||||||
|
};
|
||||||
|
|
||||||
nix = {
|
nix = {
|
||||||
nixPath = ["nixpkgs=${inputs.nixpkgs}"];
|
nixPath = ["nixpkgs=${inputs.nixpkgs}"];
|
||||||
|
@ -74,15 +76,6 @@
|
||||||
# Needed for some features in nautilus such as auto-mounting and trash
|
# Needed for some features in nautilus such as auto-mounting and trash
|
||||||
services.gvfs.enable = true;
|
services.gvfs.enable = true;
|
||||||
|
|
||||||
security.rtkit.enable = true;
|
|
||||||
|
|
||||||
services.upower = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
environment.sessionVariables.NIXOS_OZONE_WL = "1";
|
|
||||||
|
|
||||||
users.users.twoneis = {
|
users.users.twoneis = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
description = "twoneis";
|
description = "twoneis";
|
||||||
|
|
|
@ -1,9 +0,0 @@
|
||||||
{ lib, config, ... }: lib.mkIf (config.withNvidia) {
|
|
||||||
services.xserver.videoDrivers = ["nvidia"];
|
|
||||||
|
|
||||||
hardware.nvidia = {
|
|
||||||
modesetting.enable = true;
|
|
||||||
nvidiaSettings = false;
|
|
||||||
package = config.boot.kernelPackages.nvidiaPackages.vulkan_beta;
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -4,7 +4,6 @@
|
||||||
|
|
||||||
withAudio = mkEnableOption "Enable support for audio";
|
withAudio = mkEnableOption "Enable support for audio";
|
||||||
withBluetooth = mkEnableOption "Enable bluetooth";
|
withBluetooth = mkEnableOption "Enable bluetooth";
|
||||||
withNvidia = mkEnableOption "Enable proprietary nvidia drivers";
|
|
||||||
|
|
||||||
withNiri = mkEnableOption "Enable niri compositor";
|
withNiri = mkEnableOption "Enable niri compositor";
|
||||||
withGnome =mkEnableOption "Enable gnome DE";
|
withGnome =mkEnableOption "Enable gnome DE";
|
||||||
|
|
Loading…
Add table
Reference in a new issue