added flake.lock and readme

This commit is contained in:
2026-03-07 09:49:20 -05:00
parent dabf6c0f60
commit 1911081355
4 changed files with 290 additions and 1 deletions

34
example-useage-flake.nix Normal file
View File

@@ -0,0 +1,34 @@
{
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.
})
];
};
};
}