many things:
* flake.lock update, with code changes needed. * miniserve.rs static directory listing. * change from typst-ls to tinymist for typst lsp * deletion of hugo template. * change from self-built duckdns module to nixpkgs one.
This commit is contained in:
		
							parent
							
								
									73451d607b
								
							
						
					
					
						commit
						e8a5bb3bc9
					
				
					 29 changed files with 103 additions and 267 deletions
				
			
		| 
						 | 
				
			
			@ -7,7 +7,7 @@
 | 
			
		|||
  programs.kitty = {
 | 
			
		||||
    enable = true;
 | 
			
		||||
    font = {
 | 
			
		||||
      package = pkgs.fira-code-nerdfont;
 | 
			
		||||
      package = pkgs.nerd-fonts.fira-code;
 | 
			
		||||
      name = "FiraCode Nerd Font";
 | 
			
		||||
    };
 | 
			
		||||
    themeFile = "gruvbox-dark";
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -4,7 +4,12 @@
 | 
			
		|||
  pkgs,
 | 
			
		||||
  ...
 | 
			
		||||
}: {
 | 
			
		||||
  programs.zellij.enable = true;
 | 
			
		||||
  programs.zellij = {
 | 
			
		||||
    enable = true;
 | 
			
		||||
    enableBashIntegration = false;
 | 
			
		||||
    enableZshIntegration = false;
 | 
			
		||||
    enableFishIntegration = false;
 | 
			
		||||
  };
 | 
			
		||||
  home.file = {
 | 
			
		||||
    ".config/zellij/config.kdl".source = ./config.kdl;
 | 
			
		||||
  };
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -5,11 +5,6 @@
 | 
			
		|||
  lib,
 | 
			
		||||
  ...
 | 
			
		||||
}: {
 | 
			
		||||
  virtualisation.docker = {
 | 
			
		||||
    enable = true;
 | 
			
		||||
    daemon.settings = {
 | 
			
		||||
      userland-proxy = false;
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
  virtualisation.docker.enable = true;
 | 
			
		||||
  users.users.${config.host.user}.extraGroups = ["docker"];
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -12,12 +12,10 @@
 | 
			
		|||
      volumes = ["/storage/factorio:/factorio"];
 | 
			
		||||
      hostname = "factorio";
 | 
			
		||||
      ports = [
 | 
			
		||||
        "34197:34197"
 | 
			
		||||
        "27015:27015"
 | 
			
		||||
        "34197:34197/udp"
 | 
			
		||||
        "27015:27015/tcp"
 | 
			
		||||
      ];
 | 
			
		||||
      environment = {
 | 
			
		||||
        UPDATE_MODS_ON_START = "true";
 | 
			
		||||
      };
 | 
			
		||||
      environment = {UPDATE_MODS_ON_START = "true";};
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
  imports = [
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										35
									
								
								configs/nixos/miniserve-static.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										35
									
								
								configs/nixos/miniserve-static.nix
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,35 @@
 | 
			
		|||
{
 | 
			
		||||
  inputs,
 | 
			
		||||
  config,
 | 
			
		||||
  pkgs,
 | 
			
		||||
  lib,
 | 
			
		||||
  ...
 | 
			
		||||
}:let
 | 
			
		||||
  port="8080";
 | 
			
		||||
in {
 | 
			
		||||
  systemd.services.miniserve = {
 | 
			
		||||
    wantedBy = ["multi-user.target"];
 | 
			
		||||
    after = ["network.target"];
 | 
			
		||||
    description = "A directory listing miniserve instance";
 | 
			
		||||
    serviceConfig = {
 | 
			
		||||
      ExecStart = lib.concatStringsSep " " [
 | 
			
		||||
        "${pkgs.miniserve}/bin/miniserve"
 | 
			
		||||
        "--enable-tar-gz"
 | 
			
		||||
        "--show-wget-footer"
 | 
			
		||||
        "--readme"
 | 
			
		||||
        "--port ${port}"
 | 
			
		||||
        "--qrcode"
 | 
			
		||||
        # "--no-symlinks"
 | 
			
		||||
        "--interfaces 127.0.0.1"
 | 
			
		||||
        "/storage/miniserve"
 | 
			
		||||
      ];
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
  services.nginx.virtualHosts."static.venberg.xyz" = {
 | 
			
		||||
    enableACME = true;
 | 
			
		||||
    forceSSL = true;
 | 
			
		||||
    locations."/" = {
 | 
			
		||||
      proxyPass = "http://localhost:${port}";
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			@ -4,7 +4,7 @@
 | 
			
		|||
  ...
 | 
			
		||||
}: {
 | 
			
		||||
  # Enable sound with pipewire.
 | 
			
		||||
  hardware.pulseaudio.enable = false;
 | 
			
		||||
  services.pulseaudio.enable = false;
 | 
			
		||||
  security.rtkit.enable = true;
 | 
			
		||||
  services.pipewire = {
 | 
			
		||||
    enable = true;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue