switch config to env vars, add nix module
This commit is contained in:
parent
996da6cf8b
commit
5bfba1b6ff
8 changed files with 206 additions and 32 deletions
|
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue