remove home-manager and some old files

This commit is contained in:
2026-04-20 00:08:47 +01:00
parent 7ed11cbb54
commit 67a1e0ced0
25 changed files with 194 additions and 1393 deletions
+40 -22
View File
@@ -1,28 +1,46 @@
{ pkgs, ... }:
{
services = {
emacs = {
enable = true;
package = pkgs.emacs-gtk;
client = {
enable = true;
arguments = [
"-c"
"-a emacs"
];
};
startWithUserSession = "graphical";
# Emacs daemon
systemd.user.services.emacs = {
description = "Emacs text editor";
wantedBy = [ "graphical-session.target" ];
wants = [ "graphical-session.target" ];
after = [ "graphical-session.target" ];
serviceConfig = {
Type = "notify";
ExecStart = "${pkgs.emacs-gtk}/bin/emacs --fg-daemon";
ExecStop = "${pkgs.emacs-gtk}/bin/emacsclient --eval '(kill-emacs)'";
TimeoutStartSec = "10min";
Restart = "on-failure";
};
gpg-agent = {
enable = true;
defaultCacheTtl = 1800;
enableSshSupport = true;
};
gnome-keyring.enable = true;
mpris-proxy.enable = true;
nextcloud-client.enable = true;
};
# Bluetooth media key proxy
systemd.user.services.mpris-proxy = {
description = "MPRIS proxy for Bluetooth media controls";
wantedBy = [ "bluetooth.target" ];
after = [ "bluetooth.target" ];
serviceConfig = {
Type = "simple";
ExecStart = "${pkgs.bluez}/bin/mpris-proxy";
Restart = "on-failure";
};
};
# Nextcloud desktop client
systemd.user.services.nextcloud-client = {
description = "Nextcloud desktop sync client";
wantedBy = [ "graphical-session.target" ];
after = [ "graphical-session.target" "network-online.target" ];
wants = [ "network-online.target" ];
serviceConfig = {
Type = "simple";
ExecStart = "${pkgs.nextcloud-client}/bin/nextcloud --background";
Restart = "on-failure";
RestartSec = "5s";
};
};
# gnome-keyring and gpg-agent are handled at system level
}