homelab/nixos/hades/flake.nix
2025-05-20 23:43:05 +02:00

27 lines
No EOL
771 B
Nix

{
description = "A simple NixOS flake";
inputs = {
# NixOS official package source, using the nixos-24.11 branch here
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
disko = {
url = "github:nix-community/disko/latest";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, disko, ... }@inputs: {
# Please replace my-nixos with your hostname
nixosConfigurations.hades = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
# Import the previous configuration.nix we used,
# so the old configuration file still takes effect
disko.nixosModules.disko
./configuration.nix
./disko-config.nix
./hardware-configuration.nix
];
};
};
}