diff --git a/configurations/default.nix b/configurations/default.nix index 8612837..1df430b 100644 --- a/configurations/default.nix +++ b/configurations/default.nix @@ -9,4 +9,20 @@ pub-vds = import ./pub-vds.nix flakeContext; }; + deploy.nodes = { + sapphira = { + hostname = "sapphira"; + deploy = { + sshUser = "oqyude"; + }; + profiles.system = { + # user = "root"; + path = deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.sapphira; + }; + }; + }; + + # This is highly advised, and will prevent many possible mistakes + checks = builtins.mapAttrs (system: deployLib: deployLib.deployChecks self.deploy) deploy-rs.lib; + }; } diff --git a/flake.nix b/flake.nix index 0d22898..4be800d 100755 --- a/flake.nix +++ b/flake.nix @@ -24,6 +24,15 @@ nixpkgs.follows = "nixpkgs"; }; }; + + deploy-rs = { + url = "github:serokell/deploy-rs"; + inputs = { + flake-compat.follows = "flake-compat"; + nixpkgs.follows = "nixpkgs"; + }; + }; + flake-compat.url = "github:edolstra/flake-compat"; nixos-hardware.url = "github:NixOS/nixos-hardware/master"; # nixos-facter-modules.url = "github:numtide/nixos-facter-modules"; diff --git a/modules/essentials/settings.nix b/modules/essentials/settings.nix index 174645e..75dddc1 100644 --- a/modules/essentials/settings.nix +++ b/modules/essentials/settings.nix @@ -10,7 +10,7 @@ enable = true; }; settings = { - require-sigs = true; + require-sigs = false; substituters = [ "https://cache.nixos.org" "https://nix-community.cachix.org"