feat: Added vscode

This commit is contained in:
uttarayan21
2025-01-13 20:45:20 +05:30
parent fcc4de84ba
commit 53f8e2998d
4 changed files with 47 additions and 19 deletions

View File

@@ -35,6 +35,10 @@
domain = "darksailor.dev"; domain = "darksailor.dev";
policy = "one_factor"; policy = "one_factor";
} }
{
domain = "code.darksailor.dev";
policy = "one_factor";
}
# { # {
# domain = "media.darksailor.dev"; # domain = "media.darksailor.dev";
# policy = "one_factor"; # policy = "one_factor";

View File

@@ -7,6 +7,7 @@
# ./llama.nix # ./llama.nix
./nextcloud.nix ./nextcloud.nix
./jellyfin.nix ./jellyfin.nix
./vscode.nix
]; ];
services = { services = {
nix-serve = { nix-serve = {

View File

@@ -0,0 +1,19 @@
{pkgs, ...}: {
services = {
openvscode-server = {
enable = true;
port = 3000;
host = "0.0.0.0";
extraPackages = with pkgs; [];
};
caddy = {
virtualHosts."code.darksailor.dev".extraConfig = ''
forward_auth localhost:5555 {
uri /api/authz/forward-auth
copy_headers Remote-User Remote-Groups Remote-Email Remote-Name
}
reverse_proxy localhost:3000
'';
};
};
}

View File

@@ -153,27 +153,31 @@
# TTYVHangup = true; # TTYVHangup = true;
# TTYVTDisallocate = true; # TTYVTDisallocate = true;
# }; # };
# services.wireplumber.configPackages = with pkgs; [ bluez ];
# environment.etc = {
# "wireplumber/bluetooth.lua.d/51-bluez-config.lua".text = ''
# bluez_monitor.properties = {
# ["bluez5.enable-sbc-xq"] = true,
# ["bluez5.enable-msbc"] = true,
# ["bluez5.enable-hw-volume"] = true,
# ["bluez5.headset-roles"] = "[ hsp_hs hsp_ag hfp_hf hfp_ag ]"
# }
# '';
# };
hardware = { hardware = {
keyboard.qmk.enable = true; keyboard.qmk.enable = true;
# services.wireplumber.configPackages = with pkgs; [ bluez ]; bluetooth = {
enable = true;
# environment.etc = { powerOnBoot = true;
# "wireplumber/bluetooth.lua.d/51-bluez-config.lua".text = '' settings = {
# bluez_monitor.properties = { General = {
# ["bluez5.enable-sbc-xq"] = true, Name = "Ryu";
# ["bluez5.enable-msbc"] = true, Enable = "Source,Sink,Media,Socket";
# ["bluez5.enable-hw-volume"] = true, ControllerMode = "dual";
# ["bluez5.headset-roles"] = "[ hsp_hs hsp_ag hfp_hf hfp_ag ]" FactConnectable = "true";
# } Experimental = "true";
# ''; };
# };
bluetooth.enable = true;
bluetooth.powerOnBoot = true;
bluetooth.settings = {
General = {
Name = "Ryu";
Enable = "Source,Sink,Media,Socket";
}; };
}; };
}; };