Regenerated

This commit is contained in:
2026-03-20 15:07:37 +00:00
parent 0e87600a7b
commit 52ab427dad
29 changed files with 1454 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,37 @@
{ 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 fragmenten te "forceren" tot attrset
forceFragment = frag:
let
evaluated =
if builtins.isFunction frag then frag {} else frag;
in
if builtins.isAttrs evaluated then evaluated else {};
# 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;
}