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