2022-07-19 04:05:08 +00:00
|
|
|
{
|
|
|
|
self,
|
|
|
|
nixpkgs,
|
|
|
|
inputs,
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
nixosSystem = nixpkgs.lib.makeOverridable nixpkgs.lib.nixosSystem;
|
|
|
|
customModules = import ../modules/modules-list.nix;
|
|
|
|
baseModules = [
|
|
|
|
# make flake inputs accessiable in NixOS
|
|
|
|
{_module.args.inputs = inputs;}
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
({pkgs, ...}: {
|
|
|
|
nix.nixPath = [
|
|
|
|
"nixpkgs=${pkgs.path}"
|
|
|
|
];
|
|
|
|
nix.extraOptions = ''
|
|
|
|
experimental-features = nix-command flakes
|
|
|
|
'';
|
|
|
|
documentation.info.enable = false;
|
|
|
|
})
|
|
|
|
];
|
|
|
|
}
|
|
|
|
];
|
|
|
|
defaultModules = baseModules ++ customModules;
|
2022-07-20 03:36:14 +00:00
|
|
|
deployment = {
|
|
|
|
allowLocalDeployment = true;
|
|
|
|
};
|
2022-07-19 04:05:08 +00:00
|
|
|
in {
|
2022-07-20 03:36:14 +00:00
|
|
|
#toscano = import ./hosts/toscano/configuration.nix;
|
2022-07-19 04:05:08 +00:00
|
|
|
}
|