#nixos thread real
1 messages · Page 1 of 1 (latest)
os
vsummon @dusty juniper
where
my configuration.nix has been edited
now that it's in, save, exit, and sudo nixos-rebuild switch
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);
what the fuck
nix is the kinda operating system where you have to rebuild every time you change the configuration
yeah, but rebuilds are incremental
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
oh shit I know why
why
replace pkgs with (import <nixpkgs> {}) in that snippet
💀
im too lazy just paste it in with the fix
on phine rn
what is a phine
can you tell me if this is right (I dont have image perms so I send in dms)
can u tell me if this is right (i dont have image perms so i send in dm
you wanna ssh into my computer
but first how to switch to my tailscale ip
is your pc down? PING plantgaming.axolotl-snake.ts.net (100.85.250.37) 56(84) bytes of data
and help me with mc launcher being broken
because prism launcher isnt updated yet but official launcher is but its package is broken
my pc is up
anyways wanna welcome my cachyos laptop to the funny number factory so you can see number go up
(it uses arch package system btw)
try rebooting
what where who when why
your device isn't acting networked but shows as connected
yeah, should be just sudo pacman -Syu tailscale
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
no, not yet
yes, but cat also exists
ok help me transport my laptop into the funny number factory
what a cute car🚙
ew this nix os thing sucks .
prove it
Hiiii chat
hi


@wet mist
????
leading #
lmao
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>.*)/'
}
what shell is that?
Replace // with #
nushell?
nushell
automod bypass... /j
this is what I have
nushell seems nice for scripting
Yeah it's an actually sane scripting lang unlike bash
bash is pretty sane
someone wanted me to write an entire package manager in bash
cough cough @wheat moon
I'd argue bash is sane but I can def see why ppl like nu for scripting
Yeah it's good
https://codeberg.org/KSPAtlas/nufetch/src/branch/main/nufetch.nu a nu fetch script I made for example
ngl nu might be better for scripting than being an actual shell 
I should try to use it instead of bash next time I need to make something
ooh it has a fancy prompt out of the box
seems powershell-like?
written in rust I think
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
Ye it is
looks like ariadne imo
You can write plugins in rust apparently
might be
Might be
now I need to make a nix wrapper
But better
ruby influence
The only feature I feel nushell repl is really missing is the !* shortcut from bash for taking all the arguments from the previous command
how tf do I define a variable
Inspired by functional programming apparently
let name = 'value'
They took the rust approach and made let read only though, for mutable stuff mut x = 5
i love that this is just something it randomly decides to do
Yeah idk what the advantage is, NUON exists and they use that for config stuff anyways
already broke it
That's your terminal fucking up I think idk
Try putting an ansi strip between cal and ANSI gradient
that fixed it
Yeah I'm guessing the ANSI chars from cal and gradient were conflicting
This already turned into a nushell thread amazing
so good
oh there's no job management
Unfortunately
They might add it sometime, there are some ways to parallelize but they're not really the same
Nushell is still a beta
nixos thread real!?!?!?!?!?

yes and elh (gentoo user) hates it
@sleek isle you'll never escape
something is wrong with this image
openvpn.nix:
it was originally named openvpn.java
i've been doing java homework for a good part of the day
what even is that site
OBS (Open Broadcaster Software) is free and open source software for video recording and live streaming. Stream to Twitch, YouTube and many other providers or record your own videos with high quality H264 / AAC encoding.
chromebook
vscode web
horror
even a cheap laptop is better than a chromebook
my cheap laptop is upstairs and broken
this is a school chromebook
you should make an account on http://192.168.1.4:8082
the patch id is dnsmasq
mfw local ip
nixos-rebuild-ng: init by thiagokokada · Pull Request #354029 · NixOS/nixpkgs · GitHub. Hello folks 👋. I am here to collect earlier feedback about the PR above, a Work-in-Progress rewrite of nixos-rebuild in Python. The objective is to eventually it become a drop-in replacement, but first I want to know if this is something people thinks it is...
I kinda wanna give a shot at making that in rust some day
Interesting
it's just a bash script on current nixOS right
yep
i don't really use it
cap nixos b --show-trace to test if things compile
What do you do when you wanna rebuild the system then
when I'm sure, sudo nixos use result
my nixos wrapper script
and building and switching are separate steps
Ah I use a "wrapper" for my nixos rebuild too
it's effectively just nix build .#some.fancy.path and sudo result/activate
til that the latter exists
it does