diff --git a/bin/run-via-tmux b/bin/run-via-tmux deleted file mode 100755 index 7497ed6..0000000 --- a/bin/run-via-tmux +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env bash -set -xe -PROJECT=$(basename `pwd`) -tmux new-session -A -s $PROJECT sh -c 'sudo nixos-rebuild switch; echo "Press enter to quit"; read ' diff --git a/images/digitalocean.nix b/images/digitalocean.nix deleted file mode 100644 index 646a9f7..0000000 --- a/images/digitalocean.nix +++ /dev/null @@ -1,35 +0,0 @@ -let - nixpkgs = - ( - let - lock = builtins.fromJSON (builtins.readFile ../flake.lock); - in - fetchTarball { - url = "https://github.com/NixOS/nixpkgs/archive/${lock.nodes.nixpkgs.locked.rev}.tar.gz"; - sha256 = lock.nodes.nixpkgs.locked.narHash; - } - ); - pkgs = import nixpkgs { }; - config = { - imports = - [ "${nixpkgs}/nixos/modules/virtualisation/digital-ocean-image.nix" ]; - - # Headless - don't start a tty on the serial consoles. - systemd.services."serial-getty@ttyS0".enable = false; - systemd.services."serial-getty@hvc0".enable = false; - systemd.services."getty@tty1".enable = false; - systemd.services."autovt@".enable = false; - - # sufficient swap for functioning nix-build on 1G droplets - swapDevices = [{ device = "/swapfile"; size = 2048; }]; - - # Make sure that SSH is available - networking.firewall.allowedTCPPorts = [ 22 ]; - services.sshd.enable = true; - users.users.root.openssh.authorizedKeys.keys = [ (builtins.readFile ../id_rsa.pub) ]; - - # Use more aggressive compression then the default. - virtualisation.digitalOceanImage.compressionMethod = "bzip2"; - }; -in -(pkgs.nixos config).digitalOceanImage