Compare commits
2 commits
67048909a9
...
650d3615c3
Author | SHA1 | Date | |
---|---|---|---|
650d3615c3 | |||
4f015ecb45 |
6 changed files with 45 additions and 2 deletions
|
@ -11,6 +11,7 @@
|
||||||
jnoortheen.nix-ide
|
jnoortheen.nix-ide
|
||||||
editorconfig.editorconfig
|
editorconfig.editorconfig
|
||||||
github.github-vscode-theme
|
github.github-vscode-theme
|
||||||
|
github.codespaces
|
||||||
];
|
];
|
||||||
userSettings = {
|
userSettings = {
|
||||||
"workbench.colorTheme" = "GitHub Dark Default";
|
"workbench.colorTheme" = "GitHub Dark Default";
|
||||||
|
@ -18,10 +19,10 @@
|
||||||
"nix.enableLanguageServer" = true;
|
"nix.enableLanguageServer" = true;
|
||||||
"nix.serverPath" = "nixd";
|
"nix.serverPath" = "nixd";
|
||||||
"editor.fontFamily" = "IBM Plex Mono";
|
"editor.fontFamily" = "IBM Plex Mono";
|
||||||
"editor.fontSize" = 15;
|
"editor.fontSize" = 16;
|
||||||
"editor.wordWrap" = "on";
|
"editor.wordWrap" = "on";
|
||||||
|
|
||||||
# vim mode
|
# vim mode settings
|
||||||
"vim.handleKeys" = {
|
"vim.handleKeys" = {
|
||||||
"<C-b>" = false; # file tree toggle
|
"<C-b>" = false; # file tree toggle
|
||||||
};
|
};
|
||||||
|
@ -32,6 +33,7 @@
|
||||||
"silent" = true;
|
"silent" = true;
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
"workbench.startupEditor" = "none";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -206,4 +206,6 @@
|
||||||
};
|
};
|
||||||
virtualisation.oci-containers.backend = "podman";
|
virtualisation.oci-containers.backend = "podman";
|
||||||
environment.enableAllTerminfo = true;
|
environment.enableAllTerminfo = true;
|
||||||
|
|
||||||
|
my.soju.enable = true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,5 +3,6 @@
|
||||||
imports = [
|
imports = [
|
||||||
./backup.nix
|
./backup.nix
|
||||||
./caddy.nix
|
./caddy.nix
|
||||||
|
./soju.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
23
modules/soju.nix
Normal file
23
modules/soju.nix
Normal 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
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
|
@ -2,6 +2,7 @@ let
|
||||||
overlays = [
|
overlays = [
|
||||||
./conduwuit
|
./conduwuit
|
||||||
./attic
|
./attic
|
||||||
|
./vscode.nix
|
||||||
];
|
];
|
||||||
importedOverlays = map (m: import m) overlays;
|
importedOverlays = map (m: import m) overlays;
|
||||||
in
|
in
|
||||||
|
|
14
overlay/vscode.nix
Normal file
14
overlay/vscode.nix
Normal 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=";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue