mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-06-17 18:45:12 -05:00
refactor: complete overhaul
This commit is contained in:
parent
fb3e6fed86
commit
0541b3d61f
154 changed files with 936 additions and 904 deletions
|
@ -1,26 +1,14 @@
|
|||
let
|
||||
aggregatedSettings =
|
||||
configPath = ./config;
|
||||
|
||||
aggregatedSettings = let
|
||||
files = builtins.attrNames (builtins.readDir configPath);
|
||||
in
|
||||
builtins.foldl' (
|
||||
emptySet: settingsFiles:
|
||||
emptySet // (import ./${settingsFiles}.nix)
|
||||
) {} [
|
||||
"cosmetics"
|
||||
"diskAvoidance"
|
||||
"fingerprinting"
|
||||
"formFill"
|
||||
"geolocation"
|
||||
"hardening"
|
||||
"https"
|
||||
"misc"
|
||||
"noTouching"
|
||||
"opSec"
|
||||
"outbound"
|
||||
"passwords"
|
||||
"privacy"
|
||||
"proxy"
|
||||
"startup"
|
||||
"telemetry"
|
||||
];
|
||||
emptySet: settingsFile:
|
||||
emptySet // (import (configPath + "/${settingsFile}"))
|
||||
) {}
|
||||
(builtins.filter (name: builtins.match ".*\\.nix$" name != null) files);
|
||||
in {
|
||||
settings = aggregatedSettings;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue