nixos-config/flake.nix

25 lines
1,013 B
Nix
Raw Normal View History

2024-03-09 17:41:02 -08:00
# /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";
2024-03-09 17:41:02 -08:00
};
outputs = inputs@{ self, nixpkgs, ... }: {
2024-03-09 17:41:02 -08:00
# NOTE: 'nixos' is the default hostname set by the installer
2024-03-09 17:48:43 -08:00
nixosConfigurations.valhalla = nixpkgs.lib.nixosSystem {
2024-03-09 17:41:02 -08:00
# NOTE: Change this to aarch64-linux if you are on ARM
system = "x86_64-linux";
2024-03-10 00:44:38 -08:00
modules = [ ./hosts/desktop/valhalla/configuration.nix ];
2024-03-09 17:41:02 -08:00
};
# environment.systemPackages = [nixos-needsreboot.packages.${nixpkgs.system}.default];
2024-03-19 08:04:49 -07:00
nixosConfigurations.katmai = nixpkgs.lib.nixosSystem {
# NOTE: Change this to aarch64-linux if you are on ARM
system = "x86_64-linux";
modules = [ ./hosts/desktop/katmai/configuration.nix ];
};
2024-03-09 17:41:02 -08:00
};
}