nix-starter-configs/minimal-nixosonly/flake.nix
2023-04-08 14:27:10 -03:00

25 lines
697 B
Nix

{
description = "Your new nix config";
inputs = {
# Nixpkgs
nixpkgs.url = "github:nixos/nixpkgs/nixos-22.11";
# TODO: Add any other flake you might need
# hardware.url = "github:nixos/nixos-hardware";
};
outputs = { nixpkgs, home-manager, ... }@inputs: {
# NixOS configuration entrypoint
# Available through 'nixos-rebuild --flake .#your-hostname'
nixosConfigurations = {
# FIXME replace with your hostname
your-hostname = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs; }; # Pass flake inputs to our config
# > Our main nixos configuration file <
modules = [ ./nixos/configuration.nix ];
};
};
};
}