Re: [Nix-dev] How do you manage bare-metal local servers with nixops

2015-12-14 Thread zimbatm
Rohit, try something like this: https://gist.github.com/zimbatm/d466ef56f88605f78f99 On Mon, 14 Dec 2015 at 22:47 Domen Kožar wrote: > You might want to test https://github.com/NixOS/nixpkgs/pull/11279 > > On Mon, Dec 14, 2015 at 10:45 PM, rohit yadav > wrote: > >> Hi Zimbatm, >> >> I have very

Re: [Nix-dev] How do you manage bare-metal local servers with nixops

2015-12-14 Thread Domen Kožar
You might want to test https://github.com/NixOS/nixpkgs/pull/11279 On Mon, Dec 14, 2015 at 10:45 PM, rohit yadav wrote: > Hi Zimbatm, > > I have very similar arrangement. I use git and to keep the configuration > synced. However, I wish to use NixOps, I haven't been able to find time to > do tha

Re: [Nix-dev] How do you manage bare-metal local servers with nixops

2015-12-14 Thread rohit yadav
Hi Zimbatm, I have very similar arrangement. I use git and to keep the configuration synced. However, I wish to use NixOps, I haven't been able to find time to do that. From the documentation I could not figure out how to deploy on bare-metal. But as Christoph mentioned that a simple Ip-Address in

Re: [Nix-dev] How do you manage bare-metal local servers with nixops

2015-12-14 Thread zimbatm
Hi rohit, Personally I just have a folder per machine with the /etc/nixos folder and a little script that runs rsync + `nixos-rebuild --switch` on the target machine. Over time I will probably switch to using nixops as well but for a start it's working super well for me. Especially since it doesn

Re: [Nix-dev] How do you manage bare-metal local servers with nixops

2015-12-10 Thread Christoph Hrdinka
Hi Rohit! You can use nixops to deploy to any server running ssh. All you have to do is install a basic NixOS system with opensshd enabled on your target server. Then tell nixops the hostname/ip address of the new server via `deployment.targetHost`. Nixops will evaluate any nix expression you giv

[Nix-dev] How do you manage bare-metal local servers with nixops

2015-12-10 Thread rohit yadav
Hi All, I have few server running NixOS manually configured. Nix already provides a convenient way but a single config file to deploy services to each server would be great. NixOps if I understand correctly is an initiative in that direction. However, from manual I did not understand as how to man