36 lines
1.4 KiB
Nix
36 lines
1.4 KiB
Nix
# This flake was initially generated by fh, the CLI for FlakeHub (version 0.1.9)
|
|
{
|
|
# A helpful description of your flake
|
|
description = "My NixOS configuration";
|
|
|
|
# Flake inputs
|
|
inputs.stylix.url = "https://flakehub.com/f/danth/stylix/0.1.282.tar.gz";
|
|
inputs.stylix.inputs.nixpkgs.follows = "nixpkgs";
|
|
inputs.stylix.inputs.home-manager.follows = "home-manager";
|
|
inputs.nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0.1.*.tar.gz";
|
|
inputs.home-manager.url = "https://flakehub.com/f/nix-community/home-manager/0.1.*.tar.gz";
|
|
inputs.home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
|
inputs.flake-schemas.url = "https://flakehub.com/f/DeterminateSystems/flake-schemas/*.tar.gz";
|
|
|
|
# Flake outputs that other flakes can use
|
|
outputs = { flake-schemas, nixpkgs, stylix, ... }:
|
|
let
|
|
# Helpers for producing system-specific outputs
|
|
supportedSystems = [ "x86_64-linux" "aarch64-linux" ];
|
|
forEachSupportedSystem = f: nixpkgs.lib.genAttrs supportedSystems (system: f {
|
|
pkgs = import nixpkgs { inherit system; };
|
|
});
|
|
in
|
|
{
|
|
# Schemas tell Nix about the structure of your flake's outputs
|
|
schemas = flake-schemas.schemas;
|
|
|
|
# Nix files formatter (run `nix fmt`)
|
|
formatter = forEachSupportedSystem ({ pkgs }: pkgs.nixpkgs-fmt);
|
|
|
|
nixosModules = rec {
|
|
default = nixosModule;
|
|
nixosModule = import ./configuration { inherit stylix; };
|
|
};
|
|
};
|
|
}
|