1
0
Fork 0
forked from auxolotl/templates
auxolotl-templates/system/flake.nix

29 lines
657 B
Nix
Raw Normal View History

{
description = "A simple system flake using some Aux defaults";
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-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 {
modules = [
./configuration.nix
{
networking.hostName = hostName;
nixpkgs.hostPlatform = system;
}
];
specialArgs = {
inherit inputs;
};
};
};
}