Add structure for home-manager to nix
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user