nix-config/example/flake.nix
Donovan Glover 8abd8444f0
chore: revert function spacing
It turns out that no extra line is used when the function definition
isn't at the beginning of the file.
2025-01-27 13:29:25 -05:00

28 lines
667 B
Nix

{
description = "An example of creating your own flake that extends this nix-config";
inputs = {
nix-config.url = "github:donovanglover/nix-config";
};
outputs =
{ nix-config, ... }@attrs:
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;
};
};
};
}