Working on reshuffling
This commit is contained in:
+13
-21
@@ -103,20 +103,28 @@ The Nix flake definition for Droidnix.
|
||||
|
||||
outputs = inputs@{ flake-parts, nixpkgs, ... }:
|
||||
flake-parts.lib.mkFlake { inherit inputs; } {
|
||||
|
||||
systems = [ "x86_64-linux" ];
|
||||
|
||||
flake = {
|
||||
nixosConfigurations.traveldroid =
|
||||
nixpkgs.lib.nixosSystem {
|
||||
nixosConfigurations.traveldroid = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
|
||||
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);
|
||||
};
|
||||
};
|
||||
};
|
||||
@@ -408,23 +416,9 @@ in
|
||||
* 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, lib, ... }:
|
||||
|
||||
inputs.nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
|
||||
# Optional: pass inputs to modules
|
||||
specialArgs = { inherit inputs; };
|
||||
|
||||
modules = [
|
||||
inputs.home-manager.nixosModules.home-manager
|
||||
]
|
||||
++ builtins.attrValues (import-tree ../modules)
|
||||
++ [
|
||||
./hardware-configuration.nix
|
||||
|
||||
# Host-specific hardware and system settings
|
||||
({ config, lib, ... }: {
|
||||
{
|
||||
networking.hostName = "traveldroid";
|
||||
system.stateVersion = "25.11";
|
||||
|
||||
@@ -451,8 +445,6 @@ inputs.nixpkgs.lib.nixosSystem {
|
||||
|
||||
# Hardware overrides (host-specific)
|
||||
hardware.nvidia.enable = false;
|
||||
})
|
||||
];
|
||||
}
|
||||
#+END_SRC
|
||||
|
||||
|
||||
+11
-3
@@ -31,20 +31,28 @@
|
||||
|
||||
outputs = inputs@{ flake-parts, nixpkgs, ... }:
|
||||
flake-parts.lib.mkFlake { inherit inputs; } {
|
||||
|
||||
systems = [ "x86_64-linux" ];
|
||||
|
||||
flake = {
|
||||
nixosConfigurations.traveldroid =
|
||||
nixpkgs.lib.nixosSystem {
|
||||
nixosConfigurations.traveldroid = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
|
||||
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,20 +1,6 @@
|
||||
{ inputs, ... }:
|
||||
{ config, lib, ... }:
|
||||
|
||||
inputs.nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
|
||||
# Optional: pass inputs to modules
|
||||
specialArgs = { inherit inputs; };
|
||||
|
||||
modules = [
|
||||
inputs.home-manager.nixosModules.home-manager
|
||||
]
|
||||
++ builtins.attrValues (import-tree ../modules)
|
||||
++ [
|
||||
./hardware-configuration.nix
|
||||
|
||||
# Host-specific hardware and system settings
|
||||
({ config, lib, ... }: {
|
||||
{
|
||||
networking.hostName = "traveldroid";
|
||||
system.stateVersion = "25.11";
|
||||
|
||||
@@ -41,6 +27,4 @@ inputs.nixpkgs.lib.nixosSystem {
|
||||
|
||||
# Hardware overrides (host-specific)
|
||||
hardware.nvidia.enable = false;
|
||||
})
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user