nixos-nas/flake.nix
root@nixos-nas a55b594483 zfs-tuning
2025-06-11 18:37:36 +00:00

31 lines
1.1 KiB
Nix
Raw Permalink 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";
disko.url = "github:nix-community/disko";
disko.inputs.nixpkgs.follows = "nixpkgs"; # hält beide auf demselben commit
};
outputs = { self, nixpkgs, disko, nixos-hardware, ... }@inputs:
let
system = "x86_64-linux";
in {
nixosConfigurations.nix-nas = nixpkgs.lib.nixosSystem {
inherit system; # ← Pflichtfeld
specialArgs.disks = [ "/dev/nvme0n1" ];
modules = [
./disko.nix # disko partitionierung
./hardware/hardware-configuration.nix # generiertes hardware-configuration.nix
./configuration.nix # deine eigentliche Config
./modules/zfs.nix
disko.nixosModules.disko
nixos-hardware.nixosModules.common-pc-ssd
];
};
};
}