Switching to hyprland and hyprland conf
This commit is contained in:
44
desktop-environment.nix
Normal file
44
desktop-environment.nix
Normal 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" ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user