add vscode server microvm and update user configurations
This commit is contained in:
@@ -29,6 +29,7 @@
|
|||||||
# microvm
|
# microvm
|
||||||
./modules/microvm.nix
|
./modules/microvm.nix
|
||||||
./modules/gitea-vm.nix
|
./modules/gitea-vm.nix
|
||||||
|
./modules/vscode-server.nix # Add VS Code Server microvm
|
||||||
|
|
||||||
# web
|
# web
|
||||||
./modules/web
|
./modules/web
|
||||||
|
|||||||
40
hosts/fw/modules/vscode-server.nix
Normal file
40
hosts/fw/modules/vscode-server.nix
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
{config, pkgs, lib, ...}:
|
||||||
|
|
||||||
|
let
|
||||||
|
hostname = "vscode-server";
|
||||||
|
unstable = import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/nixos-unstable.tar.gz") {
|
||||||
|
config = config.nixpkgs.config;
|
||||||
|
system = pkgs.system;
|
||||||
|
};
|
||||||
|
in {
|
||||||
|
microvm.vms.${hostname} = {
|
||||||
|
autostart = true;
|
||||||
|
config = { config, pkgs, ... }: {
|
||||||
|
networking.hostName = hostname;
|
||||||
|
|
||||||
|
services.code-server = {
|
||||||
|
enable = true;
|
||||||
|
host = "0.0.0.0";
|
||||||
|
port = 8080;
|
||||||
|
auth = "none";
|
||||||
|
extensions = with pkgs.vscode-extensions; [
|
||||||
|
github.copilot
|
||||||
|
ms-azuretools.vscode-docker
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
environment.systemPackages = [
|
||||||
|
unstable.ddev
|
||||||
|
];
|
||||||
|
|
||||||
|
# Docker is required for ddev
|
||||||
|
virtualisation.docker.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
interfaces = [{
|
||||||
|
type = "tap";
|
||||||
|
id = "vm-${hostname}";
|
||||||
|
mac = "02:00:00:00:01:01";
|
||||||
|
}];
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -18,7 +18,7 @@ in {
|
|||||||
imports =
|
imports =
|
||||||
[ # Include the results of the hardware scan.
|
[ # Include the results of the hardware scan.
|
||||||
"${impermanence}/nixos.nix"
|
"${impermanence}/nixos.nix"
|
||||||
(import <nix-snapd>).nixosModules.default
|
# (import <nix-snapd>).nixosModules.default
|
||||||
./utils/bento.nix
|
./utils/bento.nix
|
||||||
|
|
||||||
./utils/modules/sops.nix
|
./utils/modules/sops.nix
|
||||||
@@ -40,7 +40,7 @@ in {
|
|||||||
|
|
||||||
];
|
];
|
||||||
|
|
||||||
services.snap.enable = true;
|
# services.snap.enable = true;
|
||||||
|
|
||||||
nixpkgs.overlays = [
|
nixpkgs.overlays = [
|
||||||
(import ./utils/overlays/packages.nix)
|
(import ./utils/overlays/packages.nix)
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"directories" : [ {
|
"directories" : [ {
|
||||||
"id" : "18g3gg35eC6T",
|
"id" : "18g3gg35eC6T",
|
||||||
"path" : "/home/dominik/cloud.cloonar.com/Documents",
|
"path" : "/home/dominik/nextcloud.cloonar.com/Documents",
|
||||||
"displayName" : "Documents",
|
"displayName" : "Documents",
|
||||||
"unlockAfterStartup" : true,
|
"unlockAfterStartup" : true,
|
||||||
"revealAfterMount" : true,
|
"revealAfterMount" : true,
|
||||||
@@ -14,7 +14,7 @@
|
|||||||
"port" : 42427
|
"port" : 42427
|
||||||
}, {
|
}, {
|
||||||
"id" : "XGtyujeFM_HM",
|
"id" : "XGtyujeFM_HM",
|
||||||
"path" : "/home/dominik/cloud.cloonar.com/Downloads/Downloads",
|
"path" : "/home/dominik/nextcloud.cloonar.com/Downloads/Downloads",
|
||||||
"displayName" : "Downloads",
|
"displayName" : "Downloads",
|
||||||
"unlockAfterStartup" : true,
|
"unlockAfterStartup" : true,
|
||||||
"revealAfterMount" : true,
|
"revealAfterMount" : true,
|
||||||
|
|||||||
@@ -31,6 +31,7 @@
|
|||||||
/home/dominik/projects/cloonar/paraclub/paraclub-frontend
|
/home/dominik/projects/cloonar/paraclub/paraclub-frontend
|
||||||
/home/dominik/projects/cloonar/paraclub/paraclub-website
|
/home/dominik/projects/cloonar/paraclub/paraclub-website
|
||||||
/home/dominik/projects/cloonar/paraclub/paraclub-module
|
/home/dominik/projects/cloonar/paraclub/paraclub-module
|
||||||
|
/home/dominik/projects/cloonar/paraclub/paraclub-ai-mailer
|
||||||
/home/dominik/projects/cloonar/amz/amz-api
|
/home/dominik/projects/cloonar/amz/amz-api
|
||||||
/home/dominik/projects/cloonar/amz/amz-frontend
|
/home/dominik/projects/cloonar/amz/amz-frontend
|
||||||
/home/dominik/projects/cloonar/hilgenberg-website
|
/home/dominik/projects/cloonar/hilgenberg-website
|
||||||
|
|||||||
@@ -163,6 +163,8 @@ in
|
|||||||
MOZ_ENABLE_WAYLAND = "1";
|
MOZ_ENABLE_WAYLAND = "1";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
programs.bash = {
|
programs.bash = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
@@ -172,6 +174,17 @@ in
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
programs.vscode = {
|
||||||
|
enable = true;
|
||||||
|
package = (pkgs.vscode.override { isInsiders = true; }).overrideAttrs (oldAttrs: rec {
|
||||||
|
src = builtins.fetchTarball {
|
||||||
|
url = "https://update.code.visualstudio.com/1.98.0-insider/linux-x64/insider";
|
||||||
|
sha256 = "1bbp8ix3brx6jq9zhzvq33fmlv3dl4s4m9p280hh2rr95rmd5xab";
|
||||||
|
};
|
||||||
|
version = "1.98.0";
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
/* Here goes the rest of your home-manager config, e.g. home.packages = [ pkgs.foo ]; */
|
/* Here goes the rest of your home-manager config, e.g. home.packages = [ pkgs.foo ]; */
|
||||||
# home.persistence."/nix/persist/user/dominik" = {
|
# home.persistence."/nix/persist/user/dominik" = {
|
||||||
@@ -591,10 +604,13 @@ in
|
|||||||
git clone gitea@git.cloonar.com:Cloonar/wohnservice-wien-typo3.git ${persistHome}/projects/cloonar/wohnservice-wien 2>/dev/null
|
git clone gitea@git.cloonar.com:Cloonar/wohnservice-wien-typo3.git ${persistHome}/projects/cloonar/wohnservice-wien 2>/dev/null
|
||||||
git clone gitea@git.cloonar.com:Cloonar/wohnservice-gdpr.git ${persistHome}/projects/cloonar/wohnservice-gdpr 2>/dev/null
|
git clone gitea@git.cloonar.com:Cloonar/wohnservice-gdpr.git ${persistHome}/projects/cloonar/wohnservice-gdpr 2>/dev/null
|
||||||
git clone gitea@git.cloonar.com:Cloonar/gbv-aktuell.git ${persistHome}/projects/cloonar/gbv-aktuell 2>/dev/null
|
git clone gitea@git.cloonar.com:Cloonar/gbv-aktuell.git ${persistHome}/projects/cloonar/gbv-aktuell 2>/dev/null
|
||||||
|
|
||||||
git clone gitea@git.cloonar.com:Paraclub/api.git ${persistHome}/projects/cloonar/paraclub/paraclub-api 2>/dev/null
|
git clone gitea@git.cloonar.com:Paraclub/api.git ${persistHome}/projects/cloonar/paraclub/paraclub-api 2>/dev/null
|
||||||
git clone gitea@git.cloonar.com:Paraclub/frontend.git ${persistHome}/projects/cloonar/paraclub/paraclub-frontend 2>/dev/null
|
git clone gitea@git.cloonar.com:Paraclub/frontend.git ${persistHome}/projects/cloonar/paraclub/paraclub-frontend 2>/dev/null
|
||||||
git clone gitea@git.cloonar.com:Paraclub/website.git ${persistHome}/projects/cloonar/paraclub/paraclub-website 2>/dev/null
|
git clone gitea@git.cloonar.com:Paraclub/website.git ${persistHome}/projects/cloonar/paraclub/paraclub-website 2>/dev/null
|
||||||
git clone gitea@git.cloonar.com:Paraclub/module.git ${persistHome}/projects/cloonar/paraclub/paraclub-module 2>/dev/null
|
git clone gitea@git.cloonar.com:Paraclub/module.git ${persistHome}/projects/cloonar/paraclub/paraclub-module 2>/dev/null
|
||||||
|
git clone gitea@git.cloonar.com:Paraclub/ai-mailer.git ${persistHome}/projects/cloonar/paraclub/paraclub-ai-mailer 2>/dev/null
|
||||||
|
|
||||||
git clone gitea@git.cloonar.com:Cloonar/amz-api.git ${persistHome}/projects/cloonar/amz/amz-api 2>/dev/null
|
git clone gitea@git.cloonar.com:Cloonar/amz-api.git ${persistHome}/projects/cloonar/amz/amz-api 2>/dev/null
|
||||||
git clone gitea@git.cloonar.com:Cloonar/amz-frontend.git ${persistHome}/projects/cloonar/amz/amz-frontend 2>/dev/null
|
git clone gitea@git.cloonar.com:Cloonar/amz-frontend.git ${persistHome}/projects/cloonar/amz/amz-frontend 2>/dev/null
|
||||||
git clone gitea@git.cloonar.com:hilgenberg/website.git ${persistHome}/projects/cloonar/hilgenberg-website 2>/dev/null
|
git clone gitea@git.cloonar.com:hilgenberg/website.git ${persistHome}/projects/cloonar/hilgenberg-website 2>/dev/null
|
||||||
|
|||||||
Reference in New Issue
Block a user