moving hyprland to system-wide instead of hm to test
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
./zsh.nix
|
||||
./cnix-pkgs.nix
|
||||
./fonts.nix
|
||||
./hypr
|
||||
];
|
||||
home-manager = {
|
||||
# useGlobalPkgs = true;
|
||||
|
||||
50
hosts/core/hypr/default.nix
Normal file
50
hosts/core/hypr/default.nix
Normal file
@@ -0,0 +1,50 @@
|
||||
{
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
imports = [../../../home/extra/mako];
|
||||
|
||||
xdg.portal = let
|
||||
hyprland = config.wayland.windowManager.hyprland.package;
|
||||
xdph = pkgs.xdg-desktop-portal-hyprland.override {inherit hyprland;};
|
||||
in {
|
||||
extraPortals = [xdph];
|
||||
configPackages = [hyprland];
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
grimblast
|
||||
slurp
|
||||
hyprpicker
|
||||
swaybg
|
||||
tofi
|
||||
gnome.gnome-calculator
|
||||
];
|
||||
|
||||
environment.variables = {
|
||||
BROWSER = "firefox";
|
||||
NIXOS_OZONE_WL = 1;
|
||||
SDL_VIDEODRIVER = "wayland";
|
||||
QT_QPA_PLATFORM = "wayland";
|
||||
XDG_SESSION_TYPE = "wayland";
|
||||
QT_WAYLAND_DISABLE_WINDOWDECORATION = "1";
|
||||
};
|
||||
|
||||
programs.hyprland = {
|
||||
enable = true;
|
||||
package = pkgs.hyprland;
|
||||
xwayland.enable = true;
|
||||
extraConfig = ''
|
||||
${builtins.readFile ./hyprland.conf}
|
||||
'';
|
||||
systemd = {
|
||||
enable = true;
|
||||
extraCommands = [
|
||||
"systemctl --user stop graphical-session.target"
|
||||
"systemctl --user start hyprland-session.target"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
7
hosts/core/hypr/hyprland.conf
Normal file
7
hosts/core/hypr/hyprland.conf
Normal file
@@ -0,0 +1,7 @@
|
||||
# HYPRLAND CONFIGURATION
|
||||
|
||||
source=./land/appearance.conf
|
||||
source=./land/inputs.conf
|
||||
source=./land/keybinds.conf
|
||||
source=./land/rules.conf
|
||||
source=./land/startup.conf
|
||||
@@ -24,6 +24,12 @@
|
||||
];
|
||||
};
|
||||
};
|
||||
mangohud = {
|
||||
enable = true;
|
||||
settings = {
|
||||
full = true;
|
||||
};
|
||||
};
|
||||
gamemode = {
|
||||
enable = true;
|
||||
settings = {
|
||||
|
||||
Reference in New Issue
Block a user