From de911e358b0bf313f9e6ad31525246186309f0a9 Mon Sep 17 00:00:00 2001 From: andromeda Date: Sat, 10 Jan 2026 21:48:57 +0100 Subject: [PATCH] disable forgejo as broken --- deploy.sh | 5 +++++ hardware-configuration.nix | 24 ++++++++++++++++++++++++ machines.nix | 3 ++- 3 files changed, 31 insertions(+), 1 deletion(-) create mode 100755 deploy.sh create mode 100644 hardware-configuration.nix 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 +# 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..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