!UUqahLbShAYkkrXmKs:matrix.org

DevOS

34 Members
Seeking help and geeking out together on https://github.com/divnix/devos & https://github.com/divnix/digga10 Servers

Load older messages


SenderMessageTime
28 Jul 2021
@blaggacao:matrix.orgDavid Arnold (blaggacao)
In reply to @kraftnix:matrix.org

Getting a bug with building iso's again â˜šī¸, the error is error: attribute 'our' missing and the target file is in one of my custom modules set in ./modules which uses lib.our, but i don't have any issues with bud rebuild or deploy.

EDIT: current easy workaround is to comment out imports = [ (digga.lib.importModules ./modules) ]; just to build to iso, although it means I won't be able to build anything that relies on my custom modules when I boot up the iso.

Are we talking about pkgs.lib.our as applied to all channels via https://github.com/divnix/devos/blob/8b67cae20a110f296abf91cdba94a3946b1ba647/flake.nix#L89-L96?
18:11:32
@blaggacao:matrix.orgDavid Arnold (blaggacao)
In reply to @kraftnix:matrix.org

Getting a bug with building iso's again â˜šī¸, the error is error: attribute 'our' missing and the target file is in one of my custom modules set in ./modules which uses lib.our, but i don't have any issues with bud rebuild or deploy.

EDIT: current easy workaround is to comment out imports = [ (digga.lib.importModules ./modules) ]; just to build to iso, although it means I won't be able to build anything that relies on my custom modules when I boot up the iso.

* Are we talking about pkgs.lib.our as (eventually) applied to all channels via https://github.com/divnix/devos/blob/8b67cae20a110f296abf91cdba94a3946b1ba647/flake.nix#L89-L96?
18:11:42
@blaggacao:matrix.orgDavid Arnold (blaggacao)
In reply to @b12f:pub.solar
Not sure if this is an anti pattern that we should strive to resolve sooner rather than later
I don't think that causes any issues.
18:12:08
@blaggacao:matrix.orgDavid Arnold (blaggacao)
In reply to @teutat3s:pub.solar

Which we enable here

https://git.b12f.io/pub-solar/os/src/branch/teutat3s-develop/modules/terminal-life/nvim/default.nix#L44

Have you put some traces here and there to confirm what pkgs is passed around? I can't infer the error from the few bits of code that I had a chance to look at.
18:12:59
@blaggacao:matrix.orgDavid Arnold (blaggacao)

I started using my lib like so: self.lib = import ./lib.nix; which has { pkgs, inputs }: and then I do:

{ suites, profiles, hardware, self, pkgs, inputs, ... }:

...
chromiumKioskLauncher = (self.lib { inherit pkgs inputs; }).chromiumKioskLauncher;
18:17:19
@blaggacao:matrix.orgDavid Arnold (blaggacao) self and inputs are as of recently passed as _module.args by default. 18:17:49
@blaggacao:matrix.orgDavid Arnold (blaggacao) I kind of prefer to work with more namespaces than just pkgs, since it quickly gets really confusing, indeed. 18:18:55
@timdeh:matrix.org@timdeh:matrix.orgTIL about: https://github.com/xxh/xxh and I think this could be improved/augmented with the help of nix-shell18:32:46
@timdeh:matrix.org@timdeh:matrix.orgmight make a nice profile 😉18:33:33
@timdeh:matrix.org@timdeh:matrix.orgSo I just built a package for it and nix seems to screw it up â˜šī¸19:04:20
@timdeh:matrix.org@timdeh:matrix.orgPerhaps better solution would be: https://github.com/danrabinowitz/sshrc19:16:17
@timdeh:matrix.org@timdeh:matrix.orgthen you could just invoke a nix shell from there 😃19:16:27
@kraftnix:matrix.org@kraftnix:matrix.org
In reply to @blaggacao:matrix.org
Are we talking about pkgs.lib.our as (eventually) applied to all channels via https://github.com/divnix/devos/blob/8b67cae20a110f296abf91cdba94a3946b1ba647/flake.nix#L89-L96?

so in my custom module I changed it to pks.lib.our and now it builds fine, thanks. it had worked previously just using the lib rather than pkgs.lib and had no issues until now.

i also noticed a change in the iso, there is no longer a custom /iso/devos folder, so i looked for the source with fd devos /, however if I run nix develop in it like I would have before with /iso/devos, it pulls down a lot of things from the binaries rather than running straight away like before. is this something on my end? I haven't tried building an iso with bud build vm iso since moving over to it from flk.

19:52:27
@blaggacao:matrix.orgDavid Arnold (blaggacao)

so in my custom module I changed it to pks.lib.our and now it builds fine, thanks. it had worked previously just using the lib rather than pkgs.lib and had no issues until now.

Interesting! Let me check.

19:53:35
@blaggacao:matrix.orgDavid Arnold (blaggacao)

bud build vm iso

bud build vm boostrapIso 😄

19:54:24
@blaggacao:matrix.orgDavid Arnold (blaggacao) *

bud build vm iso

bud build bootstrapIso 😄

19:54:36
@kraftnix:matrix.org@kraftnix:matrix.orgahhh :) perhaps we should add that to the docs 19:54:36
@kraftnix:matrix.org@kraftnix:matrix.orgoh can I not specify a host config?19:54:53
@blaggacao:matrix.orgDavid Arnold (blaggacao) of course, sorry: bud build <host> bootstrapIso 19:55:34
@blaggacao:matrix.orgDavid Arnold (blaggacao) all other builds provided by nixos-generators work, too. 19:56:11
@blaggacao:matrix.orgDavid Arnold (blaggacao) So maybe iso is a build that comes from there. 19:56:21
@blaggacao:matrix.orgDavid Arnold (blaggacao) THe idea is that we have an interest, channel and community to improve the image situation with nixpkgs 19:56:40
@blaggacao:matrix.orgDavid Arnold (blaggacao) * The idea is that we have an interest, channel and community to improve the image situation with nixpkgs 19:56:47
@kraftnix:matrix.org@kraftnix:matrix.org
In reply to @blaggacao:matrix.org
of course, sorry: bud build <host> bootstrapIso
no dice on this one
19:57:13
@blaggacao:matrix.orgDavid Arnold (blaggacao) Docs-wise, there is still some way to go. I have overhauling the devos docs on my todo list, but also for digga, some things are missing. I was kind of waitin to see how the upstream fup library docs goe. 19:58:12
@blaggacao:matrix.orgDavid Arnold (blaggacao) * Docs-wise, there is still some way to go. I have overhauling the devos docs on my todo list, but also for digga, some things are missing. I was kind of waitin to see how the upstream fup library docs go. 19:58:17
@blaggacao:matrix.orgDavid Arnold (blaggacao) * Docs-wise, there is still some way to go. I have overhauling the devos docs on my todo list, but also for digga, some things are missing. I was kind of waiting to see how the upstream fup library docs go. 19:58:23
@kraftnix:matrix.org@kraftnix:matrix.org
In reply to @blaggacao:matrix.org
of course, sorry: bud build <host> bootstrapIso
*

no dice on this one

does not provide attribute 'packages.x86_64-linux.nixosConfigurations."server-vm-iso".config.system.build.bootstrapIso', 'legacyPackages.x86_64-linux.nixosConfigurations."server-vm-iso".config.system.build.bootstrapIso' or 'nixosConfigurations."server-vm-iso".config.system.build.bootstrapIso'
19:58:48
@blaggacao:matrix.orgDavid Arnold (blaggacao)Those "new" digga amentites are optin: https://github.com/divnix/devos/blob/8b67cae20a110f296abf91cdba94a3946b1ba647/flake.nix#L10519:59:54
@blaggacao:matrix.orgDavid Arnold (blaggacao) * Those "new" digga amentites are opt-in: https://github.com/divnix/devos/blob/8b67cae20a110f296abf91cdba94a3946b1ba647/flake.nix#L10520:00:01

There are no newer messages yet.


Back to Room ListRoom Version: 6