nixos-nas/flake.nix
2025-06-10 21:41:32 +02:00

26 lines
823 B
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
description = "NAS on NixOS root on ZFS";
inputs = {
# stabiler Release-Zweig
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05";
# optional: Hardware-Tuning (z. B. SSD-Defaults)
nixos-hardware.url = "github:NixOS/nixos-hardware";
};
outputs = { self, nixpkgs, nixos-hardware, ... }@inputs:
let
system = "x86_64-linux";
in {
nixosConfigurations.host = nixpkgs.lib.nixosSystem {
inherit system; # ← Pflichtfeld
modules = [
./hardware/hardware-configuration.nix # generiertes hardware-configuration.nix
./configuration.nix # deine eigentliche Config
./disco.nix # disco partitionierung
nixos-hardware.nixosModules.common-pc-ssd
];
};
};
}