Working on reshuffling
This commit is contained in:
+17
-12
@@ -70,6 +70,7 @@ This section contains the Org blocks for tangling Nix code into the generated fo
|
|||||||
** =flake.nix=
|
** =flake.nix=
|
||||||
The Nix flake definition for Droidnix.
|
The Nix flake definition for Droidnix.
|
||||||
#+BEGIN_SRC nix :tangle flake.nix :noweb tangle :mkdirp yes :eval never-html
|
#+BEGIN_SRC nix :tangle flake.nix :noweb tangle :mkdirp yes :eval never-html
|
||||||
|
# flake.nix
|
||||||
{
|
{
|
||||||
description = "Droidnix: A dendritic NixOS + Home Manager configuration";
|
description = "Droidnix: A dendritic NixOS + Home Manager configuration";
|
||||||
|
|
||||||
@@ -101,24 +102,28 @@ The Nix flake definition for Droidnix.
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = inputs@{ flake-parts, nixpkgs, home-manager, stylix, ... }:
|
outputs = inputs@{ flake-parts, nixpkgs, ... }:
|
||||||
flake-parts.lib.mkFlake { inherit inputs; } {
|
flake-parts.lib.mkFlake { inherit inputs; } {
|
||||||
systems = [ "x86_64-linux" ];
|
systems = [ "x86_64-linux" ];
|
||||||
|
|
||||||
flake = {
|
flake = {
|
||||||
nixosConfigurations.traveldroid = nixpkgs.lib.nixosSystem {
|
nixosConfigurations.traveldroid =
|
||||||
system = "x86_64-linux";
|
nixpkgs.lib.nixosSystem {
|
||||||
specialArgs = { inherit inputs; };
|
system = "x86_64-linux";
|
||||||
|
specialArgs = { inherit inputs; };
|
||||||
|
|
||||||
modules = [
|
modules = [
|
||||||
# Host module imports all reusable modules internally
|
# Host module now only defines configuration
|
||||||
./generated/hosts/traveldroid/traveldroid.nix
|
./generated/hosts/traveldroid/traveldroid.nix
|
||||||
|
|
||||||
# Optional host-specific things
|
# Optional host-specific boot/hardware overrides
|
||||||
./generated/hosts/traveldroid/boot.nix
|
./generated/hosts/traveldroid/boot.nix
|
||||||
./generated/hosts/traveldroid/hardware-configuration.nix
|
./generated/hosts/traveldroid/hardware-configuration.nix
|
||||||
];
|
|
||||||
};
|
# External modules like stylix can also be added here if needed
|
||||||
|
# stylix.nixosModules.default
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
+17
-12
@@ -1,3 +1,4 @@
|
|||||||
|
# flake.nix
|
||||||
{
|
{
|
||||||
description = "Droidnix: A dendritic NixOS + Home Manager configuration";
|
description = "Droidnix: A dendritic NixOS + Home Manager configuration";
|
||||||
|
|
||||||
@@ -29,24 +30,28 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = inputs@{ flake-parts, nixpkgs, home-manager, stylix, ... }:
|
outputs = inputs@{ flake-parts, nixpkgs, ... }:
|
||||||
flake-parts.lib.mkFlake { inherit inputs; } {
|
flake-parts.lib.mkFlake { inherit inputs; } {
|
||||||
systems = [ "x86_64-linux" ];
|
systems = [ "x86_64-linux" ];
|
||||||
|
|
||||||
flake = {
|
flake = {
|
||||||
nixosConfigurations.traveldroid = nixpkgs.lib.nixosSystem {
|
nixosConfigurations.traveldroid =
|
||||||
system = "x86_64-linux";
|
nixpkgs.lib.nixosSystem {
|
||||||
specialArgs = { inherit inputs; };
|
system = "x86_64-linux";
|
||||||
|
specialArgs = { inherit inputs; };
|
||||||
|
|
||||||
modules = [
|
modules = [
|
||||||
# Host module imports all reusable modules internally
|
# Host module now only defines configuration
|
||||||
./generated/hosts/traveldroid/traveldroid.nix
|
./generated/hosts/traveldroid/traveldroid.nix
|
||||||
|
|
||||||
# Optional host-specific things
|
# Optional host-specific boot/hardware overrides
|
||||||
./generated/hosts/traveldroid/boot.nix
|
./generated/hosts/traveldroid/boot.nix
|
||||||
./generated/hosts/traveldroid/hardware-configuration.nix
|
./generated/hosts/traveldroid/hardware-configuration.nix
|
||||||
];
|
|
||||||
};
|
# External modules like stylix can also be added here if needed
|
||||||
|
# stylix.nixosModules.default
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user