New structure since I kept struggling with the home-manager implemnentation

This commit is contained in:
2026-03-18 16:02:21 +00:00
parent c1253732fb
commit 5681caa6a8
2 changed files with 123 additions and 0 deletions
@@ -0,0 +1,60 @@
{ inputs, config, ... }:
{
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
] ++
(builtins.attrValues config.flake.nixosModules) ++
[
./hardware-configuration.nix
({ ... }: {
networking.hostName = "traveldroid";
system.stateVersion = "25.11";
boot = {
loader = {
grub = {
enable = true;
efiSupport = true;
device = "nodev";
useOSProber = true;
};
efi.canTouchEfiVariables = true;
};
# initrd.systemd.tpm2.enable = false;
kernelParams = [
"systemd.mask=dev-tpm0.device"
"systemd.mask=dev-tpmrm0.device"
];
};
# systemd.tpm2.enable = false;
# Enable various user-defined modules
mySystem = {
# Turn on the core system
system.core.enable = true;
# Hardware-specific modules
hardware.nvidia.enable = false;
# Define Environment
desktop = {
hyprland.enable = true;
noctalia.enable = true;
stylix.enable = true;
};
};
})
];
};
}