Media-Box-NixOS-config/flake.nix

34 lines
854 B
Nix
Raw Normal View History

2025-01-29 16:12:31 -05:00
{
description = "Media-Box-NixOS-config";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/release-24.11";
2025-01-30 13:44:42 -05:00
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
jellyfin-flake = {
inputs.nixpkgs.follows = "nixpkgs";
owner = "matt1432";
repo = "nixos-jellyfin";
type = "github";
};
2025-01-29 16:12:31 -05:00
};
2025-01-30 13:44:42 -05:00
outputs = { self, nixpkgs, nixos-hardware, jellyfin-flake, ... }:
2025-01-29 16:12:31 -05:00
let
system = "x86_64-linux";
lib = nixpkgs.lib;
in {
nixosConfigurations = {
2025-01-30 13:44:42 -05:00
media-server = lib.nixosSystem {
2025-01-29 16:12:31 -05:00
inherit system;
modules = [
# add your model from this list: https://github.com/NixOS/nixos-hardware/blob/master/flake.nix
2025-01-30 13:44:42 -05:00
#nixos-hardware.nixosModules.apple-macmini-4-1
jellyfin-flake.nixosModules.default
2025-01-29 16:12:31 -05:00
./configuration.nix
];
};
};
};
}