2024-04-06 11:48:42 +02:00
|
|
|
{
|
|
|
|
description = "An example of creating your own flake that extends this nix-config";
|
|
|
|
|
|
|
|
inputs = {
|
|
|
|
nix-config.url = "github:donovanglover/nix-config";
|
|
|
|
};
|
|
|
|
|
2024-08-03 20:31:14 +02:00
|
|
|
outputs =
|
|
|
|
{ nix-config, ... }@attrs:
|
2024-04-06 11:48:42 +02:00
|
|
|
let
|
|
|
|
inherit (nix-config.inputs) nixpkgs;
|
|
|
|
inherit (nixpkgs.lib) nixosSystem optional;
|
|
|
|
inherit (builtins) pathExists;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
nixosConfigurations = {
|
|
|
|
hyprland = nixosSystem {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
specialArgs = attrs;
|
|
|
|
modules = [
|
|
|
|
./configuration.nix
|
|
|
|
] ++ optional (pathExists ./hardware-configuration.nix) ./hardware-configuration.nix;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|