fix nix install docs

This commit is contained in:
XenGi 2024-01-29 22:22:40 +01:00
parent 755ff32c64
commit df17949dfd
Signed by: xengi
SSH key fingerprint: SHA256:FGp51kRvGOcWnTHiOI39ImwVO4A3fpvR30nPX3LpV7g

View file

@ -24,10 +24,12 @@ Example flake setup (untested):
```nix
{
description = "my host";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-23.11";
sanic.url = "git.berlin.ccc.de:cccb/sanic/latest";
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
sanic = {
url = "git+https://git.berlin.ccc.de/cccb/sanic?ref=main";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, sanic }:
let
@ -35,23 +37,9 @@ Example flake setup (untested):
pkgs = import nixpkgs { inherit system; };
in
{
nixosConfigurations."myhostname".nixpkgs.lib.nixosSystem {
inherit system;
modules = [
sanic.nixosModules.sanic
{
sanic = {
mpd = {
host = "localhost";
port = 6600;
};
ui = {
hostname = "[::]";
port = "443";
tls = true;
};
};
}
devShell.${system} = pkgs.mkShell {
packages = [
sanic.packages.${system}.default
];
};
};