1
0
mirror of https://github.com/kmein/niveum synced 2026-03-19 19:41:08 +01:00

feat(stardict): start goldendict on startup

This commit is contained in:
2022-01-03 11:14:36 +01:00
parent f0924d7d57
commit 25d2294abc
2 changed files with 17 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
{ pkgs, lib, ... }:
{ config, pkgs, lib, ... }:
let
classicsDictionaries = {
Pape = pkgs.fetchzip {
@@ -157,6 +157,19 @@ in
SDCV_PAGER = "${pkgs.w3m}/bin/w3m -T text/html -dump";
};
systemd.user.services.goldendict = {
wantedBy = [ "graphical-session.target" ];
environment = {
DISPLAY = ":${toString config.services.xserver.display}";
};
serviceConfig = {
SyslogIdentifier = "goldendict";
ExecStart = "${pkgs.goldendict}/bin/goldendict";
Restart = "always";
RestartSec = "15s";
StartLimitBurst = 0;
};
};
home-manager.users.me = {
home.file.".goldendict/config".text = import <niveum/lib/goldendict-config.nix> {