templates/system/flake.nix
Abhiram aaf3a6ba81
Merge pull request #10 from aemogie/feat/system-nixpkgs-revision
feat(system): change nixpkgs rev to nixos-unstable
2024-05-02 21:07:48 +05:30

27 lines
617 B
Nix

{
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;
};
};
};
}