Working on reshuffling
This commit is contained in:
+50
-58
@@ -102,25 +102,33 @@ The Nix flake definition for Droidnix.
|
|||||||
};
|
};
|
||||||
|
|
||||||
outputs = inputs@{ flake-parts, nixpkgs, ... }:
|
outputs = inputs@{ flake-parts, nixpkgs, ... }:
|
||||||
flake-parts.lib.mkFlake { inherit inputs; } {
|
flake-parts.lib.mkFlake { inherit inputs; } {
|
||||||
systems = [ "x86_64-linux" ];
|
|
||||||
|
|
||||||
flake = {
|
systems = [ "x86_64-linux" ];
|
||||||
nixosConfigurations.traveldroid =
|
|
||||||
nixpkgs.lib.nixosSystem {
|
|
||||||
system = "x86_64-linux";
|
|
||||||
specialArgs = { inherit inputs; };
|
|
||||||
|
|
||||||
modules = [
|
flake = {
|
||||||
./generated/hosts/traveldroid/traveldroid.nix
|
nixosConfigurations.traveldroid = nixpkgs.lib.nixosSystem {
|
||||||
./generated/hosts/traveldroid/boot.nix
|
system = "x86_64-linux";
|
||||||
./generated/hosts/traveldroid/hardware-configuration.nix
|
|
||||||
inputs.stylix.nixosModules.default
|
specialArgs = { inherit inputs; };
|
||||||
];
|
|
||||||
};
|
modules = [
|
||||||
};
|
# Host-specific configuration
|
||||||
};
|
./generated/hosts/traveldroid/traveldroid.nix
|
||||||
}
|
|
||||||
|
# Optional boot/hardware
|
||||||
|
./generated/hosts/traveldroid/boot.nix
|
||||||
|
./generated/hosts/traveldroid/hardware-configuration.nix
|
||||||
|
|
||||||
|
# External modules
|
||||||
|
inputs.stylix.nixosModules.default
|
||||||
|
inputs.home-manager.nixosModules.home-manager
|
||||||
|
]
|
||||||
|
++ builtins.attrValues (inputs.import-tree ./generated/modules);
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
* Let's define the core of the system
|
* Let's define the core of the system
|
||||||
@@ -408,51 +416,35 @@ in
|
|||||||
* First the nix-files that flake really needs and that do not fit wel in the hierarchical structure
|
* First the nix-files that flake really needs and that do not fit wel in the hierarchical structure
|
||||||
** =generated/hosts/traveldroid/traveldroid.nix=
|
** =generated/hosts/traveldroid/traveldroid.nix=
|
||||||
#+BEGIN_SRC nix :tangle generated/hosts/traveldroid/traveldroid.nix :noweb tangle :mkdirp yes :eval never-html
|
#+BEGIN_SRC nix :tangle generated/hosts/traveldroid/traveldroid.nix :noweb tangle :mkdirp yes :eval never-html
|
||||||
{ inputs, ... }:
|
{ config, lib, ... }:
|
||||||
|
|
||||||
inputs.nixpkgs.lib.nixosSystem {
|
{
|
||||||
system = "x86_64-linux";
|
networking.hostName = "traveldroid";
|
||||||
|
system.stateVersion = "25.11";
|
||||||
|
|
||||||
# Optional: pass inputs to modules
|
boot.loader.grub = {
|
||||||
specialArgs = { inherit inputs; };
|
enable = true;
|
||||||
|
efiSupport = true;
|
||||||
|
device = "nodev";
|
||||||
|
useOSProber = true;
|
||||||
|
};
|
||||||
|
boot.efi.canTouchEfiVariables = true;
|
||||||
|
|
||||||
modules = [
|
boot.kernelParams = [
|
||||||
inputs.home-manager.nixosModules.home-manager
|
"systemd.mask=dev-tpm0.device"
|
||||||
]
|
"systemd.mask=dev-tpmrm0.device"
|
||||||
++ builtins.attrValues (import-tree ../modules)
|
|
||||||
++ [
|
|
||||||
./hardware-configuration.nix
|
|
||||||
|
|
||||||
# Host-specific hardware and system settings
|
|
||||||
({ config, lib, ... }: {
|
|
||||||
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"
|
|
||||||
];
|
|
||||||
|
|
||||||
# User-defined features
|
|
||||||
mySystem.system.core.enable = true;
|
|
||||||
|
|
||||||
# Desktop environment features
|
|
||||||
desktop.hyprland.enable = true;
|
|
||||||
desktop.noctalia.enable = true;
|
|
||||||
desktop.stylix.enable = true;
|
|
||||||
|
|
||||||
# Hardware overrides (host-specific)
|
|
||||||
hardware.nvidia.enable = false;
|
|
||||||
})
|
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# User-defined features
|
||||||
|
mySystem.system.core.enable = true;
|
||||||
|
|
||||||
|
# Desktop environment features
|
||||||
|
desktop.hyprland.enable = true;
|
||||||
|
desktop.noctalia.enable = true;
|
||||||
|
desktop.stylix.enable = true;
|
||||||
|
|
||||||
|
# Hardware overrides (host-specific)
|
||||||
|
hardware.nvidia.enable = false;
|
||||||
}
|
}
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
|
|||||||
+25
-17
@@ -30,22 +30,30 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
outputs = inputs@{ flake-parts, nixpkgs, ... }:
|
outputs = inputs@{ flake-parts, nixpkgs, ... }:
|
||||||
flake-parts.lib.mkFlake { inherit inputs; } {
|
flake-parts.lib.mkFlake { inherit inputs; } {
|
||||||
systems = [ "x86_64-linux" ];
|
|
||||||
|
|
||||||
flake = {
|
systems = [ "x86_64-linux" ];
|
||||||
nixosConfigurations.traveldroid =
|
|
||||||
nixpkgs.lib.nixosSystem {
|
|
||||||
system = "x86_64-linux";
|
|
||||||
specialArgs = { inherit inputs; };
|
|
||||||
|
|
||||||
modules = [
|
flake = {
|
||||||
./generated/hosts/traveldroid/traveldroid.nix
|
nixosConfigurations.traveldroid = nixpkgs.lib.nixosSystem {
|
||||||
./generated/hosts/traveldroid/boot.nix
|
system = "x86_64-linux";
|
||||||
./generated/hosts/traveldroid/hardware-configuration.nix
|
|
||||||
inputs.stylix.nixosModules.default
|
specialArgs = { inherit inputs; };
|
||||||
];
|
|
||||||
};
|
modules = [
|
||||||
};
|
# Host-specific configuration
|
||||||
};
|
./generated/hosts/traveldroid/traveldroid.nix
|
||||||
}
|
|
||||||
|
# Optional boot/hardware
|
||||||
|
./generated/hosts/traveldroid/boot.nix
|
||||||
|
./generated/hosts/traveldroid/hardware-configuration.nix
|
||||||
|
|
||||||
|
# External modules
|
||||||
|
inputs.stylix.nixosModules.default
|
||||||
|
inputs.home-manager.nixosModules.home-manager
|
||||||
|
]
|
||||||
|
++ builtins.attrValues (inputs.import-tree ./generated/modules);
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|||||||
@@ -1,46 +1,30 @@
|
|||||||
{ inputs, ... }:
|
{ config, lib, ... }:
|
||||||
|
|
||||||
inputs.nixpkgs.lib.nixosSystem {
|
{
|
||||||
system = "x86_64-linux";
|
networking.hostName = "traveldroid";
|
||||||
|
system.stateVersion = "25.11";
|
||||||
|
|
||||||
# Optional: pass inputs to modules
|
boot.loader.grub = {
|
||||||
specialArgs = { inherit inputs; };
|
enable = true;
|
||||||
|
efiSupport = true;
|
||||||
|
device = "nodev";
|
||||||
|
useOSProber = true;
|
||||||
|
};
|
||||||
|
boot.efi.canTouchEfiVariables = true;
|
||||||
|
|
||||||
modules = [
|
boot.kernelParams = [
|
||||||
inputs.home-manager.nixosModules.home-manager
|
"systemd.mask=dev-tpm0.device"
|
||||||
]
|
"systemd.mask=dev-tpmrm0.device"
|
||||||
++ builtins.attrValues (import-tree ../modules)
|
|
||||||
++ [
|
|
||||||
./hardware-configuration.nix
|
|
||||||
|
|
||||||
# Host-specific hardware and system settings
|
|
||||||
({ config, lib, ... }: {
|
|
||||||
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"
|
|
||||||
];
|
|
||||||
|
|
||||||
# User-defined features
|
|
||||||
mySystem.system.core.enable = true;
|
|
||||||
|
|
||||||
# Desktop environment features
|
|
||||||
desktop.hyprland.enable = true;
|
|
||||||
desktop.noctalia.enable = true;
|
|
||||||
desktop.stylix.enable = true;
|
|
||||||
|
|
||||||
# Hardware overrides (host-specific)
|
|
||||||
hardware.nvidia.enable = false;
|
|
||||||
})
|
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# User-defined features
|
||||||
|
mySystem.system.core.enable = true;
|
||||||
|
|
||||||
|
# Desktop environment features
|
||||||
|
desktop.hyprland.enable = true;
|
||||||
|
desktop.noctalia.enable = true;
|
||||||
|
desktop.stylix.enable = true;
|
||||||
|
|
||||||
|
# Hardware overrides (host-specific)
|
||||||
|
hardware.nvidia.enable = false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user