Compare commits

...

2 commits

Author SHA1 Message Date
849034ff41
feat: add ntfy subdomain to headscale 2025-01-04 19:36:12 +01:00
270fc68ccc
feat: enable remote dev on vscode 2025-01-04 19:35:54 +01:00
3 changed files with 40 additions and 27 deletions

View file

@ -4,17 +4,34 @@
pkgs, pkgs,
... ...
}: }:
lib.mkIf config.programs.vscode.enable { let
programs.vscode = { inherit (lib) mkIf;
package = pkgs.vscodium; cfg = config.programs.vscode;
enableUpdateCheck = false; in
extensions = with pkgs.vscode-extensions; [ {
rust-lang.rust-analyzer config = mkIf cfg.enable {
]; programs.vscode = {
userSettings = { package = pkgs.vscode;
"editor.formatOnSave" = true; enableUpdateCheck = false;
"update.mode" = "none"; extensions = with pkgs.vscode-extensions; [
"idf.espIdfPath" = "/home/ny/esp/v5.2.2/esp-idf"; rust-lang.rust-analyzer
ms-vscode-remote.remote-ssh
ms-vscode-remote.remote-ssh-edit
ms-vscode.remote-explorer
tamasfe.even-better-toml
];
userSettings = {
editor.formatOnSave = true;
terminal.integrated.inheritEnv = false;
git.autofetch = true;
remote.SSH = {
connectTimeout = 60;
useLocalServer = true;
remotePlatform = {
"192.168.122.152" = "linux";
};
};
};
}; };
}; };
} }

View file

@ -1,4 +1,9 @@
{ lib, config, ... }: {
lib,
config,
osConfig,
...
}:
let let
inherit (lib) mkIf; inherit (lib) mkIf;
in in
@ -11,21 +16,11 @@ mkIf config.programs.ssh.enable {
user = "deck"; user = "deck";
port = 22; port = 22;
}; };
# dockervm = { vm = mkIf (osConfig.networking.hostName == "marr") {
#hostname = "192.168.178.22"; hostname = "192.168.122.152";
#user = "nydragon"; user = "ny";
#port = 22; port = 22;
#}; };
# raptus = {
#hostname = "vps.ccnlc.eu";
#user = "ny";
#port = 56528;
#};
#shan = {
#hostname = "192.168.178.27";
#user = "root";
#port = 22;
#};
}; };
}; };
} }

View file

@ -44,6 +44,7 @@
"truenas" "truenas"
"fritz" "fritz"
"dav" "dav"
"ntfy"
]; ];
}; };
}; };