summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandromeda <andromeda@lenovo>2026-01-10 21:48:57 +0100
committerandromeda <andromeda@lenovo>2026-01-10 21:48:57 +0100
commitde911e358b0bf313f9e6ad31525246186309f0a9 (patch)
treee13eacd59273ea0704ff5bf2275ef7e452c16015
parentb76f6ba3d64f6da4802ba12bf2d4e711604355c4 (diff)
disable forgejo as broken
-rwxr-xr-xdeploy.sh5
-rw-r--r--hardware-configuration.nix24
-rw-r--r--machines.nix3
3 files changed, 31 insertions, 1 deletions
diff --git a/deploy.sh b/deploy.sh
new file mode 100755
index 0000000..86a6c40
--- /dev/null
+++ b/deploy.sh
@@ -0,0 +1,5 @@
+# usage:
+# $ ./deploy.sh <hostname> <ip>
+# example usage:
+# $ ./deply.sh 109-199-104-83 109.199.104.83
+nix run github:nix-community/nixos-anywhere -- --generate-hardware-config nixos-generate-config ./hardware-configuration.nix --flake .?ref=411ee0c#$1 --target-host root@$2
diff --git a/hardware-configuration.nix b/hardware-configuration.nix
new file mode 100644
index 0000000..bb23f0b
--- /dev/null
+++ b/hardware-configuration.nix
@@ -0,0 +1,24 @@
+# Do not modify this file! It was generated by ‘nixos-generate-config’
+# and may be overwritten by future invocations. Please make changes
+# to /etc/nixos/configuration.nix instead.
+{ config, lib, pkgs, modulesPath, ... }:
+
+{
+ imports =
+ [ (modulesPath + "/profiles/qemu-guest.nix")
+ ];
+
+ boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod" ];
+ boot.initrd.kernelModules = [ ];
+ boot.kernelModules = [ ];
+ boot.extraModulePackages = [ ];
+
+ # Enables DHCP on each ethernet and wireless interface. In case of scripted networking
+ # (the default) this is the recommended approach. When using systemd-networkd it's
+ # still possible to use this option, but it's recommended to use it in conjunction
+ # with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
+ networking.useDHCP = lib.mkDefault true;
+ # networking.interfaces.ens18.useDHCP = lib.mkDefault true;
+
+ nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
+}
diff --git a/machines.nix b/machines.nix
index 8d23c09..04757bc 100644
--- a/machines.nix
+++ b/machines.nix
@@ -68,9 +68,10 @@
# webmail.domain
./modules/nixos/roundcube.nix
+ # BROKEN
# forgejo
# git.domain
- ./modules/nixos/forgejo.nix
+ # ./modules/nixos/forgejo.nix
# BROKEN
# zulip chat client