mirror of
https://github.com/eRgo35/nix-config.git
synced 2026-02-04 11:06:11 +01:00
hyprland initial config
This commit is contained in:
40
home-manager/features/desktop/hyprland/default.nix
Normal file
40
home-manager/features/desktop/hyprland/default.nix
Normal file
@@ -0,0 +1,40 @@
|
||||
{
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
hyprland = pkgs.inputs.hyprland.hyprland.override {wrapRuntimeDeps = false;};
|
||||
xdhp = pkgs.inputs.hyprland.xdg-desktop-portal-hyprland.override {inherit hyprland;};
|
||||
in {
|
||||
imports = [
|
||||
../common
|
||||
../common/wayland-wm
|
||||
];
|
||||
|
||||
xdg.portal = {
|
||||
extraPortals = [xdhp];
|
||||
configPackages = [hyprland];
|
||||
};
|
||||
|
||||
home.packages = with pkgs; [
|
||||
inputs.hyprwm-contrib.grimblast
|
||||
hyprslurp
|
||||
hyprpicker
|
||||
];
|
||||
|
||||
wayland.windowManger.hyprland = {
|
||||
enable = true;
|
||||
package = hyprland;
|
||||
systemd = {
|
||||
enable = true;
|
||||
# Same as default but stop graphical-session too
|
||||
extraCommands = lib.mkBefore [
|
||||
"systemctl --user stop graphical-session.target"
|
||||
"systemctl --user start hyprland-session.target"
|
||||
];
|
||||
};
|
||||
|
||||
#TODO: Add hyprland config
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user