add restruct2
This commit is contained in:
54
home/core/hypr/default.nix
Normal file
54
home/core/hypr/default.nix
Normal file
@@ -0,0 +1,54 @@
|
||||
{
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
imports = [ ../mako ];
|
||||
|
||||
xdg.portal =
|
||||
let
|
||||
hyprland = config.wayland.windowManager.hyprland.package;
|
||||
xdph = pkgs.xdg-desktop-portal-hyprland.override { inherit hyprland; };
|
||||
in
|
||||
{
|
||||
extraPortals = [ xdph ];
|
||||
configPackages = [ hyprland ];
|
||||
};
|
||||
|
||||
home.packages = with pkgs; [
|
||||
grimblast
|
||||
slurp
|
||||
hyprpicker
|
||||
swaybg
|
||||
tofi
|
||||
gnome.gnome-calculator
|
||||
];
|
||||
|
||||
home.sessionVariables = {
|
||||
BROWSER = "firefox";
|
||||
MOZ_ENABLE_WAYLAND = 1;
|
||||
NIXOS_OZONE_WL = 1;
|
||||
SDL_VIDEODRIVER = "wayland";
|
||||
QT_QPA_PLATFORM = "wayland";
|
||||
QT_WAYLAND_DISABLE_WINDOWDECORATION = "1";
|
||||
LIBSEAT_BACKEND = "logind";
|
||||
};
|
||||
|
||||
wayland.windowManager.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
home/core/hypr/hyprland.conf
Normal file
7
home/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
|
||||
Reference in New Issue
Block a user