From 5ea8cb77f5e78c738770926701f754a28bfef153 Mon Sep 17 00:00:00 2001 From: Florian Schmitt Date: Mon, 16 Dec 2024 13:46:05 +0300 Subject: [PATCH] feat(inventory): nixin vm not working example of nixin build --- inventory/nixin.nix | 34 ++++++++++++++++++++++++++-------- 1 file changed, 26 insertions(+), 8 deletions(-) diff --git a/inventory/nixin.nix b/inventory/nixin.nix index f1e170e..8bb27a8 100644 --- a/inventory/nixin.nix +++ b/inventory/nixin.nix @@ -14,7 +14,7 @@ networking.domain = "chmok.net"; networking.firewall = { allowedUDPPorts = [ - 53 # forgejo + 53 # forgejo-runner 8098 # wireguard ]; allowedTCPPorts = [ @@ -173,13 +173,31 @@ # ${adminCmd} change-password --username ${user} --password "${pwd}" || true ''; - environment.systemPackages = with pkgs; [ - git - wget - tmux - mosh - htop - ]; + environment.systemPackages = + with pkgs; + let + #nixin-web = buildNpmPackage { + # pname = "nixin-web"; + # version = "0.1-alpha"; + # src = fetchgit { + # url = "https://git.distrilab.fr/NixiN/nixin-web"; + # rev = "30384e64854b04e1f51ba68c3874765e141e9fc1"; + # hash = "sha256-ERx6GX/qaiZXMzaLXuWTq4FxJ3RYy/LtkC2/kstF9nw="; + # }; + # makeCacheWritable = true; + # npmDepsHash = "sha256-0YIrAMbM1CtInq1XPs/5r8FhOzE7bKXMoN23vm/ihEA="; + # npmBuildScript = "docs:build"; + #}; + indication = "the code above keep stuck because vite and nixos are'nt friends"; + in + [ + #nixin-web + git + wget + tmux + mosh + htop + ]; system.stateVersion = "24.05"; }