{ description = "My DigitalOcean nodes flake"; inputs = { nixpkgs.url = "github:nixos/nixpkgs/21.05"; deploy-rs.url = "github:Serokell/deploy-rs"; sops-nix.url = "github:Mic92/sops-nix"; }; outputs = { self, nixpkgs, deploy-rs, sops-nix } : { # DigitalOcean node nixosConfigurations."nki-personal" = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; modules = [ ../modules/my-tinc sops-nix.nixosModules.sops ./configuration.nix ]; }; deploy.nodes."nki-personal" = { hostname = "nki-personal"; sshUser = "root"; profiles.system = { user = "root"; path = deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations."nki-personal"; }; }; # This is highly advised, and will prevent many possible mistakes checks = builtins.mapAttrs (system: deployLib: deployLib.deployChecks self.deploy) deploy-rs.lib; }; }