Working on reshuffling

This commit is contained in:
2026-03-19 10:21:31 +00:00
parent f2c30e2a8c
commit 078bc06375
4 changed files with 214 additions and 216 deletions
+57 -23
View File
@@ -1,28 +1,62 @@
# ./generated/hosts/traveldroid/traveldroid.nix
{ config, pkgs, lib, ... }:
# ./generated/hosts/traveldroid/traveldroid.nix
{ inputs, ... }:
let
coreEnabled = config.mySystem.system.core.enable or false;
in lib.mkIf coreEnabled {
boot = {
initrd = {
verbose = false;
kernelModules = [ ];
# Import all reusable modules under ./generated/modules
modulesDir = ../../modules; # adjust path relative to this host file
importedModules = builtins.attrValues (import modulesDir { inherit inputs; });
in
{
# Define the NixOS configuration for this host
flake.nixosConfigurations.traveldroid =
inputs.nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = { inherit inputs; };
modules = [
inputs.home-manager.nixosModules.home-manager
inputs.stylix.nixosModules.stylix
] ++ importedModules ++ [
./hardware-configuration.nix
# Host-specific settings
({ config, ... }: {
networking.hostName = "traveldroid";
system.stateVersion = "25.11";
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"
];
# Optional: TPM/other features
# systemd.tpm2.enable = false;
# User-defined modules / system features
mySystem = {
system.core.enable = true;
# Hardware toggles
hardware.nvidia.enable = false;
# Desktop environment modules
desktop = {
hyprland.enable = true;
noctalia.enable = true;
stylix.enable = true;
};
};
})
];
};
extraModulePackages = [ ];
kernelPackages = pkgs.linuxPackages_latest;
kernelParams = [ "silent" ];
consoleLogLevel = 0;
plymouth.enable = true;
supportedFilesystems = [ "ntfs" ];
loader = {
systemd-boot.enable = true;
systemd-boot.configurationLimit = 10;
efi.canTouchEfiVariables = true;
timeout = 5;
};
};
}