| 11 Aug 2024 |
matthewcroughan | * [root@t480:~]# nixos-enter
chroot: failed to run command ‘/nix/var/nix/profiles/system/activate’: No such file or directory
chroot: failed to run command ‘/nix/var/nix/profiles/system/sw/bin/bash’: No such file or directory
| 19:47:01 |
matthewcroughan | Ah, nixos-enter doesn't work unless there's a profile there first | 19:47:51 |
| blimbus joined the room. | 23:19:36 |
| 12 Aug 2024 |
@brian:bmcgee.ie | Is there a way of running disko in a vm test? I'm trying it with just disko --mode disko ... but it's reaching out to the internet and failing | 14:36:14 |
@brian:bmcgee.ie | I'll have a play around with diskoLib.testLib.makeDiskoTest | 14:37:53 |
@brian:bmcgee.ie | Yeah, Disko's testLib was the way to go. Had to import it a bit differently due to the impure <nixpkgs> defaults for some of it's args, but no biggy. | 16:00:17 |
matthewcroughan | BMG: if you have imported Disko into a nixosConfiguration, then a VM Test is already present for that in system.build.toplevel.installTest | 16:02:13 |
@brian:bmcgee.ie | In reply to @matthewcroughan:defenestrate.it BMG: if you have imported Disko into a nixosConfiguration, then a VM Test is already present for that in system.build.toplevel.installTest Good to know. makeDiskoTest is a better fit for use case in this instance https://github.com/numtide/nixos-facter/pull/73 | 16:05:12 |