!UUqahLbShAYkkrXmKs:matrix.org

DevOS

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

Load older messages


SenderMessageTime
12 Aug 2021
@blaggacao:matrix.orgDavid Arnold (blaggacao)well, let's at least appreciate the warning that goes with bud: https://github.com/divnix/bud21:23:44
@blaggacao:matrix.orgDavid Arnold (blaggacao)but past that you could make yourselve a cosy shell like this one: https://github.com/divnix/devos/tree/main/shell21:25:00
@blaggacao:matrix.orgDavid Arnold (blaggacao) It features the bud buddy: https://github.com/divnix/devos/blob/5b89e53e7a39c603bed327023c953d0b30433ec2/shell/default.nix#L3-L5 21:25:41
@blaggacao:matrix.orgDavid Arnold (blaggacao)which has to be pulled in of course: https://github.com/divnix/devos/blob/5b89e53e7a39c603bed327023c953d0b30433ec2/flake.nix#L18-L2021:26:19
@d4hines:matrix.orgd4hines David Arnold (blaggacao): are you talking about my issue of how do I deploy my home-manager config still, or a different topic? 21:26:38
@blaggacao:matrix.orgDavid Arnold (blaggacao)yes, bud has a convenience script for it21:26:56
@blaggacao:matrix.orgDavid Arnold (blaggacao)(but it's also a trick question, beware 😂)21:27:25
@ultranix:matrix.orgultranixsigh, makes no sense21:27:48
@blaggacao:matrix.orgDavid Arnold (blaggacao) * yes, bud has a convenience script for it -- https://github.com/divnix/bud/blob/main/scripts/hm-home.bash21:27:49
@d4hines:matrix.orgd4hines I don't understand. home-manager has a command switch that does the thing. So I just need to invoke it in the right context. I'm looking for a one-line shell command. 21:28:06
@ultranix:matrix.orgultranixive spend many attempts on upgrading and using the digga format but to no avail. i'll have to try from scratch without my commits i guess21:28:42
@timdeh:matrix.org@timdeh:matrix.orgguess we have to do a better job with the docs? digga.divnix.com21:29:16
@ultranix:matrix.orgultranixi am trying to upgrade it from when it was called nixflk21:29:37
@blaggacao:matrix.orgDavid Arnold (blaggacao)
In reply to @d4hines:matrix.org
I don't understand. home-manager has a command switch that does the thing. So I just need to invoke it in the right context. I'm looking for a one-line shell command.
the realization of the portable config hasn't made it upstream yet, though.
21:29:45
@kraftnix:matrix.org@kraftnix:matrix.orgoh wow thats a big upgrade21:29:57
@ultranix:matrix.orgultranixor suites actually, shortly after suites were used 21:30:11
@d4hines:matrix.orgd4hines

What was I doing here then?

nix run github:nix-community/home-manager --no-write-lock-file -- switch --flake .#d4hines

?

21:30:17
@blaggacao:matrix.orgDavid Arnold (blaggacao) d4hines: that means it doas not natively understand (yet): "$FLAKEROOT#homeConfigurationsPortable.$ARCH.\"$USER\".activationPackag 21:30:35
@blaggacao:matrix.orgDavid Arnold (blaggacao) * d4hines: that means it doas not natively understand (yet): "$FLAKEROOT#homeConfigurationsPortable.$ARCH.\"$USER\".activationPackage 21:30:41
@blaggacao:matrix.orgDavid Arnold (blaggacao)there is an upstream issue with discussions, one sec...21:31:29
@blaggacao:matrix.orgDavid Arnold (blaggacao)https://github.com/nix-community/home-manager/issues/216121:32:03
@ultranix:matrix.orgultranix kraftnix: taking a break, will check again tonight. thank you for the help so far 21:32:42
@blaggacao:matrix.orgDavid Arnold (blaggacao)
In reply to @ultranix:matrix.org
kraftnix: taking a break, will check again tonight. thank you for the help so far
I'm also running hot with a nix ssh issue I have 😂
21:33:38
@d4hines:matrix.orgd4hines

If we can unwind the stack a bit:

  • I'm trying to get the simplest setup that has flakes + home-manager + zsh enabled (if possible 😆 - I'm very close to giving up on zsh with home-manager and just manually installing it in Arch).
  • nrdxp 's suggestion was an overlay to fix the home-manager/nix-pkgs incompatibility.
  • I implemented it here: https://github.com/d4hines/beth/blob/46ba9712110e164d4fe963d525511ce0d9bc86d3/flake.nix#L11-L17, but it doesn't work. I'm a total Nix noob so I probably did something wrong.
  • David Arnold (blaggacao) suggested I use digga as an easier way to consume overlays.
  • I wanted to try it out, but deploying a digga.mkFlake on my system seems to be aspirational right now.

I feel like there's something dead easy I could do to fix this. Any ideas what that would be? I'm not sure using Digga is it yet.

21:37:51
@timdeh:matrix.org@timdeh:matrix.orglet me pull your flake and see if I can find the issue21:39:02
@kraftnix:matrix.org@kraftnix:matrix.org
In reply to @ultranix:matrix.org
kraftnix: taking a break, will check again tonight. thank you for the help so far

Ok, it's 100% an emacs issue, I spliced down your profile until and simply adding/removing user.profiles.emacs from your user makes the issue appear/disappear.

i don't use emacs, or understand how their overlay works but that's your current issue.

if you haven't heard about bud before I highly recommend checking it out, specifically how it helped me quickly find your issue was doing

bud repl
 nix-repl> Flake.nixosConfigurations.arrakis.config.system.path
error: The option `home-manager.users.tgunnoe.inputs' does not exist. Definition values:
       - In `/nix/store/493yp6hb6mc186mgi2h2m9kddq5dwk3y-source/users/tgunnoe': { }
«derivation
# comment out your emacs profile
nix-repl> :r
Loading '/nix/store/q35fmyf6l8d5gc7khgmpqzj84q6l6wlj-repl.nix'...
Added 4 variables.

nix-repl> Flake.nixosConfigurations.arrakis.config.system.path
«derivation /nix/store/0xg5n34l73p7h03wsi5ixl7ijlpm1j6h-system-path.drv»

allows for very quick debugging

21:39:08
@kraftnix:matrix.org@kraftnix:matrix.org honestly bud repl is da shit 👍️ David Arnold (blaggacao) 21:40:17
@timdeh:matrix.org@timdeh:matrix.orgYeah, I tried to lure some emacers into the DevOS community at some point a few months back, because the Emacs user story isn't really great in general, even on NixOS proper.21:40:24
@timdeh:matrix.org@timdeh:matrix.orgI tried to help, but since I don't use it personally, it's a bit hard to find the time.21:40:48
@blaggacao:matrix.orgDavid Arnold (blaggacao)
In reply to @d4hines:matrix.org

If we can unwind the stack a bit:

  • I'm trying to get the simplest setup that has flakes + home-manager + zsh enabled (if possible 😆 - I'm very close to giving up on zsh with home-manager and just manually installing it in Arch).
  • nrdxp 's suggestion was an overlay to fix the home-manager/nix-pkgs incompatibility.
  • I implemented it here: https://github.com/d4hines/beth/blob/46ba9712110e164d4fe963d525511ce0d9bc86d3/flake.nix#L11-L17, but it doesn't work. I'm a total Nix noob so I probably did something wrong.
  • David Arnold (blaggacao) suggested I use digga as an easier way to consume overlays.
  • I wanted to try it out, but deploying a digga.mkFlake on my system seems to be aspirational right now.

I feel like there's something dead easy I could do to fix this. Any ideas what that would be? I'm not sure using Digga is it yet.

upfront investment is a bit more involved, but tailing compound interests are considerable 🐿️
21:40:48

Show newer messages


Back to Room ListRoom Version: 6