nixos-config/modules/default.nix

39 lines
863 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-13 13:38:40 +00:00
rust-overlay,
2024-11-13 14:46:14 +00:00
nix-vscode-extensions,
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
2024-11-13 13:38:40 +00:00
(import rust-overlay)
2024-11-13 14:46:14 +00:00
nix-vscode-extensions.overlays.default
2024-11-10 21:20:25 +00:00
];
}
else
{ };
2024-10-28 13:58:23 +00:00
}