Files
PinePods-nix/example-useage-flake.nix
2026-03-07 09:49:20 -05:00

35 lines
1014 B
Nix

{
description = "Example NixOS configuration using the PinePods flake";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11";
pinepods.url = "git+https://git.briannelson.dev/brian/pinepods-nix";
# If you want to ensure pinepods uses the same nixpkgs as your system
pinepods.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = { self, nixpkgs, pinepods, ... }: {
nixosConfigurations.mymachine = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
# Import the PinePods NixOS module
pinepods.nixosModules.pinepods
({ config, pkgs, ... }: {
# Enable PinePods and point it at your server
services.pinepods = {
enable = true;
server = "https://pinepods.example.com";
};
# The rest of your normal NixOS configuration goes here...
# networking.hostName = "mymachine";
# users.users.youruser = { ... };
# etc.
})
];
};
};
}