move keeweb package and service into a file

This commit is contained in:
Andreas Zweili 2021-12-22 17:22:57 +01:00
parent 3dfcfb9dd7
commit bec8f40023
3 changed files with 12 additions and 8 deletions

View File

@ -10,7 +10,6 @@
./docker.nix
./restic
./droidcam
../home-manager/desktop/services/keeweb.nix
];
networking = {

View File

@ -5,13 +5,13 @@
./common/git/git.nix
./obsidian.nix
./work-desktop.nix
./software/keeweb
./software/pycharm
./software/signal
./software/telegram
];
home.packages = with pkgs; [
appimage-run
keeweb
unstable.vscode
unstable.youtube-dl
];

View File

@ -1,11 +1,16 @@
# needs to be imported into the main nix config
{ config, pkgs, ... }:
{ pkgs, ... }:
{
home.packages = with pkgs; [
keeweb
];
systemd.user.services.keeweb = {
description = "Keeweb";
partOf = [ "graphical-session.target" ];
wantedBy = [ "graphical-session.target" ];
serviceConfig = {
Unit = {
description = "KeeWeb";
partOf = [ "graphical-session.target" ];
wantedBy = [ "graphical-session.target" ];
};
Service = {
Type = "simple";
ExecStart = "${pkgs.keeweb}/bin/keeweb";
ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID";