Working on reshuffling

This commit is contained in:
2026-03-19 10:24:34 +00:00
parent 180ff0efd2
commit aad57de8d1
2 changed files with 70 additions and 100 deletions
+13 -28
View File
@@ -364,29 +364,26 @@ in
** =generated/hosts/traveldroid/boot.nix=
#+BEGIN_SRC nix :tangle generated/hosts/traveldroid/boot.nix :noweb tangle :mkdirp yes :eval never-html
# ./generated/hosts/traveldroid/traveldroid.nix
{ inputs, ... }:
let
# Import all reusable modules under ./generated/modules
modulesDir = ../../modules; # adjust path relative to this host file
importedModules = builtins.attrValues (import modulesDir { inherit inputs; });
# Import all reusable modules from ./generated/modules
modulesFromTree = builtins.attrValues (inputs.import-tree ./generated/modules);
in
{
# Define the NixOS configuration for this host
flake.nixosConfigurations.traveldroid =
inputs.nixpkgs.lib.nixosSystem {
inputs.nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = { inherit inputs; };
modules = [
inputs.home-manager.nixosModules.home-manager
inputs.stylix.nixosModules.stylix
] ++ importedModules ++ [
]
++ modulesFromTree
++ [
./hardware-configuration.nix
# Host-specific settings
({ config, ... }: {
# Host-specific overrides
({ config, lib, ... }: {
networking.hostName = "traveldroid";
system.stateVersion = "25.11";
@@ -396,7 +393,6 @@ in
device = "nodev";
useOSProber = true;
};
boot.efi.canTouchEfiVariables = true;
boot.kernelParams = [
@@ -404,26 +400,15 @@ in
"systemd.mask=dev-tpmrm0.device"
];
# Optional: TPM/other features
# systemd.tpm2.enable = false;
mySystem.system.core.enable = true;
# User-defined modules / system features
mySystem = {
system.core.enable = true;
desktop.hyprland.enable = true;
desktop.noctalia.enable = true;
desktop.stylix.enable = true;
# Hardware toggles
hardware.nvidia.enable = false;
# Desktop environment modules
desktop = {
hyprland.enable = true;
noctalia.enable = true;
stylix.enable = true;
};
};
})
];
};
}
#+END_SRC
+13 -28
View File
@@ -1,26 +1,23 @@
# ./generated/hosts/traveldroid/traveldroid.nix
{ inputs, ... }:
let
# Import all reusable modules under ./generated/modules
modulesDir = ../../modules; # adjust path relative to this host file
importedModules = builtins.attrValues (import modulesDir { inherit inputs; });
# Import all reusable modules from ./generated/modules
modulesFromTree = builtins.attrValues (inputs.import-tree ./generated/modules);
in
{
# Define the NixOS configuration for this host
flake.nixosConfigurations.traveldroid =
inputs.nixpkgs.lib.nixosSystem {
inputs.nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = { inherit inputs; };
modules = [
inputs.home-manager.nixosModules.home-manager
inputs.stylix.nixosModules.stylix
] ++ importedModules ++ [
]
++ modulesFromTree
++ [
./hardware-configuration.nix
# Host-specific settings
({ config, ... }: {
# Host-specific overrides
({ config, lib, ... }: {
networking.hostName = "traveldroid";
system.stateVersion = "25.11";
@@ -30,7 +27,6 @@ in
device = "nodev";
useOSProber = true;
};
boot.efi.canTouchEfiVariables = true;
boot.kernelParams = [
@@ -38,24 +34,13 @@ in
"systemd.mask=dev-tpmrm0.device"
];
# Optional: TPM/other features
# systemd.tpm2.enable = false;
mySystem.system.core.enable = true;
# User-defined modules / system features
mySystem = {
system.core.enable = true;
desktop.hyprland.enable = true;
desktop.noctalia.enable = true;
desktop.stylix.enable = true;
# Hardware toggles
hardware.nvidia.enable = false;
# Desktop environment modules
desktop = {
hyprland.enable = true;
noctalia.enable = true;
stylix.enable = true;
};
};
})
];
};
}