From b2306caaf844c3716550bb037898047e5ae119a9 Mon Sep 17 00:00:00 2001 From: Enrico Fasoli Date: Wed, 16 Sep 2015 02:00:03 +0200 Subject: [PATCH] added ipfs package and service --- configuration.nix | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/configuration.nix b/configuration.nix index 0b335bc..37ccd87 100644 --- a/configuration.nix +++ b/configuration.nix @@ -65,7 +65,7 @@ # Games minecraft steam # Productivity and applications - vim ranger chromium irssi bc w3m gnupg libreoffice zathura + vim ranger chromium irssi bc w3m gnupg libreoffice zathura go14Packages.ipfs.bin # Media beets mpd mpc_cli ncmpcpp popcorntime mpv # System utilities, drivers... @@ -144,6 +144,18 @@ }; }; + # Custom Services + + systemd.services.ipfs = { + after = [ "network.target" ]; + wantedBy = [ "multi-user.target" ]; + path = [ pkgs.bash ]; + serviceConfig = { + User = "fazo"; + ExecStart = "${pkgs.go14Packages.ipfs.bin}/bin/ipfs daemon --init"; + }; + }; + # User environment programs.zsh = {