snowfall migration wip homepc done

This commit is contained in:
Aleksandr Lebedev 2025-08-09 17:07:55 +02:00
parent ed08a98651
commit 25774148e4
37 changed files with 1943 additions and 1447 deletions

View file

@ -0,0 +1,28 @@
{
pkgs,
system,
inputs,
...
}: let
emacs = inputs.emacs-kylekrein.packages.${system}.with-lsps-native;
in {
programs.emacs = {
enable = true;
package = emacs;
};
systemd.user.services.emacs = {
Unit = {
Description = "Launches (and relaunches) emacs";
};
Install = {
WantedBy = ["default.target"];
};
Service = {
ExecStart = "${pkgs.writeShellScript "run-emacs" ''
${emacs}/bin/emacs --fg-daemon
''}";
Restart = "on-failure";
RestartSec = 5;
};
};
}