Compare commits

..

2 commits

Author SHA1 Message Date
cy
650d3615c3
init soju
Signed-off-by: cy <cy@cy7.sh>
2025-01-30 10:51:47 -05:00
cy
4f015ecb45
vscode: overlay github codespaces extension
Signed-off-by: cy <cy@cy7.sh>
2025-01-29 21:48:31 -05:00
6 changed files with 45 additions and 2 deletions

View file

@ -11,6 +11,7 @@
jnoortheen.nix-ide
editorconfig.editorconfig
github.github-vscode-theme
github.codespaces
];
userSettings = {
"workbench.colorTheme" = "GitHub Dark Default";
@ -18,10 +19,10 @@
"nix.enableLanguageServer" = true;
"nix.serverPath" = "nixd";
"editor.fontFamily" = "IBM Plex Mono";
"editor.fontSize" = 15;
"editor.fontSize" = 16;
"editor.wordWrap" = "on";
# vim mode
# vim mode settings
"vim.handleKeys" = {
"<C-b>" = false; # file tree toggle
};
@ -32,6 +33,7 @@
"silent" = true;
}
];
"workbench.startupEditor" = "none";
};
};
}

View file

@ -206,4 +206,6 @@
};
virtualisation.oci-containers.backend = "podman";
environment.enableAllTerminfo = true;
my.soju.enable = true;
}

View file

@ -3,5 +3,6 @@
imports = [
./backup.nix
./caddy.nix
./soju.nix
];
}

23
modules/soju.nix Normal file
View file

@ -0,0 +1,23 @@
{ config, lib, ... }:
let
cfg = config.my.soju;
in
{
options.my.soju = {
enable = lib.mkEnableOption "soju";
};
config = lib.mkIf cfg.enable {
services.soju = {
enable = true;
# should be fine since caddy will provide TLS
listen = [ "irc+insecure://127.0.0.1:6667" ];
hostName = "soju.cy7.sh";
};
services.caddy.virtualHosts."soju.cy7.sh".extraConfig = ''
import common
reverse_proxy 127.0.0.1:6667
'';
};
}

View file

@ -2,6 +2,7 @@ let
overlays = [
./conduwuit
./attic
./vscode.nix
];
importedOverlays = map (m: import m) overlays;
in

14
overlay/vscode.nix Normal file
View file

@ -0,0 +1,14 @@
final: prev: {
vscode-extensions = prev.vscode-extensions // {
github = prev.vscode-extensions.github // {
codespaces = prev.vscode-utils.buildVscodeMarketplaceExtension {
mktplcRef = {
publisher = "github";
name = "codespaces";
version = "1.17.3";
hash = "sha256-idJFYHJ4yeqpFZBX55Y0v1yfzgqyhS0MrC4yIto7i7w=";
};
};
};
};
}