nixos-config/flake.nix
2024-03-10 19:36:15 -07:00

18 lines
719 B
Nix

# /etc/nixos/flake.nix
{
inputs = {
# NOTE: Replace "nixos-23.11" with that which is in system.stateVersion of
# configuration.nix. You can also use latter versions if you wish to
# upgrade.
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
nixos-needsreboot.url = "https://flakehub.com/f/thefossguy/nixos-needsreboot/*.tar.gz";
};
outputs = inputs@{ self, nixpkgs, nixos-needsreboot, ... }: {
# NOTE: 'nixos' is the default hostname set by the installer
nixosConfigurations.valhalla = nixpkgs.lib.nixosSystem {
# NOTE: Change this to aarch64-linux if you are on ARM
system = "x86_64-linux";
modules = [ ./hosts/desktop/valhalla/configuration.nix ];
};
};
}