[Hyprland] Migrates to new lua-based config

This commit is contained in:
2026-05-31 14:41:17 -07:00
parent 07280e20ea
commit 32393d5ffe
20 changed files with 1168 additions and 625 deletions

View File

@@ -16,7 +16,7 @@
drew@mcp:/tank/archive/drew \
%h/archive
'';
unmountArchive = "/run/wrappers/bin/fusermount -u %h/archive";
# unmountArchive = "/run/wrappers/bin/fusermount -u %h/archive";
in
{
# Mounts the archive when the system is online.
@@ -35,7 +35,6 @@
Type = "simple";
ExecStartPre = "/run/current-system/sw/bin/mkdir -p %h/archive";
ExecStart = mountArchive;
ExecStop = unmountArchive;
Restart = "on-failure";
RestartSec = "10s";
@@ -45,33 +44,6 @@
WantedBy = [ "default.target" ];
};
};
# Unmounts the SSHFS mount whenever the system wants to go to sleep. If I
# don't do this, the service will prevent sleep while it tries to
# reconnect.
mcp-archive-unmount-on-sleep = {
Unit = {
Description = "Unmount SSHFS archive before sleep";
# Run this before the system goes to sleep. It should then be
# shutdown after the system wakes up.
Before = [ "sleep.target" ];
StopWhenUnneeded = true;
};
Service = {
Type = "oneshot";
# The service will remain after it runs so that it stays in the
# service registry as active.
RemainAfterExit = true;
ExecStart = unmountArchive;
ExecStop = mountArchive;
};
Install = {
WantedBy = [ "sleep.target" ];
};
};
};
}