cleanup config imports

This commit is contained in:
zuckerberg 2022-03-07 23:53:14 -05:00
parent 50ea80ad32
commit 7a08a607e4
6 changed files with 34 additions and 18 deletions

View File

@ -1,6 +1,6 @@
{ config, lib, ... }:
# Modify auto-update so that it pulls a flake and much
# Modify auto-update so that it pulls a flake
let
cfg = config.system.autoUpgrade;

10
common/boot/default.nix Normal file
View File

@ -0,0 +1,10 @@
{ lib, config, pkgs, ... }:
{
imports = [
./firmware.nix
./efi.nix
./bios.nix
./luks.nix
];
}

View File

@ -6,22 +6,9 @@
./pia.nix
./zerotier.nix
./auto-update.nix
./boot/firmware.nix
./boot/efi.nix
./boot/bios.nix
./boot/luks.nix
./server/nginx.nix
./server/thelounge.nix
./server/mumble.nix
./server/icecast.nix
./server/nginx-stream.nix
./server/matrix.nix
./server/zerobin.nix
./server/gitea.nix
./server/privatebin/privatebin.nix
./server/drastikbot.nix
./server/radio.nix
./pc/de.nix
./boot
./server
./pc
];
system.stateVersion = "20.09";
@ -48,4 +35,6 @@
hashedPassword = "$6$TuDO46rILr$gkPUuLKZe3psexhs8WFZMpzgEBGksE.c3Tjh1f8sD0KMC4oV89K2pqAABfl.Lpxu2jVdr5bgvR5cWnZRnji/r/";
};
nix.trustedUsers = [ "root" "googlebot" ];
nix.gc.automatic = true;
}

17
common/server/default.nix Normal file
View File

@ -0,0 +1,17 @@
{ config, pkgs, ... }:
{
imports = [
./nginx.nix
./thelounge.nix
./mumble.nix
./icecast.nix
./nginx-stream.nix
./matrix.nix
./zerobin.nix
./gitea.nix
./privatebin/privatebin.nix
./drastikbot.nix
./radio.nix
];
}

View File

@ -30,7 +30,7 @@
inherit system;
modules = [
path
./common/common.nix
./common
inputs.simple-nixos-mailserver.nixosModule
inputs.agenix.nixosModules.age
({ lib, ... }: {