Regenerated

This commit is contained in:
2026-03-20 15:43:34 +00:00
parent 134055a581
commit ca93efd90d
30 changed files with 31 additions and 1504 deletions
@@ -1,16 +0,0 @@
{ inputs, config, lib, pkgs, ... }:
{
boot.loader.grub = {
enable = true;
efiSupport = true;
device = "nodev";
useOSProber = true;
};
#boot.efi.canTouchEfiVariables = true;
boot.kernelParams = [
"systemd.mask=dev-tpm0.device"
"systemd.mask=dev-tpmrm0.device"
];
}
@@ -1,47 +0,0 @@
{
hostname,
pkgs,
lib,
modulesPath,
user,
config,
...
}:
{
imports = [
# (modulesPath + "/installer/scan/not-detected.nix")
#../../hardware/hardware.nix
];
boot.initrd.availableKernelModules = [
"xhci_pci"
"nvme"
"usb_storage"
"sd_mod"
"rtsx_usb_sdmmc"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" = {
device = "/dev/disk/by-uuid/69433a14-fbaf-401b-af85-cd1bbf02b4e2";
fsType = "ext4";
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/811D-0676";
fsType = "vfat";
options = [
"fmask=0077"
"dmask=0077"
];
};
swapDevices = [
{ device = "/dev/disk/by-uuid/b6c557c2-7682-460b-a5e7-8f6f2f429a3a"; }
];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}
@@ -1,64 +0,0 @@
{ lib, config, inputs, ... }:
let
username = config.defaultUser or "henrov";
modulesPath = ./generated/parked;
importedModules = inputs.import-tree modulesPath;
moduleSwitches = import ./assets/system/modules.conf;
enabledModules =
lib.filterAttrs (name: _: moduleSwitches.${name} or false)
importedModules.imports;
moduleList = builtins.attrValues enabledModules;
# Functie om fragment veilig te evalueren en debug info te verzamelen
debugFragment = module:
let
frag =
if builtins.hasAttr "homeManagerExtraUserFragment" module
then module.homeManagerExtraUserFragment
else {};
evaluated =
if builtins.isFunction frag then frag {} else frag;
isAttrs = builtins.isAttrs evaluated;
isList = builtins.isList evaluated;
isThunk = builtins.isFunction frag;
in
{
fragment = if isAttrs then evaluated else {};
debug = {
name = if builtins.hasAttr "name" module then module.name else "unknown";
isAttrs = isAttrs;
isList = isList;
isThunk = isThunk;
};
};
# Alle fragments met debug info
fragmentsWithDebug = map debugFragment moduleList;
# Lijst van problematische modules
problematicModules = builtins.filter
(x: !(x.debug.isAttrs))
fragmentsWithDebug;
# Merge alleen veilige fragments
safeFragments = map (x: x.fragment) fragmentsWithDebug;
mergedForUser = lib.foldl' lib.mkMerge {} safeFragments;
in
{
networking.hostName = "traveldroid";
system.stateVersion = "26.05";
# Top-level key is username → value is attrset
home-manager.users = {
"${username}" = mergedForUser;
};
# Extra debug output, alleen zichtbaar als je `nix eval` gebruikt
debug.problematicModules = problematicModules;
}