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 = {