templates/system/flake.nix

27 lines
617 B
Nix
Raw Normal View History

{
description = "A simple system flake using some Aux defaults";
inputs.nixpkgs.url = "github:auxolotl/nixpkgs/nixos-unstable";
outputs =
inputs@{ nixpkgs, ... }:
let
system = "x86_64-linux";
hostName = builtins.abort "You need to fill in your hostName"; # Set this variable equal to your hostName
in
{
nixosConfigurations.${hostName} = nixpkgs.lib.nixosSystem {
inherit system;
modules = [
./configuration.nix
{ networking.hostName = hostName; }
];
specialArgs = {
inherit inputs;
};
};
};
}