!BgJZHVOYkwVcEKLAyM:nixos.org

NixOS Deployments

1251 Members
NixOS Deployment tooling308 Servers

Load older messages


SenderMessageTime
20 Sep 2021
@ryantm:matrix.orgryantmI got us temporarily unstuck by pinning an old nixpkgs for nixops: https://github.com/nix-community/infra/pull/12316:59:02
@em:queersin.spaceEmelie left the room.20:18:23
21 Sep 2021
@timdeh:matrix.orgnrdxp joined the room.14:48:20
@schnecfk:ruhr-uni-bochum.deCRTifiedIs there a way of "pulling" deployments? I use nixops to manage my personal machines, but three machines are rarely running at the same time (namely my desktop, my private laptop and my work laptop). Keeping the work laptop separate is okay for me, but for the private laptop it would be great if I could have a "dummy deployment" e.g. so that the system closure is stored on cachix or on my home server (which is one of the nodes running 24/7), and when the laptop starts, it tries to pull e.g. the latest deployment and switches to it22:37:11
@schnecfk:ruhr-uni-bochum.deCRTified(Just curious whether there is a solution for something like this)22:37:50
@tomberek:matrix.orgtomberekhttps://nixos.wiki/wiki/Hail ?22:43:01
@schnecfk:ruhr-uni-bochum.deCRTified
In reply to @tomberek:matrix.org
https://nixos.wiki/wiki/Hail ?
Thanks, I'll have a look. First sections looks like it's exactly what I'm looking for
22:46:10
@tomberek:matrix.orgtomberek Well. It looks defunct. 22:46:43
@tomberek:matrix.orgtomberek I don’t know what happened to it. 22:46:59
@schnecfk:ruhr-uni-bochum.deCRTifiedYeah, the GH repo is also gone :(22:48:28
@tomberek:matrix.orgtomberek For your use case you can almost cronJob-gitPull-nixosRebuild? Sprinkle in a little nixCopy and it’s pretty close. 22:48:31
@schnecfk:ruhr-uni-bochum.deCRTifiedAlmost, yes22:49:04
22 Sep 2021
@mbprtpmnr:matrix.orgmbprtpmnr
In reply to @linus.heckemann:matrix.mayflower.de
Set deployment.targetEnv = "none"; and deployment.targetHost to the DNS name or IP address of the machine
This should work also with flakes?
10:39:28
@linus.heckemann:matrix.mayflower.deLinux Hackermanidk, haven't used nixops with flakes. Try it I guess.10:40:10
@linus.heckemann:matrix.mayflower.deLinux HackermanI don't see any reason why not though.10:40:15
@mbprtpmnr:matrix.orgmbprtpmnrHmm... With nixops 1.7 ...I think is not working, now I try an shell with nixops 2...10:41:21
@mbprtpmnr:matrix.orgmbprtpmnrBecause I set `deployment.tarrgetHost = "..."; ` inside flake.nix10:42:04
@mbprtpmnr:matrix.orgmbprtpmnr* Because I set `deployment.targetHost = "..."; ` inside flake.nix10:42:22
@mbprtpmnr:matrix.orgmbprtpmnrI really need that, is annoying to ssh every time and do rebuild swith...10:44:04
@linus.heckemann:matrix.mayflower.deLinux Hackermanoh, nixops 1.7 doesn't do flakes.10:44:17
@linus.heckemann:matrix.mayflower.deLinux Hackermanyou can set deployment.targetHost in the host config too though, it doesn't have to be in a central file10:44:37
@mbprtpmnr:matrix.orgmbprtpmnrI know, but all my services is splited and imported as modules inside flake.nix... So...10:45:42
@mbprtpmnr:matrix.orgmbprtpmnrIdk what to do...10:46:05
@mbprtpmnr:matrix.orgmbprtpmnrAnd I ran `nixops create ./flake.nix -d nixos-server`...10:47:53
@eyjhb:eyjhb.dkeyJhb infinisil: This https://github.com/Infinisil/nixus/issues/2#issuecomment-698606857 reminds me, it would be nice if nixus could infect :p 11:25:58
@mbprtpmnr:matrix.orgmbprtpmnr * And I ran nixops create ./flake.nix -d nixos-server... 13:09:14
@mbprtpmnr:matrix.orgmbprtpmnr * Because I set deployment.targetHost = "..."; inside flake.nix 13:09:26
@mbprtpmnr:matrix.orgmbprtpmnr Linux Hackerman: Something is wrong here... https://gist.github.com/mbprtpmnr/8460df2bbb080da5e003901d24539cbf 13:15:29
@mbprtpmnr:matrix.orgmbprtpmnr What I try....not working... :( Even with nixops v2... 13:15:58
@linus.heckemann:matrix.mayflower.deLinux HackermanI don't know anything about flakes, I can't help you13:16:28

There are no newer messages yet.


Back to Room ListRoom Version: 6