Regenerated

This commit is contained in:
2026-03-20 15:11:51 +00:00
parent 6c11119d4a
commit 71e13cd2c1
29 changed files with 1456 additions and 0 deletions
@@ -0,0 +1,16 @@
{ 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"
];
}
@@ -0,0 +1,47 @@
{
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;
}
@@ -0,0 +1,39 @@
{ lib, config, inputs, ... }:
let
username = config.defaultUser or "henrov";
modulesPath = ./generated/parked;
importedModules = inputs.import-tree modulesPath;
moduleSwitches = import ./assets/system/modules.conf;
# Alleen ingeschakelde modules (blijft attrset)
enabledModules =
lib.filterAttrs (name: _: moduleSwitches.${name} or false)
importedModules.imports;
moduleList = builtins.attrValues enabledModules;
# Functie: forceer fragment naar attrset
forceFragment = frag:
let
evaluated = if builtins.isFunction frag then frag {} else frag;
asAttrs = if builtins.isAttrs evaluated then evaluated else {};
in
# Filter eventueel verborgen thunks/lists
lib.filterAttrs (name: _: builtins.isAttrs evaluated.${name} || builtins.isBool evaluated.${name} || builtins.isString evaluated.${name}) asAttrs;
# Haal en forceer alle home-manager fragments
safeFragments =
map (m: forceFragment (if builtins.hasAttr "homeManagerExtraUserFragment" m
then m.homeManagerExtraUserFragment else {}))
moduleList;
homeManagerExtraUserFragments = lib.foldl' lib.mkMerge {} safeFragments;
in {
networking.hostName = "traveldroid";
system.stateVersion = "26.05";
home-manager.users = homeManagerExtraUserFragments;
}