move the signal pkg and service into a file

This commit is contained in:
Andreas Zweili 2021-12-22 17:13:50 +01:00
parent d3f7d0d434
commit f5fec3a1ff
3 changed files with 12 additions and 8 deletions

View File

@ -11,7 +11,6 @@
./restic/default.nix
../home-manager/desktop/services/keeweb.nix
../home-manager/desktop/services/telegram-desktop.nix
../home-manager/desktop/services/signal-desktop.nix
./droidcam
];

View File

@ -6,11 +6,11 @@
./obsidian.nix
./work-desktop.nix
./software/pycharm
./software/signal
];
home.packages = with pkgs; [
appimage-run
keeweb
unstable.signal-desktop
unstable.tdesktop
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; [
unstable.signal-desktop
];
systemd.user.services.signal-desktop = {
description = "Signal Desktop";
partOf = [ "graphical-session.target" ];
wantedBy = [ "graphical-session.target" ];
serviceConfig = {
Unit = {
description = "Signal Desktop";
partOf = [ "graphical-session.target" ];
wantedBy = [ "graphical-session.target" ];
};
Service = {
Type = "simple";
ExecStart = "${pkgs.unstable.signal-desktop}/bin/signal-desktop";
ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID";