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,7 +1,7 @@
{flake, ...}: let
inherit (flake.config.people) user0;
inherit (flake.config.people.users.${user0}) aliases;
inherit (flake.config.machines.devices) nas server;
inherit (flake.config.machines.devices) synology server;
inherit (flake.config.services) instances;
jellyfinTags = ["jelly" "video" "streaming" "movies" "shows" "music"];
@ -92,7 +92,7 @@ in {
}
{
name = "${instances.syncthing.label} (${instances.synology.label})";
url = "http://${nas.ip.address0}:${toString instances.syncthing.ports.port0}";
url = "http://${synology.ip.address0}:${toString instances.syncthing.ports.port0}";
tags =
["synology"]
++ syncthingTags;
@ -108,7 +108,7 @@ in {
}
{
name = instances.synology.label;
url = "https://${nas.ip.address0}:${toString instances.synology.ports.port0}";
url = "https://${synology.ip.address0}:${toString instances.synology.ports.port0}";
tags = [instances.synology.name "dsm" "cloud"];
keyword = instances.synology.label;
}

View file

@ -1,28 +1,26 @@
{flake, ...}: let
aggregatedBookmarks =
configPath = ./config;
flakedPath = configPath + "/flake";
filterFiles = name: builtins.match ".*\\.nix$" name != null;
regularBookmarks = let
files = builtins.attrNames (builtins.readDir configPath);
in
builtins.foldl' (
emptyList: bookmarks:
emptyList ++ bookmarks.bookmarks
) [] (map
(name: import ./${name}.nix)
[
"academic"
"development"
"gaming"
"finances"
"shopping"
"socialMedia"
"tools"
"tracking"
])
++ builtins.foldl' (
emptyList: bookmarks:
emptyList ++ bookmarks.bookmarks
) [] (map
(name: import ./${name}.nix {inherit flake;})
[
"selfHosted"
]);
emptyList: bookmarkFile:
emptyList ++ (import (configPath + "/${bookmarkFile}")).bookmarks
) [] (builtins.filter filterFiles files);
flakedBookmarks = let
files = builtins.attrNames (builtins.readDir flakedPath);
in
builtins.foldl' (
emptyList: bookmarkFile:
emptyList ++ (import (flakedPath + "/${bookmarkFile}") {inherit flake;}).bookmarks
) [] (builtins.filter filterFiles files);
aggregatedBookmarks = regularBookmarks ++ flakedBookmarks;
in {
bookmarks = aggregatedBookmarks;
}

View file

View file

Before

Width:  |  Height:  |  Size: 87 KiB

After

Width:  |  Height:  |  Size: 87 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 71 KiB

After

Width:  |  Height:  |  Size: 71 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 25 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 20 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 38 KiB

After

Width:  |  Height:  |  Size: 38 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 539 KiB

After

Width:  |  Height:  |  Size: 539 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 10 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 7.2 KiB

After

Width:  |  Height:  |  Size: 7.2 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 21 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 5.3 KiB

After

Width:  |  Height:  |  Size: 5.3 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 31 KiB

After

Width:  |  Height:  |  Size: 31 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 266 KiB

After

Width:  |  Height:  |  Size: 266 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 7.6 KiB

After

Width:  |  Height:  |  Size: 7.6 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 195 KiB

After

Width:  |  Height:  |  Size: 195 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 7.3 KiB

After

Width:  |  Height:  |  Size: 7.3 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 4.8 KiB

After

Width:  |  Height:  |  Size: 4.8 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 58 KiB

After

Width:  |  Height:  |  Size: 58 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 7 KiB

After

Width:  |  Height:  |  Size: 7 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 27 KiB

After

Width:  |  Height:  |  Size: 27 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 59 KiB

After

Width:  |  Height:  |  Size: 59 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 22 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 5.1 KiB

After

Width:  |  Height:  |  Size: 5.1 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 357 KiB

After

Width:  |  Height:  |  Size: 357 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 18 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 26 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 436 KiB

After

Width:  |  Height:  |  Size: 436 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 51 KiB

After

Width:  |  Height:  |  Size: 51 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 44 KiB

After

Width:  |  Height:  |  Size: 44 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 22 KiB

Before After
Before After

View file

@ -1,31 +1,46 @@
{flake, ...}: let
aggregatedSearchEngines =
configPath = ./config;
flakedPath = configPath + "/flake";
regularSearchEngines = let
files = builtins.attrNames (builtins.readDir configPath);
in
builtins.foldl' (
emptySet: searchEngine:
emptySet // (import ./${searchEngine}.nix)
) {} [
"academic"
"development"
"gaming"
"hidden"
"shopping"
"socialMedia"
"spank"
"tools"
"tracking"
"web"
]
// builtins.foldl' (
emptySet // (import (configPath + "/${searchEngine}"))
) {} (builtins.filter (name: builtins.match ".*\\.nix$" name != null) files);
flakedSearchEngines = let
files = builtins.attrNames (builtins.readDir flakedPath);
in
builtins.foldl' (
emptySet: searchEngine:
emptySet // (import ./${searchEngine}.nix {inherit flake;})
) {} [
"selfHosted"
];
emptySet // (import (flakedPath + "/${searchEngine}") {inherit flake;})
) {} (builtins.filter (name: builtins.match ".*\\.nix$" name != null) files);
aggregatedSearchEngines = regularSearchEngines // flakedSearchEngines;
in {
search = {
force = true;
default = "Kagi";
engines = aggregatedSearchEngines;
order = import ./order.nix;
order = [
"AlternativeTo"
"Core Radio"
"Hackage"
"Hoogle"
"Jellyfin"
"Kagi"
"Nix Home Manager"
"Nix Options"
"Nix Packages"
"Nix Wiki"
"PeerTube"
"Sci-Hub"
"Torrent Leech"
"Urban Dictionary"
"Wikipedia"
"YouTube"
];
};
}

View file

@ -1,36 +0,0 @@
[
# "1337x"
"AlternativeTo"
# "Amazon"
# "Brave"
"Core Radio"
# "DNS Checker"
# "Door Dash"
# "FYT Supplies"
"Hackage"
"Hoogle"
"Jellyfin"
"Kagi"
# "Kijiji"
# "Memory Express"
"Nix Home Manager"
"Nix Options"
"Nix Packages"
"Nix Wiki"
"PeerTube"
# "Proton DB"
# "Reddit"
# "Rhyme Zone"
"Sci-Hub"
# "Skip The Dishes"
# "Stanford Encyclopedia of Philosophy"
# "Steam DB"
# "The Pirate Bay"
"Torrent Leech"
"Urban Dictionary"
# "VSTorrent"
"Wikipedia"
# "X"
# "XVideos"
"YouTube"
]

View file

@ -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;
}

2
home-manager/modules/firefox/config/themes/default.nix Normal file → Executable file
View file

@ -1,3 +1,3 @@
{
userChrome = builtins.readFile ./userChrome.css;
userChrome = builtins.readFile ./config/userChrome.css;
}