added flake.lock and readme
This commit is contained in:
34
example-useage-flake.nix
Normal file
34
example-useage-flake.nix
Normal 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.
|
||||
})
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user