mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-06-16 18:15:13 -05:00
refactor: complete overhaul
This commit is contained in:
parent
fb3e6fed86
commit
0541b3d61f
154 changed files with 936 additions and 904 deletions
|
@ -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";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue