From 2c9b6bafc42db35180abea99a65248b6ff90700b Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Mon, 23 Sep 2024 10:12:32 +0800 Subject: [PATCH] hosts/plover: update deploy-rs node settings --- configs/flake-parts/nixos.nix | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/configs/flake-parts/nixos.nix b/configs/flake-parts/nixos.nix index 35a3ec9c..34b8f591 100644 --- a/configs/flake-parts/nixos.nix +++ b/configs/flake-parts/nixos.nix @@ -5,6 +5,10 @@ , ... }: +let + domain = "foodogsquared.one"; + subdomain = name: "${name}.${domain}"; +in { setups.nixos = { configs = { @@ -49,8 +53,15 @@ nixpkgs.branch = "nixos-unstable"; home-manager.branch = "home-manager-unstable"; systems = [ "x86_64-linux" ]; + inherit domain; + formats = null; - domain = "foodogsquared.one"; + deploy = { + hostname = subdomain "plover"; + autoRollback = true; + magicRollback = true; + }; + modules = [ inputs.disko.nixosModules.disko inputs.sops-nix.nixosModules.sops