mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 10:58:02 +00:00
43 lines
1004 B
Nix
43 lines
1004 B
Nix
|
{
|
||
|
inputs = {
|
||
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||
|
rust-overlay.url = "github:oxalica/rust-overlay";
|
||
|
};
|
||
|
|
||
|
outputs = { self, nixpkgs, ... }@inputs:
|
||
|
let
|
||
|
inherit (nixpkgs) lib;
|
||
|
systems = [ "x86_64-linux" ];
|
||
|
forAllSystems = f: lib.genAttrs systems (system: f system);
|
||
|
in
|
||
|
{
|
||
|
devShells = forAllSystems
|
||
|
(system:
|
||
|
let
|
||
|
pkgs = import nixpkgs {
|
||
|
inherit system;
|
||
|
overlays = [
|
||
|
inputs.rust-overlay.overlays.default
|
||
|
];
|
||
|
};
|
||
|
in
|
||
|
{
|
||
|
default = import ./shell.nix { inherit pkgs; };
|
||
|
});
|
||
|
|
||
|
packages = forAllSystems
|
||
|
(system:
|
||
|
let
|
||
|
pkgs = import nixpkgs {
|
||
|
inherit system;
|
||
|
overlays = [
|
||
|
inputs.rust-overlay.overlays.default
|
||
|
];
|
||
|
};
|
||
|
in
|
||
|
{
|
||
|
default = pkgs.callPackage ./. { };
|
||
|
});
|
||
|
};
|
||
|
}
|