diff --git a/configuration/default.nix b/configuration/default.nix index 6f73f54..3eec2c0 100644 --- a/configuration/default.nix +++ b/configuration/default.nix @@ -30,6 +30,8 @@ ./nginx ]; + nixpkgs.overlays = [ (_: prev: { local = import ../pkgs { pkgs = prev; }; }) ]; + nix = { extraOptions = '' experimental-features = nix-command flakes diff --git a/configuration/services/starbound.nix b/configuration/services/starbound.nix index a667b57..609d4c0 100644 --- a/configuration/services/starbound.nix +++ b/configuration/services/starbound.nix @@ -1,9 +1,4 @@ -{ - flake-inputs, - pkgs, - lib, - ... -}: +{ pkgs, lib, ... }: let inherit (lib) concatStringsSep; in @@ -16,9 +11,7 @@ in after = [ "network.target" ]; serviceConfig = { - ExecStart = "${ - flake-inputs.self.packages.${pkgs.system}.starbound - }/bin/launch-starbound ${./configs/starbound.json}"; + ExecStart = "${pkgs.local.starbound}/bin/launch-starbound ${./configs/starbound.json}"; Type = "simple";