42 lines
994 B
Nix
42 lines
994 B
Nix
{
|
|
disko,
|
|
home-manager,
|
|
lib,
|
|
inTester,
|
|
self,
|
|
rust-overlay,
|
|
nix-vscode-extensions,
|
|
inputs,
|
|
...
|
|
}:
|
|
with lib;
|
|
{
|
|
imports = [
|
|
./riscv.nix
|
|
./nix
|
|
./environment/impermanence.nix
|
|
./secrets/sops.nix
|
|
disko.nixosModules.default
|
|
./hydra/build-server.nix
|
|
"${home-manager}/nixos"
|
|
];
|
|
options.isGraphical = mkEnableOption "Whether or not this configuration is a graphical install";
|
|
options.isInstaller = mkEnableOption "Whether or not this configuration is an installer and has no access to secrets";
|
|
options.isNSFW = mkEnableOption "Whether or not this configuration is NSFW";
|
|
options.isIntelGPU = mkEnableOption "Whether or not this configuration uses an Intel GPU";
|
|
|
|
config =
|
|
if !inTester then
|
|
{
|
|
nixpkgs.overlays = [
|
|
(_: _: {
|
|
inherit inputs;
|
|
})
|
|
self.overlays.default
|
|
(import rust-overlay)
|
|
nix-vscode-extensions.overlays.default
|
|
];
|
|
}
|
|
else
|
|
{ };
|
|
}
|