74 lines
1.7 KiB
Nix
74 lines
1.7 KiB
Nix
{
|
|
description = "Droidnix: A dendritic NixOS + Home Manager configuration";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
hyprland.url = "github:hyprwm/Hyprland";
|
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
|
import-tree.url = "github:vic/import-tree";
|
|
|
|
stylix = {
|
|
url = "github:nix-community/stylix";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
emacs-overlay = {
|
|
url = "github:nix-community/emacs-overlay";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
zen-browser = {
|
|
url = "github:youwen5/zen-browser-flake";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
|
|
outputs = inputs@{
|
|
flake-parts,
|
|
self,
|
|
nixpkgs,
|
|
home-manager,
|
|
emacs-overlay,
|
|
zen-browser,
|
|
hyprland,
|
|
stylix,
|
|
import-tree,
|
|
...
|
|
}:
|
|
flake-parts.lib.mkFlake { inherit inputs; } {
|
|
|
|
# Declare supported systems for flake-parts
|
|
systems = [ "x86_64-linux" ];
|
|
|
|
# Import dendritic/flake modules here
|
|
imports = [
|
|
(import-tree ./generated/modules) # Only mySystem.* stuff
|
|
];
|
|
|
|
# Define NixOS configurations for hosts
|
|
flake = {
|
|
nixosConfigurations.traveldroid =
|
|
nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
|
|
modules = [
|
|
# Host-specific configuration (NixOS context)
|
|
./generated/hosts/traveldroid/traveldroid.nix
|
|
|
|
# Boot configuration (NixOS context)
|
|
./generated/hosts/traveldroid/boot.nix
|
|
|
|
# Stylix NixOS module
|
|
stylix.nixosModules.default
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|