From df17949dfd3c6ef96019eb0f0d471f756a71d42d Mon Sep 17 00:00:00 2001 From: "Ricardo (XenGi) Band" Date: Mon, 29 Jan 2024 22:22:40 +0100 Subject: [PATCH] fix nix install docs --- README.md | 30 +++++++++--------------------- 1 file changed, 9 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index 4df65b6..31a5b0d 100644 --- a/README.md +++ b/README.md @@ -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"; + inputs = { + 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 ]; }; };