aboutsummaryrefslogtreecommitdiff
path: root/modules/services
diff options
context:
space:
mode:
authorMalte Brandy <malte.brandy@maralorn.de>2018-07-29 18:15:50 +0200
committerRobert Helgesson <robert@rycee.net>2018-07-31 16:04:19 +0200
commitc18b1328a52c0d5ce54924051a43a597b86ff4e3 (patch)
tree14116ec487ded277b81ff055781296ad9ecb1a53 /modules/services
parent93ef6aefce9c2cf5f6a3598a5b263c872cdddfc4 (diff)
Parametrize path to profile directory
Diffstat (limited to 'modules/services')
-rw-r--r--modules/services/dunst.nix2
-rw-r--r--modules/services/flameshot.nix2
-rw-r--r--modules/services/kdeconnect.nix4
-rw-r--r--modules/services/mpd.nix4
-rw-r--r--modules/services/owncloud-client.nix2
-rw-r--r--modules/services/syncthing.nix2
6 files changed, 8 insertions, 8 deletions
diff --git a/modules/services/dunst.nix b/modules/services/dunst.nix
index e01211b579a..1273ef39de7 100644
--- a/modules/services/dunst.nix
+++ b/modules/services/dunst.nix
@@ -99,7 +99,7 @@ in
basePaths = [
"/run/current-system/sw"
- "${config.home.homeDirectory}/.nix-profile"
+ config.home.profileDirectory
cfg.iconTheme.package
] ++ optional useCustomTheme hicolorTheme.package;
diff --git a/modules/services/flameshot.nix b/modules/services/flameshot.nix
index 7c259d43af1..d4cf90d59db 100644
--- a/modules/services/flameshot.nix
+++ b/modules/services/flameshot.nix
@@ -33,7 +33,7 @@ in
};
Service = {
- Environment = "PATH=%h/.nix-profile/bin";
+ Environment = "PATH=${config.home.profileDirectory}/bin";
ExecStart = "${package}/bin/flameshot";
Restart = "on-abort";
};
diff --git a/modules/services/kdeconnect.nix b/modules/services/kdeconnect.nix
index b0983bbe3db..a953c4ab8d3 100644
--- a/modules/services/kdeconnect.nix
+++ b/modules/services/kdeconnect.nix
@@ -41,7 +41,7 @@ in
};
Service = {
- Environment = "PATH=%h/.nix-profile/bin";
+ Environment = "PATH=${config.home.profileDirectory}/bin";
ExecStart = "${package}/lib/libexec/kdeconnectd";
Restart = "on-abort";
};
@@ -64,7 +64,7 @@ in
};
Service = {
- Environment = "PATH=%h/.nix-profile/bin";
+ Environment = "PATH=${config.home.profileDirectory}/bin";
ExecStart = "${package}/bin/kdeconnect-indicator";
Restart = "on-abort";
};
diff --git a/modules/services/mpd.nix b/modules/services/mpd.nix
index 5cc5811767c..822d2fe3936 100644
--- a/modules/services/mpd.nix
+++ b/modules/services/mpd.nix
@@ -131,13 +131,13 @@ in {
After = [ "network.target" "sound.target" ];
Description = "Music Player Daemon";
};
-
+
Install = {
WantedBy = [ "default.target" ];
};
Service = {
- Environment = "PATH=%h/.nix-profile/bin";
+ Environment = "PATH=${config.home.profileDirectory}/bin";
ExecStart = "${pkgs.mpd}/bin/mpd --no-daemon ${mpdConf}";
Type = "notify";
ExecStartPre = ''${pkgs.bash}/bin/bash -c "${pkgs.coreutils}/bin/mkdir -p '${cfg.dataDir}' '${cfg.playlistDirectory}'"'';
diff --git a/modules/services/owncloud-client.nix b/modules/services/owncloud-client.nix
index 353e0136c08..d98a508f088 100644
--- a/modules/services/owncloud-client.nix
+++ b/modules/services/owncloud-client.nix
@@ -18,7 +18,7 @@ with lib;
};
Service = {
- Environment = "PATH=%h/.nix-profile/bin";
+ Environment = "PATH=${config.home.profileDirectory}/bin";
ExecStart = "${pkgs.owncloud-client}/bin/owncloud";
};
diff --git a/modules/services/syncthing.nix b/modules/services/syncthing.nix
index 11511725134..7fc556c5234 100644
--- a/modules/services/syncthing.nix
+++ b/modules/services/syncthing.nix
@@ -54,7 +54,7 @@ with lib;
};
Service = {
- Environment = "PATH=%h/.nix-profile/bin";
+ Environment = "PATH=${config.home.profileDirectory}/bin";
ExecStart = "${pkgs.qsyncthingtray}/bin/QSyncthingTray";
};