nix config

update microbin, add sxhkdrc command to paste clipboard to my bin

+10 -9
+1
home/profiles/desktop/bin/paste
··· 1 + curl -F "content=$(xclip -o)" -X POST https://bin.sealight.xyz/upload
+1
home/profiles/desktop/default.nix
··· 113 113 ''; 114 114 # TODO hardcoded 115 115 ".local/bin/passmenu".source = ./bin/passmenu; 116 + ".local/bin/paste".source = ./bin/paste; 116 117 ".local/bin/bluetoothmenu".source = ./bin/bluetoothmenu; 117 118 ".local/bin/wifimenu".source = ./bin/wifimenu; 118 119 ".local/bin/powermenu".source = ./bin/powermenu;
+3
home/profiles/desktop/sxhkdrc
··· 27 27 super + e 28 28 rofimoji --selector-args "-theme theme/emojimenu.rasi" --skin-tone moderate --action copy 29 29 30 + super + e 31 + paste 32 + 30 33 super + p 31 34 passmenu 32 35
+4 -1
hosts/profiles/microbin/default.nix
··· 7 7 services.nginx.virtualHosts."bin.sealight.xyz" = { 8 8 enableACME = true; 9 9 forceSSL = true; 10 + extraConfig = "client_max_body_size 20M;"; 10 11 11 12 locations."/" = { 12 13 extraConfig = '' 13 14 proxy_pass http://localhost:4949/; 14 - proxy_set_header X-Forwarded-Host $host; 15 + proxy_set_header X-Forwarded-Proto $scheme; 16 + proxy_set_header X-Real-IP $remote_addr; 17 + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 15 18 ''; 16 19 }; 17 20 };
+1 -8
modules/nixos/microbin.nix
··· 45 45 after = [ "remote-fs.target" "network.target" ]; 46 46 wantedBy = [ "multi-user.target" ]; 47 47 serviceConfig = { 48 - ExecStart = ''${pkgs.microbin}/bin/microbin --port ${builtins.toString cfg.port} 49 - --public-path ${cfg.hostname} 50 - --editable 51 - --enable-burn-after 52 - --private 53 - --qr 54 - --title=sealight 55 - --highlightsyntax''; 48 + ExecStart = "${pkgs.microbin}/bin/microbin -- --port ${builtins.toString cfg.port} --public-path ${cfg.hostname} --editable --enable-burn-after --private --qr --title=sealight --highlightsyntax"; 56 49 WorkingDirectory = dataFolder; 57 50 TimeoutStopSec = " 20 "; 58 51 KillMode = " process ";