| 20 Sep 2021 |
ryantm | I got us temporarily unstuck by pinning an old nixpkgs for nixops: https://github.com/nix-community/infra/pull/123 | 16:59:02 |
| Emelie left the room. | 20:18:23 |
| 21 Sep 2021 |
| nrdxp joined the room. | 14:48:20 |
CRTified | Is 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 it | 22:37:11 |
CRTified | (Just curious whether there is a solution for something like this) | 22:37:50 |
tomberek | https://nixos.wiki/wiki/Hail ? | 22:43:01 |
CRTified | 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 | Well. It looks defunct. | 22:46:43 |
tomberek | I don’t know what happened to it. | 22:46:59 |
CRTified | Yeah, the GH repo is also gone :( | 22:48:28 |
tomberek | For your use case you can almost cronJob-gitPull-nixosRebuild? Sprinkle in a little nixCopy and it’s pretty close. | 22:48:31 |
CRTified | Almost, yes | 22:49:04 |
| 22 Sep 2021 |
mbprtpmnr | 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 |
Linux Hackerman | idk, haven't used nixops with flakes. Try it I guess. | 10:40:10 |
Linux Hackerman | I don't see any reason why not though. | 10:40:15 |
mbprtpmnr | Hmm... With nixops 1.7 ...I think is not working, now I try an shell with nixops 2... | 10:41:21 |
mbprtpmnr | Because I set `deployment.tarrgetHost = "..."; ` inside flake.nix | 10:42:04 |
mbprtpmnr | * Because I set `deployment.targetHost = "..."; ` inside flake.nix | 10:42:22 |
mbprtpmnr | I really need that, is annoying to ssh every time and do rebuild swith... | 10:44:04 |
Linux Hackerman | oh, nixops 1.7 doesn't do flakes. | 10:44:17 |
Linux Hackerman | you can set deployment.targetHost in the host config too though, it doesn't have to be in a central file | 10:44:37 |
mbprtpmnr | I know, but all my services is splited and imported as modules inside flake.nix... So... | 10:45:42 |
mbprtpmnr | Idk what to do... | 10:46:05 |
mbprtpmnr | And I ran `nixops create ./flake.nix -d nixos-server`... | 10:47:53 |
eyJhb | 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 | * And I ran nixops create ./flake.nix -d nixos-server... | 13:09:14 |
mbprtpmnr | * Because I set deployment.targetHost = "..."; inside flake.nix | 13:09:26 |
mbprtpmnr | Linux Hackerman: Something is wrong here... https://gist.github.com/mbprtpmnr/8460df2bbb080da5e003901d24539cbf | 13:15:29 |
mbprtpmnr | What I try....not working... :( Even with nixops v2... | 13:15:58 |
Linux Hackerman | I don't know anything about flakes, I can't help you | 13:16:28 |