Switching to hyprland and hyprland conf

This commit is contained in:
2026-02-10 13:55:20 +01:00
parent 9a58fdcfb3
commit c9cee3835d
2 changed files with 46 additions and 6 deletions

44
desktop-environment.nix Normal file
View File

@@ -0,0 +1,44 @@
{ pkgs, ... }:
{
programs.hyprland = {
enable = true;
xwayland.enable = true;
};
environment.systemPackages = with pkgs; [
hyprland
kitty
waybar
wofi
hyprpaper
];
services.dbus.enable = true;
programs.dconf.enable = true;
hardware.opengl.enable = true;
services.greetd.enable = true;
services.greetd.settings.default_session.command = "Hyprland";
xdg.portal = {
enable = true;
extraPortals = [ pkgs.xdg-desktop-portal-hyprland ];
};
systemd.user.services.hyprland-config = {
description = "Hyprland config synchronization.";
serviceConfig = {
Type = "oneshot";
ExecStart = ''
HYPR="$HOME/.config/hypr"
if [ ! -d "$HYPR/.git" ]; then
git clone ssh://git@git.nichkara.eu/dotfiles/hypr.git "$HYPR"
else
git -C "$HYPR" pull --ff-only
fi
'';
};
wantedBy = [ "default.target" ];
};
}