Fix: use nixpkgs.lib.nixosSystem; add minimal config
This commit is contained in:
19
flake.nix
19
flake.nix
@ -1,18 +1,23 @@
|
||||
{
|
||||
description = "NAS on NixOS – root on ZFS";
|
||||
|
||||
inputs.nixpkgs.url = "github:NixOS/nixpkgs/release-25.05";
|
||||
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 }:
|
||||
outputs = { self, nixpkgs, nixos-hardware, ... }@inputs:
|
||||
let
|
||||
system = "x86_64-linux";
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
in {
|
||||
nixosConfigurations.host = pkgs.lib.nixosSystem {
|
||||
inherit system;
|
||||
nixosConfigurations.host = nixpkgs.lib.nixosSystem {
|
||||
inherit system; # ← Pflichtfeld
|
||||
modules = [
|
||||
./hardware
|
||||
./configuration
|
||||
./hardware # dein generiertes hardware-configuration.nix
|
||||
./configuration.nix # deine eigentliche Config
|
||||
nixos-hardware.nixosModules.common-pc-ssd
|
||||
];
|
||||
};
|
||||
};
|
||||
|
Reference in New Issue
Block a user