summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorAylur <[email protected]>2024-09-11 21:48:26 +0000
committerAylur <[email protected]>2024-09-11 21:48:26 +0000
commite2b9013d38f64f6e0f53841f32f9e000b74e220f (patch)
treea540296191fac436649ba66934580aa468aaf4ae /flake.nix
parent0e259e49357d5389db897414fc52b50b1ce1d14c (diff)
nix: touchups
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix12
1 files changed, 7 insertions, 5 deletions
diff --git a/flake.nix b/flake.nix
index 8ff60e7..f2ae8cf 100644
--- a/flake.nix
+++ b/flake.nix
@@ -8,8 +8,8 @@
inherit (builtins) replaceStrings readFile;
version = replaceStrings ["\n"] [""] (readFile ./version);
- system = "x86_64-linux";
- pkgs = import nixpkgs {inherit system;};
+ system = "x86_64-linux"; # TODO: other architectures
+ pkgs = nixpkgs.legacyPackages.${system};
mkPkg = name: src: inputs:
pkgs.stdenv.mkDerivation {
@@ -33,9 +33,11 @@
inherit self pkgs;
};
- mkLuaPackage = import ./nix/lua.nix {
- inherit pkgs;
- astal = self;
+ lib = {
+ mkLuaPackage = import ./nix/lua.nix {
+ inherit pkgs;
+ astal = self;
+ };
};
packages.${system} = with pkgs; {