switch config to env vars, add nix module

This commit is contained in:
Lewis Wynne 2026-04-09 14:24:46 +01:00
parent 996da6cf8b
commit 5bfba1b6ff
8 changed files with 206 additions and 32 deletions

View file

@ -8,7 +8,7 @@
};
outputs = { self, nixpkgs, crane, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem (system:
(flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
craneLib = crane.mkLib pkgs;
@ -22,5 +22,7 @@
devShells.default = craneLib.devShell {
packages = with pkgs; [ cargo rustc rust-analyzer ];
};
});
})) // {
nixosModules.default = ./module.nix;
};
}