refactor: complete overhaul

This commit is contained in:
Nick 2024-11-10 01:29:37 -06:00
parent fb3e6fed86
commit 0541b3d61f
154 changed files with 936 additions and 904 deletions

View file

@ -1,15 +1,14 @@
{lib, ...}: {
imports =
{lib, ...}: let
configPath = ./config;
serverImports = let
files = builtins.attrNames (builtins.readDir configPath);
in
map
(file: ./${file}.nix)
[
"boot"
"filesystem"
"graphics"
"hardware"
"networking"
"sops"
];
(name: configPath + "/${name}")
(builtins.filter (name: builtins.match ".*\\.nix$" name != null) files);
in {
imports = serverImports;
nixpkgs.hostPlatform = lib.mkForce "x86_64-linux";
system.stateVersion = lib.mkForce "24.05";
}