nixos-config/modules/default.nix

35 lines
741 B
Nix
Raw Normal View History

2024-11-03 12:32:18 +00:00
{
disko,
home-manager,
2024-11-05 08:11:22 +00:00
lib,
2024-11-10 21:20:25 +00:00
inTester,
self,
2024-11-03 12:32:18 +00:00
...
2024-11-05 08:11:22 +00:00
}:
2024-11-09 14:02:26 +00:00
with lib;
{
2024-10-28 13:58:23 +00:00
imports = [
./riscv.nix
./containers/autoconfig.nix
2024-10-31 12:48:51 +00:00
./nix
2024-10-29 08:43:14 +00:00
./environment/impermanence.nix
2024-10-29 09:06:17 +00:00
./secrets/sops.nix
2024-10-29 12:29:05 +00:00
disko.nixosModules.default
2024-10-30 06:56:03 +00:00
./hydra/build-server.nix
2024-11-03 12:32:18 +00:00
"${home-manager}/nixos"
2024-10-28 13:58:23 +00:00
];
2024-11-05 08:11:22 +00:00
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";
2024-11-10 21:20:25 +00:00
options.isNSFW = mkEnableOption "Whether or not this configuration is NSFW";
config =
if !inTester then
{
nixpkgs.overlays = [
self.overlays.default
];
}
else
{ };
2024-10-28 13:58:23 +00:00
}