move application autostarts into systemd services
This commit is contained in:
parent
e80afa0de1
commit
18fbe9b7ca
|
@ -7,6 +7,9 @@
|
|||
{
|
||||
imports = [
|
||||
./common.nix
|
||||
../home-manager/desktop/services/keeweb.nix
|
||||
../home-manager/desktop/services/telegram-desktop.nix
|
||||
../home-manager/desktop/services/signal-desktop.nix
|
||||
];
|
||||
|
||||
networking = {
|
||||
|
|
|
@ -16,7 +16,6 @@
|
|||
|
||||
# raw config files
|
||||
home.file.".config/qtile".source = ./desktop/qtile;
|
||||
# home.file.".xprofile".source = ./desktop/xprofile;
|
||||
home.file.".config/terminator".source = ./desktop/terminator;
|
||||
|
||||
services.nextcloud-client = {
|
||||
|
@ -26,43 +25,4 @@
|
|||
|
||||
services.network-manager-applet.enable = true;
|
||||
|
||||
systemd.user.services.telegram-desktop = {
|
||||
description = "Telegram Desktop";
|
||||
partOf = [ "graphical-session.target" ];
|
||||
wantedBy = [ "graphical-session.target" ];
|
||||
serviceConfig = {
|
||||
Type = "simple";
|
||||
ExecStart = "${pkgs.tdesktop}/bin/telegram-desktop";
|
||||
ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID";
|
||||
KillMode = "process";
|
||||
Restart = "on-failure";
|
||||
};
|
||||
};
|
||||
#
|
||||
# systemd.user.services.signal-desktop = {
|
||||
# description = "Signal Desktop";
|
||||
# partOf = [ "graphical-session.target" ];
|
||||
# wantedBy = [ "graphical-session.target" ];
|
||||
# serviceConfig = {
|
||||
# Type = "simple";
|
||||
# ExecStart = "${pkgs.signal-desktop}/bin/signal-desktop";
|
||||
# ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID";
|
||||
# KillMode = "process";
|
||||
# Restart = "on-failure";
|
||||
# };
|
||||
# };
|
||||
#
|
||||
# systemd.user.services.keeweb = {
|
||||
# description = "Keeweb";
|
||||
# partOf = [ "graphical-session.target" ];
|
||||
# wantedBy = [ "graphical-session.target" ];
|
||||
# serviceConfig = {
|
||||
# Type = "simple";
|
||||
# ExecStart = "${pkgs.keeweb}/bin/keeweb";
|
||||
# ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID";
|
||||
# KillMode = "process";
|
||||
# Restart = "on-failure";
|
||||
# };
|
||||
# };
|
||||
|
||||
}
|
||||
|
|
|
@ -0,0 +1,16 @@
|
|||
# needs to be imported into the main nix config
|
||||
{ config, pkgs, ... }:
|
||||
{
|
||||
systemd.user.services.keeweb = {
|
||||
description = "Keeweb";
|
||||
partOf = [ "graphical-session.target" ];
|
||||
wantedBy = [ "graphical-session.target" ];
|
||||
serviceConfig = {
|
||||
Type = "simple";
|
||||
ExecStart = "${pkgs.keeweb}/bin/keeweb";
|
||||
ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID";
|
||||
KillMode = "process";
|
||||
Restart = "on-failure";
|
||||
};
|
||||
};
|
||||
}
|
|
@ -0,0 +1,16 @@
|
|||
# needs to be imported into the main nix config
|
||||
{ config, pkgs, ... }:
|
||||
{
|
||||
systemd.user.services.signal-desktop = {
|
||||
description = "Signal Desktop";
|
||||
partOf = [ "graphical-session.target" ];
|
||||
wantedBy = [ "graphical-session.target" ];
|
||||
serviceConfig = {
|
||||
Type = "simple";
|
||||
ExecStart = "${pkgs.signal-desktop}/bin/signal-desktop";
|
||||
ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID";
|
||||
KillMode = "process";
|
||||
Restart = "on-failure";
|
||||
};
|
||||
};
|
||||
}
|
|
@ -0,0 +1,16 @@
|
|||
# needs to be imported into the main nix config
|
||||
{ config, pkgs, ... }:
|
||||
{
|
||||
systemd.user.services.telegram-desktop = {
|
||||
description = "Telegram Desktop";
|
||||
partOf = [ "graphical-session.target" ];
|
||||
wantedBy = [ "graphical-session.target" ];
|
||||
serviceConfig = {
|
||||
Type = "simple";
|
||||
ExecStart = "${pkgs.tdesktop}/bin/telegram-desktop";
|
||||
ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID";
|
||||
KillMode = "process";
|
||||
Restart = "on-failure";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue