From 851764db0d710eb823ec14afcae5acdda2491f9f Mon Sep 17 00:00:00 2001 From: batvin321 Date: Wed, 29 Jan 2025 16:12:31 -0500 Subject: [PATCH] Add flake.nix --- flake.nix | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 flake.nix 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 + ]; + }; + }; + }; +}