From 5e064f7f694e207a9be5932fc351a1f8d4eb6a7b Mon Sep 17 00:00:00 2001 From: iFargle Date: Thu, 21 Sep 2023 18:11:17 +0900 Subject: [PATCH] test linode --- flake.nix | 3 ++- nixos/hosts/nixos-linode-img/default.nix | 8 ++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 nixos/hosts/nixos-linode-img/default.nix diff --git a/flake.nix b/flake.nix index 8b5d7ad9..d44a11b9 100644 --- a/flake.nix +++ b/flake.nix @@ -57,7 +57,8 @@ }; imageConfigurations = { nixos-rpi4-img = libx.mkImage { hostname = "nixos-rpi4-img"; platform = "aarch64-linux"; format = "sd-aarch64"; }; - nixos-iso-console = libx.mkImage { hostname = "nixos-iso-console"; format = "linode"; }; + nixos-iso-console = libx.mkImage { hostname = "nixos-iso-console"; format = "iso"; }; + nixos-linode-img = libx.mkImage { hostname = "nixos-linode-img"; format = "linode"; }; }; # Devshell for bootstrapping; acessible via 'nix develop' diff --git a/nixos/hosts/nixos-linode-img/default.nix b/nixos/hosts/nixos-linode-img/default.nix new file mode 100644 index 00000000..bf34dafe --- /dev/null +++ b/nixos/hosts/nixos-linode-img/default.nix @@ -0,0 +1,8 @@ +{ config, lib, pkgs, modulesPath, desktop, username, ... }: { + nixpkgs.config.allowUnfree = false; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + networking.hostName = "nixos-linode-img"; + + networking.firewall.allowedTCPPorts = [ 22 ]; +}