try hyprland instead
This commit is contained in:
35
modules/nixos/hyprland.nix
Normal file
35
modules/nixos/hyprland.nix
Normal file
@@ -0,0 +1,35 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
programs.uwsm.enable = true;
|
||||
|
||||
programs.hyprland = {
|
||||
enable = true;
|
||||
xwayland.enable = false;
|
||||
withUWSM = true;
|
||||
};
|
||||
|
||||
# launch hyprland on login
|
||||
# systemd.services.hyprland = {
|
||||
# description = "Hyprland";
|
||||
# wantedBy = [ "graphical.target" ];
|
||||
# after = [ "display-manager.service" ];
|
||||
# serviceConfig = {
|
||||
# Type = "simple";
|
||||
# ExecStart = "${pkgs.hyprland}/bin/hyprland";
|
||||
# Restart = "always";
|
||||
# RestartSec = "5";
|
||||
# User = config.var.username;
|
||||
# };
|
||||
# };
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
waybar
|
||||
];
|
||||
|
||||
|
||||
}
|
||||
@@ -17,19 +17,18 @@
|
||||
enable = true;
|
||||
};
|
||||
hardware.nvidia = {
|
||||
prime = {
|
||||
nvidiaBusId = "PCI:1:0:0";
|
||||
intelBusId = "PCI:0:2:0";
|
||||
|
||||
};
|
||||
# prime = {
|
||||
# nvidiaBusId = "PCI:1:0:0";
|
||||
# intelBusId = "PCI:0:2:0";
|
||||
# };
|
||||
modesetting.enable = true;
|
||||
powerManagement.enable = false;
|
||||
powerManagement.enable = true;
|
||||
powerManagement.finegrained = false;
|
||||
open = false;
|
||||
nvidiaSettings = false;
|
||||
|
||||
package = config.boot.kernelPackages.nvidiaPackages.mkDriver {
|
||||
version = "565.77"; # latest
|
||||
version = "565.77";
|
||||
sha256_64bit = "sha256-CnqnQsRrzzTXZpgkAtF7PbH9s7wbiTRNcM0SPByzFHw=";
|
||||
sha256_aarch64 = "sha256-LSAYUnhfnK3rcuPe1dixOwAujSof19kNOfdRHE7bToE=";
|
||||
openSha256 = "sha256-Fxo0t61KQDs71YA8u7arY+503wkAc1foaa51vi2Pl5I=";
|
||||
@@ -37,7 +36,7 @@
|
||||
persistencedSha256 = "sha256-wnDjC099D8d9NJSp9D0CbsL+vfHXyJFYYgU3CwcqKww=";
|
||||
};
|
||||
};
|
||||
|
||||
# overwrite the blacklists set previously
|
||||
boot.extraModprobeConfig = "";
|
||||
boot.blacklistedKernelModules = [];
|
||||
services.udev.extraRules = "";
|
||||
|
||||
Reference in New Issue
Block a user