feat(hyprland): use final package
This commit is contained in:
parent
8ea4c31a1c
commit
c557367aaf
6 changed files with 33 additions and 17 deletions
|
@ -1,16 +1,17 @@
|
|||
{
|
||||
pkgs,
|
||||
hyprland,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
}: let
|
||||
user = config.services.device-vars.username;
|
||||
hyprland = config.home-manager.users.${user}.wayland.windowManager.hyprland.finalPackage;
|
||||
in {
|
||||
programs.dconf.enable = true;
|
||||
|
||||
services = {
|
||||
xserver = {
|
||||
displayManager = {
|
||||
sessionPackages = [
|
||||
hyprland.packages.x86_64-linux.default
|
||||
];
|
||||
sessionPackages = [hyprland];
|
||||
};
|
||||
|
||||
libinput.enable = true;
|
||||
|
@ -19,8 +20,8 @@
|
|||
greetd = {
|
||||
settings = {
|
||||
initial_session = {
|
||||
command = "${hyprland.packages.x86_64-linux.default}/bin/Hyprland";
|
||||
user = "matt";
|
||||
command = "${hyprland}/bin/Hyprland";
|
||||
user = user;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -1,9 +1,13 @@
|
|||
{config, ...}: {
|
||||
{config, pkgs, ...}: {
|
||||
# Enable OpenGL
|
||||
hardware.opengl = {
|
||||
enable = true;
|
||||
driSupport = true;
|
||||
driSupport32Bit = true;
|
||||
|
||||
extraPackages = with pkgs; [
|
||||
vaapiVdpau
|
||||
];
|
||||
};
|
||||
|
||||
# Load nvidia driver for Xorg and Wayland
|
||||
|
|
|
@ -1,16 +1,17 @@
|
|||
{
|
||||
hyprland,
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
}: let
|
||||
user = config.services.device-vars.username;
|
||||
hyprland = config.home-manager.users.${user}.wayland.windowManager.hyprland.finalPackage;
|
||||
in {
|
||||
programs.dconf.enable = true;
|
||||
|
||||
services = {
|
||||
xserver = {
|
||||
displayManager = {
|
||||
sessionPackages = [
|
||||
hyprland.packages.x86_64-linux.default
|
||||
];
|
||||
sessionPackages = [hyprland];
|
||||
};
|
||||
|
||||
libinput.enable = true;
|
||||
|
@ -20,7 +21,7 @@
|
|||
greetd = {
|
||||
settings = {
|
||||
initial_session = {
|
||||
command = "${hyprland.packages.x86_64-linux.default}/bin/Hyprland";
|
||||
command = "${hyprland}/bin/Hyprland";
|
||||
user = "matt";
|
||||
};
|
||||
};
|
||||
|
|
BIN
flake.lock
BIN
flake.lock
Binary file not shown.
|
@ -12,6 +12,15 @@
|
|||
|
||||
gset = pkgs.gsettings-desktop-schemas;
|
||||
polkit = pkgs.plasma5Packages.polkit-kde-agent;
|
||||
|
||||
mainPkg =
|
||||
if osConfig.hardware.nvidia.modesetting.enable
|
||||
then {
|
||||
hyprland = pkgs.hyprland;
|
||||
}
|
||||
else {
|
||||
hyprland = hyprland.packages.x86_64-linux.default;
|
||||
};
|
||||
in {
|
||||
imports = [
|
||||
./theme.nix
|
||||
|
@ -25,7 +34,7 @@ in {
|
|||
|
||||
wayland.windowManager.hyprland = {
|
||||
enable = true;
|
||||
package = hyprland.packages.x86_64-linux.default;
|
||||
package = mainPkg.hyprland;
|
||||
enableNvidiaPatches = osConfig.hardware.nvidia.modesetting.enable;
|
||||
|
||||
plugins =
|
||||
|
|
|
@ -2,9 +2,11 @@
|
|||
lib,
|
||||
pkgs,
|
||||
config,
|
||||
hyprland,
|
||||
...
|
||||
}: let
|
||||
user = config.services.device-vars.username;
|
||||
hyprBin = "${config.home-manager.users.${user}.wayland.windowManager.hyprland.finalPackage}/bin";
|
||||
|
||||
nvidia =
|
||||
if config.hardware.nvidia.modesetting.enable
|
||||
then {
|
||||
|
@ -20,7 +22,6 @@
|
|||
env = "";
|
||||
};
|
||||
regreetBin = "${lib.getExe config.programs.regreet.package}";
|
||||
hyprBin = "${hyprland.packages.x86_64-linux.default}/bin";
|
||||
gset = pkgs.gsettings-desktop-schemas;
|
||||
|
||||
css = pkgs.writeText "style.css" ''${builtins.readFile ./style.css}'';
|
||||
|
|
Loading…
Reference in a new issue