diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..e25a482 --- /dev/null +++ b/flake.nix @@ -0,0 +1,26 @@ +{ + description = "Media-Box-NixOS-config"; + + inputs = { + nixpkgs.url = "github:nixos/nixpkgs/release-24.11"; + nixos-hardware.url = "github:NixOS/nixos-hardware/master"; + }; + + outputs = { self, nixpkgs, nixos-hardware, ... }: + let + system = "x86_64-linux"; + lib = nixpkgs.lib; + in { + + nixosConfigurations = { + macmini15 = lib.nixosSystem { + inherit system; + modules = [ + # add your model from this list: https://github.com/NixOS/nixos-hardware/blob/master/flake.nix + nixos-hardware.nixosModules.apple-macmini-4-1 + ./configuration.nix + ]; + }; + }; + }; +}