refactor(sydnix-cli): rewrite sydnix-cli

holy shit. why. why did i write the first version LOL. so fucking ocmplicated. and half broken.
This commit is contained in:
2025-12-01 14:05:21 -07:00
parent 1a685b4bf4
commit ea0c455824
30 changed files with 103 additions and 1154 deletions

View File

@@ -1,4 +1,4 @@
{ config, pkgs, lib, disko, sydnix-cli, ... }:
{ config, pkgs, lib, disko, ... }:
{
imports = [
@@ -102,9 +102,9 @@
git
sshfs
waypipe
sydnix-cli.packages.x86_64-linux.default
(import ../../scripts/port-tools { inherit pkgs; })
(import ../../scripts/vpn-tools { inherit pkgs; })
(import ../../scripts/sydnix-cli { inherit pkgs; })
];
# This server is connected to the internet! Port 22 is open!! Aagghhhh!!!

View File

@@ -1,4 +1,4 @@
{ config, pkgs, lib, disko, sydnix-cli, ... }:
{ config, pkgs, lib, disko, ... }:
{
imports = [
@@ -93,7 +93,7 @@
pkgs.neovim
pkgs.git
pkgs.waypipe
sydnix-cli.packages.x86_64-linux.default
(import ../../scripts/sydnix-cli { inherit pkgs; })
];
services.flatpak.enable = true;

View File

@@ -1,4 +1,4 @@
{ config, pkgs, lib, disko, sydnix-cli, modulesPath, ... }:
{ config, pkgs, lib, disko, modulesPath, ... }:
{
imports = [

View File

@@ -1,4 +1,4 @@
{ config, pkgs, lib, disko, sydnix-cli, ... }:
{ config, pkgs, lib, disko, ... }:
{
imports = [
./hardware.nix
@@ -48,8 +48,9 @@
neovim
git
waypipe
sydnix-cli.packages.x86_64-linux.default
(import ../../scripts/port-tools { inherit pkgs; })
(let scripts = ["port-tools" "sydnix-cli"];
in map (s: import ../../scripts/${s} { inherit pkgs; })
scripts)
];
services.openssh = {

View File

@@ -1,4 +1,4 @@
{ config, pkgs, lib, disko, sydnix-cli, ... }:
{ config, pkgs, lib, disko, ... }:
{
imports = [
@@ -112,8 +112,8 @@
environment.systemPackages = [
pkgs.neovim
pkgs.git
sydnix-cli.packages.x86_64-linux.default
(import ../../scripts/port-tools { inherit pkgs; })
(import ../../scripts/sydnix-cli { inherit pkgs; })
# Waypipe provides the equivalent of X11 forwarding for Wayland. When
# connecting to a remote, it is required that `waypipe` is on the remote's