New structure since I kept struggling with the home-manager implemnentation
This commit is contained in:
@@ -381,6 +381,69 @@ in
|
||||
#+END_SRC
|
||||
|
||||
* First the nix-files that flake really needs and that do not fit wel in the hierarchical structure
|
||||
** =generated/hosts/traveldroid/traveldroid.nix=
|
||||
#+BEGIN_SRC nix :tangle generated/hosts/traveldroid/traveldroid.nix :noweb tangle :mkdirp yes :eval never-html
|
||||
{ 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;
|
||||
};
|
||||
};
|
||||
})
|
||||
];
|
||||
};
|
||||
}
|
||||
#+END_SRC
|
||||
|
||||
** =generated/hosts/traveldroid/hardware-configuration.nix=
|
||||
1. Boot into NixOS Live ISO or your installed system.
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
};
|
||||
})
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user