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 ./docker.nix
./restic ./restic
./droidcam ./droidcam
../home-manager/desktop/services/keeweb.nix
]; ];
networking = { networking = {

View File

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

View File

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