fix: fix the 10 billion mistakes made in refactoring

This commit is contained in:
leonhard committed 2026-11-13 13:27:33 +01:00
1 parent 5c6888a352
commit f3415cbdf7
7 files changed
+24 -14

No files matched your search

+12
View File
@@ -1,5 +1,12 @@
{
lib,
osConfig ? null,
...
}:
{
imports = [
../options.nix
./git.nix
./firefox.nix
./fish.nix
@@ -15,4 +22,9 @@
};
xdg.enable = true;
nix-leonhard = lib.mkIf (osConfig != null) (lib.mkDefault osConfig.nix-leonhard);
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
home.stateVersion = "25.11";
}
+5 -3
View File
@@ -14,17 +14,19 @@ let
inherit specialArgs;
modules = modules ++ [
../system
../options.nix
inputs.home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.leonhard = ../home/default.nix;
home-manager.users.leonhard = ../home;
}
];
};
in
{
desktop = mkNixosSystem [ ./desktop ];
server = mkNixosSystem [ ./server ];
server = mkNixosSystem [
./server
inputs.sops-nix.nixosModules.sops
];
}
+3 -1
View File
@@ -26,12 +26,13 @@
};
};
config = {
nix-leonhard.graphical = false;
# Intentional antipattern for information that is not
# critical but should still not be in the config
nix-leonhard.domain = builtins.readFile config.sops.secrets.domain.path;
nix-leonhard.publicKeys = builtins.readFile config.sops.secrets.domain.publicKeys;
nix-leonhard.publicKeys = builtins.readFile config.sops.secrets.domain.publicKeys.path;
users.users.leonhard = {
initialPassword = "leonhard";
@@ -89,4 +90,5 @@
locations."/.well-known/".root = config.security.acme.defaults.webroot;
};
};
};
}
+2 -6
View File
@@ -3,10 +3,6 @@
...
}:
{
imports = [
./secret-config.nix
];
sops.secrets.dyndns = {
format = "dotenv";
sopsFile = ./dyndns.env;
@@ -20,11 +16,11 @@
sops.secrets.domain = {
format = "json";
sopsFile = ./secret-config.json;
mode = 0444;
mode = "0444";
};
sops.secrets.publicKeys = {
format = "json";
sopsFile = ./secret-config.json;
mode = 0444;
mode = "0444";
};
}
-3
View File
@@ -23,7 +23,4 @@
};
programs.home-manager.enable = true;
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
home.stateVersion = "25.11";
}
-1
View File
@@ -14,7 +14,6 @@ homeManagerConfiguration {
modules = [
./base.nix
../home
../options.nix
{
nix-leonhard.graphical = false;
nix-leonhard.neovim.enable = true;
+2
View File
@@ -4,6 +4,8 @@
}:
{
imports = [
../options.nix
./fish.nix
./hyprland.nix
./ly.nix