2024-05-01 20:46:28 +00:00
|
|
|
{
|
|
|
|
description = "A simple system flake using some Aux defaults";
|
|
|
|
|
2024-05-02 07:42:07 +00:00
|
|
|
inputs.nixpkgs.url = "github:auxolotl/nixpkgs/nixos-unstable";
|
2024-05-01 20:46:28 +00:00
|
|
|
|
|
|
|
outputs =
|
2024-05-01 22:00:23 +00:00
|
|
|
inputs@{ nixpkgs, ... }:
|
2024-05-01 20:46:28 +00:00
|
|
|
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;
|
2024-05-01 22:00:23 +00:00
|
|
|
modules = [
|
|
|
|
./configuration.nix
|
|
|
|
|
|
|
|
{ networking.hostName = hostName; }
|
|
|
|
];
|
|
|
|
|
2024-05-01 20:46:28 +00:00
|
|
|
specialArgs = {
|
|
|
|
inherit inputs;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|