52 lines
1.4 KiB
Nix
52 lines
1.4 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";
|
|
};
|
|
|
|
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";
|
|
};
|
|
|
|
zen-browser = {
|
|
url = "github:youwen5/zen-browser-flake";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
hyprland.url = "github:hyprwm/Hyprland";
|
|
};
|
|
|
|
outputs = { self, nixpkgs, home-manager, flake-parts, import-tree, stylix, hyprland, zen-browser, ... }:
|
|
let
|
|
systems = ["x86_64-linux"];
|
|
in
|
|
flake-parts.lib.flattenTree (map (system:
|
|
let
|
|
pkgs = import nixpkgs { inherit system; };
|
|
flakeRoot = self;
|
|
hmModules = home-manager.lib.hmModules;
|
|
in {
|
|
nixosConfigurations = {
|
|
traveldroid = flake-parts.lib.mkFlakeModule {
|
|
inherit pkgs;
|
|
modules = [ ./hosts/traveldroid.nix ];
|
|
extraArgs = { inherit flakeRoot; };
|
|
};
|
|
};
|
|
|
|
homeManagerConfigurations = {
|
|
traveldroid = hmModules.makeModuleSet { inherit pkgs flakeRoot; };
|
|
};
|
|
}
|
|
) systems);
|
|
}
|