🐛 Tons of type and bug fixes (thanks language server for not working)

This commit is contained in:
Jo 2025-05-25 22:38:12 +02:00
parent d2633457a5
commit cc5ba78ddb
11 changed files with 87 additions and 25 deletions

View file

@ -5,8 +5,9 @@
config,
...
}: let
inherit (lib) mkEnableOption mkIf;
inherit (lib) mkEnableOption mkIf types;
inherit (self) namespace;
inherit (self.lib) mkOpt;
cfg = config.${namespace}.system.nix;
in {
@ -14,6 +15,7 @@ in {
enable = mkEnableOption "Nix configuration overrides.";
use-lix = mkEnableOption "Lix as an alternative to CppNix.";
use-nixld = mkEnableOption "the use of dynamically linked executables on nix based systems.";
trusted-users = mkOpt (types.listOf types.str) ["@wheel"] "List of trusted users for this NixOS system.";
};
config = mkIf cfg.enable {
@ -26,6 +28,7 @@ in {
keep-outputs = true;
max-jobs = "auto";
warn-dirty = false;
trusted-users = cfg.trusted-users;
};
# Garbage collection configuration.