!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) I also tried to make that fact a little more discoverable in this gotcha 13:50:24
@blaggacao:matrix.orgDavid Arnold (blaggacao) However, non-portable home confiurations, that is per-host home configurations take pkgs as definied by their respective host, and therefore use that hosts' channel, which might be different from the default channel 13:52:16
@blaggacao:matrix.orgDavid Arnold (blaggacao)(which makes sense for very host-specific home-configurations)13:52:46
@blaggacao:matrix.orgDavid Arnold (blaggacao) I think to get to the root of the problem that you described, the next step would be to identify which channel is used for your home configuration in your specific case (portable or non-portable home configuration) and then check if that channel has the overlays that you expect, including overlays/override.nix 13:56:37
@blaggacao:matrix.orgDavid Arnold (blaggacao) I clarified the docs. Thanks for bringing this question up teutat3s 👍️ 14:03:45
@blaggacao:matrix.orgDavid Arnold (blaggacao) I'll be starting to work on integrating deploy-rs into divnix/bud as a replacement for those somewhat brittle nixos-rebuild* commands. 14:08:41
@teutat3s:pub.solar@teutat3s:pub.solar Thanks David Arnold for the detailed explanations, what's the best way to identify which channel is used?
I think our setup is still non-portable, because we didn't integrate the latest changes like https://github.com/divnix/devos/commit/4b9cab40cb1c5d7989c2e3719d743e764128ac2a#diff-206b9ce276ab5971a2489d75eb1b12999d4bf3843b7988cbe8d687cfde61dea0 for our users yet
14:15:01
@teutat3s:pub.solar@teutat3s:pub.solarhttps://git.b12f.io/pub-solar/os/src/branch/teutat3s-develop/flake.nix#L13114:16:52
@blaggacao:matrix.orgDavid Arnold (blaggacao) teutat3s: At the example of devos, we can see what overlays are applied to the nixos channel and what overlays are applied to all channels 14:17:12
@blaggacao:matrix.orgDavid Arnold (blaggacao)
In reply to @teutat3s:pub.solar
https://git.b12f.io/pub-solar/os/src/branch/teutat3s-develop/flake.nix#L131
teutat3s: I had a quick look, but I couldn't find where you are actually accessing pkgs.neovim-unwrapped for any config...
14:23:37
@kraftnix:matrix.org@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, but i don't have any issues with bud rebuild or deploy. 15:41:12
@kraftnix:matrix.org@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. 15:41:48
@kraftnix:matrix.org@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.

15:48:16
@teutat3s:pub.solar@teutat3s:pub.solarDavid Arnold: thanks, it’s the default pkg for that home manager neovim option Ii mentioned earlier17:48:53
@teutat3s:pub.solar@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

17:50:27
@b12f:pub.solarb12f

Which we enable here

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

We're not following the clean separation between home-manager modules and nixos modules, since some modules set on options from both, and we haven't rewritten to comply with devos standards there.

17:56:11
@b12f:pub.solarb12fNot sure if this is an anti pattern that we should strive to resolve sooner rather than later17:56:30
@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

Show newer messages


Back to Room ListRoom Version: 6