feat: Added vscode
This commit is contained in:
@@ -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";
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
# ./llama.nix
|
# ./llama.nix
|
||||||
./nextcloud.nix
|
./nextcloud.nix
|
||||||
./jellyfin.nix
|
./jellyfin.nix
|
||||||
|
./vscode.nix
|
||||||
];
|
];
|
||||||
services = {
|
services = {
|
||||||
nix-serve = {
|
nix-serve = {
|
||||||
|
|||||||
19
nixos/mirai/services/vscode.nix
Normal file
19
nixos/mirai/services/vscode.nix
Normal 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
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -153,8 +153,6 @@
|
|||||||
# TTYVHangup = true;
|
# TTYVHangup = true;
|
||||||
# TTYVTDisallocate = true;
|
# TTYVTDisallocate = true;
|
||||||
# };
|
# };
|
||||||
hardware = {
|
|
||||||
keyboard.qmk.enable = true;
|
|
||||||
# services.wireplumber.configPackages = with pkgs; [ bluez ];
|
# services.wireplumber.configPackages = with pkgs; [ bluez ];
|
||||||
|
|
||||||
# environment.etc = {
|
# environment.etc = {
|
||||||
@@ -167,13 +165,19 @@
|
|||||||
# }
|
# }
|
||||||
# '';
|
# '';
|
||||||
# };
|
# };
|
||||||
|
hardware = {
|
||||||
bluetooth.enable = true;
|
keyboard.qmk.enable = true;
|
||||||
bluetooth.powerOnBoot = true;
|
bluetooth = {
|
||||||
bluetooth.settings = {
|
enable = true;
|
||||||
|
powerOnBoot = true;
|
||||||
|
settings = {
|
||||||
General = {
|
General = {
|
||||||
Name = "Ryu";
|
Name = "Ryu";
|
||||||
Enable = "Source,Sink,Media,Socket";
|
Enable = "Source,Sink,Media,Socket";
|
||||||
|
ControllerMode = "dual";
|
||||||
|
FactConnectable = "true";
|
||||||
|
Experimental = "true";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user