#nixos thread real

1 messages · Page 1 of 1 (latest)

sleek isle
#

nix

high imp
#

os

sleek isle
#

here

#

for you and the other guy

#

so ur not fightin chat

high imp
#

vsummon @dusty juniper

dusty juniper
#

where

sleek isle
#

hi

#

easier to talk here cuz chat go brrr tday

dusty juniper
#

my configuration.nix has been edited

high imp
#

now that it's in, save, exit, and sudo nixos-rebuild switch

dusty juniper
#

nix...

#
error:
       … while evaluating the attribute 'config'

         at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:322:9:

          321|         options = checked options;
          322|         config = checked (removeAttrs config [ "_module" ]);
             |         ^
          323|         _module = checked (config._module);

       … while calling the 'seq' builtin

         at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:322:18:

          321|         options = checked options;
          322|         config = checked (removeAttrs config [ "_module" ]);
             |                  ^
          323|         _module = checked (config._module);

       (stack trace truncated; use '--show-trace' to show the full trace)

       error: infinite recursion encountered

       at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:508:28:

          507|         builtins.addErrorContext (context name)
          508|           (args.${name} or config._module.args.${name})
             |                            ^
          509|       ) (lib.functionArgs f);
building Nix...
error:
       … while evaluating the attribute 'config'

         at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:322:9:

          321|         options = checked options;
          322|         config = checked (removeAttrs config [ "_module" ]);
             |         ^
          323|         _module = checked (config._module);

       … while calling the 'seq' builtin

         at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:322:18:

          321|         options = checked options;
          322|         config = checked (removeAttrs config [ "_module" ]);
             |                  ^
          323|         _module = checked (config._module);

       (stack trace truncated; use '--show-trace' to show the full trace)

       error: infinite recursion encountered

       at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:508:28:

          507|         builtins.addErrorContext (context name)
          508|           (args.${name} or config._module.args.${name})
             |                            ^
          509|       ) (lib.functionArgs f);
building the system configuration...
error:
       … while evaluating the attribute 'config.system.build.toplevel'

         at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:322:9:

          321|         options = checked options;
          322|         config = checked (removeAttrs config [ "_module" ]);
             |         ^
          323|         _module = checked (config._module);

       … while calling the 'seq' builtin

         at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:322:18:

          321|         options = checked options;
          322|         config = checked (removeAttrs config [ "_module" ]);
             |                  ^
          323|         _module = checked (config._module);

       (stack trace truncated; use '--show-trace' to show the full trace)

       error: infinite recursion encountered

       at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:508:28:

          507|         builtins.addErrorContext (context name)
          508|           (args.${name} or config._module.args.${name})
             |                            ^
          509|       ) (lib.functionArgs f);

high imp
#

what the fuck

dusty juniper
#

nix is the kinda operating system where you have to rebuild every time you change the configuration

high imp
#

yeah, but rebuilds are incremental

dusty juniper
#

if gentoo had to be rebuilt every time the config was changed then it would be time consuming

#

i was gonna do the full trace but its bigger than discord will allow

high imp
#

oh shit I know why

dusty juniper
#

why

high imp
#

replace pkgs with (import <nixpkgs> {}) in that snippet

dusty juniper
#

im too lazy just paste it in with the fix

high imp
#

on phine rn

dusty juniper
#

can you tell me if this is right (I dont have image perms so I send in dms)

high imp
#

phone

dusty juniper
#

can u tell me if this is right (i dont have image perms so i send in dm

dusty juniper
high imp
#

welcome to the funny number factory

dusty juniper
#

but first how to switch to my tailscale ip

high imp
#

both of them coexist

#

regular internet sees your regular IP, I see your tailscale ip

dusty juniper
#

ok

#

you wanna ssh into my pc

high imp
#

is your pc down? PING plantgaming.axolotl-snake.ts.net (100.85.250.37) 56(84) bytes of data

dusty juniper
#

and help me with mc launcher being broken

#

because prism launcher isnt updated yet but official launcher is but its package is broken

dusty juniper
#

anyways wanna welcome my cachyos laptop to the funny number factory so you can see number go up

#

(it uses arch package system btw)

high imp
#

try rebooting

dusty juniper
#

what where who when why

high imp
#

your device isn't acting networked but shows as connected

dusty juniper
#

ok

#

first you wanna welcome my cachyos laptop to the funny number factory

high imp
#

yeah, should be just sudo pacman -Syu tailscale

dusty juniper
#

hold on its doing some stuff because upgrading linux-firmware

#

ok its done now what to do

#

queston mark

#

is it already connected as part of my desktop being in the funny number factory and my laptop being connected to the same wifi as my desktop

#

hello

#

do you exust

#

@high imp do you exist

high imp
dusty juniper
high imp
#

alright

#

(cat tax)

dusty juniper
#

what a cute car🚙

echo flare
#

ew this nix os thing sucks .

high imp
spare quiver
#

Hiiii chat

high imp
#

bye

#

(/j, hi)

dusty juniper
#

hi

uncut bramble
spare quiver
high imp
#

@wet mist

wet mist
#

wow this exists

#

Noone ever uses it

high imp
#

yep

#

googling “quicknix” brings up mosquito treatments

wet mist
high imp
wet mist
#

Attempt 2

// List packages in a nix shell
def "qnix ls" [] {
    $env.PATH
    | filter {|it| $it starts-with '/nix/store' }
    | parse --regex '[a-z0-9]{32}-(?<package>.*)-(?<version>.*)/'
}
high imp
#

what shell is that?

wet mist
#

Replace // with #

high imp
#

nushell?

wet mist
high imp
#

this is what I have

#

nushell seems nice for scripting

wet mist
high imp
wet mist
#

It supports data structures

#

It looks like a normalish programming language

high imp
#

someone wanted me to write an entire package manager in bash
cough cough @wheat moon

uncut bramble
#

I'd argue bash is sane but I can def see why ppl like nu for scripting

uncut bramble
#

ngl nu might be better for scripting than being an actual shell sillycat

#

I should try to use it instead of bash next time I need to make something

high imp
#

ooh it has a fancy prompt out of the box

#

seems powershell-like?

#

written in rust I think

uncut bramble
#

it is and that's one of the reasons ppl shill it now apparently

#

great error handling cuz it basically uses the rust error handler

wet mist
high imp
wet mist
uncut bramble
wet mist
high imp
#

now I need to make a nix wrapper

wet mist
high imp
#

ruby influence

wet mist
high imp
#

how tf do I define a variable

wet mist
wet mist
#

They took the rust approach and made let read only though, for mutable stuff mut x = 5

high imp
#

i love that this is just something it randomly decides to do

uncut bramble
#

superset of JSON as a language

#

so scuffed

wet mist
high imp
#

already broke it

wet mist
#

Try putting an ansi strip between cal and ANSI gradient

wet mist
#

This already turned into a nushell thread amazing

uncut bramble
#

so good

high imp
#

oh there's no job management

wet mist
#

They might add it sometime, there are some ways to parallelize but they're not really the same

#

Nushell is still a beta

wheat moon
#

nixos thread real!?!?!?!?!?

uncut bramble
high imp
spare quiver
#

@sleek isle you'll never escape

high imp
#

something is wrong with this image

spare quiver
high imp
#

i've been doing java homework for a good part of the day

spare quiver
high imp
#

records terminals

spare quiver
high imp
spare quiver
#

you have a terminal on a chromebook

#

but not obs

high imp
spare quiver
#

horror

high imp
spare quiver
#

even a cheap laptop is better than a chromebook

high imp
#

this is a school chromebook

high imp
spare quiver
uncut bramble
#

I kinda wanna give a shot at making that in rust some day

wet mist
#

it's just a bash script on current nixOS right

high imp
#

i don't really use it

#

cap nixos b --show-trace to test if things compile

wet mist
high imp
#

when I'm sure, sudo nixos use result

high imp
#

and building and switching are separate steps

wet mist
high imp
high imp