Add structure for home-manager to nix

This commit is contained in:
2026-02-14 10:08:23 +01:00
parent dbe24d8866
commit 4a3e8ad43e
4 changed files with 157 additions and 18 deletions

View File

@@ -2,6 +2,7 @@
{
programs.hyprland = {
enable = true;
withUWSM = true;
xwayland.enable = true;
};
@@ -41,24 +42,6 @@
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
CONF="$HOME/.config"
$HYPR/pure_setup.sh
'';
};
wantedBy = [ "default.target" ];
};
hardware.nvidia = {
modesetting.enable = true;
powerManagement.enable = false;