me like nix
1{
2 description = "My NixOS Flake Configuration";
3
4 inputs = {
5 # Nixpkgs (stable or unstable)
6 nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05"; # Or "nixos-24.05" for stable
7
8 # Home Manager
9 home-manager = {
10 url = "github:nix-community/home-manager/release-25.05";
11 inputs.nixpkgs.follows = "nixpkgs"; # Ensures Home Manager uses the same nixpkgs
12 };
13
14 # media server things
15 nixarr.url = "github:rasmus-kirk/nixarr";
16 };
17
18 outputs = { self, nixpkgs, home-manager, nixarr, ... }@inputs: {
19 nixosConfigurations = {
20 # Replace "nixos" with your actual desired hostname if it's different
21 # This "nixos" must match the `networking.hostName` in your configuration.nix
22 nixos = nixpkgs.lib.nixosSystem {
23 system = "x86_64-linux"; # Or your system's architecture
24 specialArgs = { inherit inputs; }; # Pass inputs to your modules
25 modules = [
26 # Your main configuration file
27 ./configuration.nix
28
29 # nixarr module
30 nixarr.nixosModules.default
31
32 # Home Manager module
33 home-manager.nixosModules.home-manager
34 ];
35 };
36 };
37 };
38}