fix nix install docs
This commit is contained in:
		
							parent
							
								
									755ff32c64
								
							
						
					
					
						commit
						df17949dfd
					
				
					 1 changed files with 9 additions and 21 deletions
				
			
		
							
								
								
									
										30
									
								
								README.md
									
										
									
									
									
								
							
							
						
						
									
										30
									
								
								README.md
									
										
									
									
									
								
							| 
						 | 
					@ -24,10 +24,12 @@ Example flake setup (untested):
 | 
				
			||||||
 | 
					
 | 
				
			||||||
```nix
 | 
					```nix
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
  description = "my host";
 | 
					  inputs = {
 | 
				
			||||||
  inputs ={
 | 
					    nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
 | 
				
			||||||
    nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-23.11";
 | 
					    sanic = {
 | 
				
			||||||
    sanic.url = "git.berlin.ccc.de:cccb/sanic/latest";
 | 
					      url = "git+https://git.berlin.ccc.de/cccb/sanic?ref=main";
 | 
				
			||||||
 | 
					      inputs.nixpkgs.follows = "nixpkgs";
 | 
				
			||||||
 | 
					    };
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
  outputs = { self, nixpkgs, sanic }:
 | 
					  outputs = { self, nixpkgs, sanic }:
 | 
				
			||||||
  let
 | 
					  let
 | 
				
			||||||
| 
						 | 
					@ -35,23 +37,9 @@ Example flake setup (untested):
 | 
				
			||||||
    pkgs = import nixpkgs { inherit system; };
 | 
					    pkgs = import nixpkgs { inherit system; };
 | 
				
			||||||
  in
 | 
					  in
 | 
				
			||||||
  {
 | 
					  {
 | 
				
			||||||
    nixosConfigurations."myhostname".nixpkgs.lib.nixosSystem {
 | 
					    devShell.${system} = pkgs.mkShell {
 | 
				
			||||||
      inherit system;
 | 
					      packages = [
 | 
				
			||||||
      modules = [
 | 
					        sanic.packages.${system}.default
 | 
				
			||||||
        sanic.nixosModules.sanic
 | 
					 | 
				
			||||||
        {
 | 
					 | 
				
			||||||
          sanic = {
 | 
					 | 
				
			||||||
            mpd = {
 | 
					 | 
				
			||||||
              host = "localhost";
 | 
					 | 
				
			||||||
              port = 6600;
 | 
					 | 
				
			||||||
            };
 | 
					 | 
				
			||||||
            ui = {
 | 
					 | 
				
			||||||
              hostname = "[::]";
 | 
					 | 
				
			||||||
              port = "443";
 | 
					 | 
				
			||||||
              tls = true;
 | 
					 | 
				
			||||||
            };
 | 
					 | 
				
			||||||
          };
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
      ];
 | 
					      ];
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue