aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--flake.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/flake.nix b/flake.nix
index 1ecb544..896c2f9 100644
--- a/flake.nix
+++ b/flake.nix
@@ -7,7 +7,8 @@
outputs = { self, nixpkgs }:
let
- pkgs = import nixpkgs { system = "x86_64-linux"; };
+ localSystem = { system = "x86_64-linux"; };
+ pkgs = import nixpkgs { inherit localSystem; };
luap = pkgs.lua54Packages;
inputs = [
luap.lua
@@ -36,7 +37,7 @@
nixosModules.default = { pkgs, ... }: {
config = {
- environment.systemPackages = [ self.packages.${pkgs.system}.default ];
+ environment.systemPackages = [ self.packages.${pkgs.stdenv.hostPlatform.system}.default ];
};
};
};