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
|
||||
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";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -206,4 +206,6 @@
|
|||
};
|
||||
virtualisation.oci-containers.backend = "podman";
|
||||
environment.enableAllTerminfo = true;
|
||||
|
||||
my.soju.enable = true;
|
||||
}
|
||||
|
|
|
@ -3,5 +3,6 @@
|
|||
imports = [
|
||||
./backup.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 = [
|
||||
./conduwuit
|
||||
./attic
|
||||
./vscode.nix
|
||||
];
|
||||
importedOverlays = map (m: import m) overlays;
|
||||
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