Isolate common nix into lib.nix

This commit is contained in:
Sridhar Ratnakumar 2022-12-03 21:57:30 -05:00
parent 2fdf57226a
commit 08bfaa4e88
6 changed files with 93 additions and 85 deletions

View file

@ -30,15 +30,5 @@ in
./current-location.nix
];
};
lib.mkLinuxSystem = mod: inputs.nixpkgs.lib.nixosSystem rec {
system = "x86_64-linux";
# Arguments to pass to all modules.
specialArgs = {
inherit system inputs;
flake = { inherit config; };
};
modules = [ mod ];
};
};
}