<energizer>
i notice a lot of tasks that need to be done once when switching to config are done with a service. why is that?
AFKRozy has joined #nixos
philr_ has joined #nixos
<nh2>
I'm trying to install a server. `nixos-install` runs through but on reboot I get dropped into the grub rescue shell and `ls /` shows nix/, etc/ and so on, but `ls /boot` is empty. Anyone ever seen that?
drakonis_ has quit [Read error: Connection reset by peer]
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JfJrs
ok2` has quit [Ping timeout: 250 seconds]
<kazimazi>
Hi. I have a little problem with some vim plugins and would appriciate some help. I installed vim and declaratively and want to use coc.nvim and some other extensions such as coc-json. Coc works perfectly, but coc-json doesn't. In fact non of the coc-* vimplugins work (that I tested at least).
<tom43422>
I have three NixOS servers (managed via NixOps): two HTTP servers A, B, and a monitoring server M. M monitors the vhosts on A and B. Currently M knows which vhosts to monitor because I hard code them in M's nix config. Ideally M would be able to learn about the vhosts on A and B by accessing the services.nginx.virtualHosts . What's a good way to do this?
<simpson>
tom43422: When I last did this, I had my nixops configuration include a list of HTTP servers. This was also useful because I could map over that same list to build the HTTP servers themselves, not just the monitoring configuration.
<{^_^}>
[nixpkgs] @das-g opened pull request #85475 → lektor: make available as application → https://git.io/JfJK8
<tom43422>
simpson: Mmm. Where do you store the nginx config associated with each vhost? ( { serverName = ...; enableACME = ...; } )
<tom43422>
I figure any solution that involves pulling per-machine config into the nixops config ultimately breaks modularity.
smatting_ has joined #nixos
iyzsong has joined #nixos
<simpson>
tom43422: Ultimately, I ended up building a small chunk of JSON which maps each machine to a description-object, and loaded that JSON. I also happened to be in a situation where I was instantiating lots of servers with relatively uniform configuration.
<tom43422>
Ah I see. So there's wasn't much per-machine config anyway. Yeah, uniformity is a great help for this sort of stuff.
<tom43422>
I think something akin to NixOS modules in Nix (and thus available in NixOps, or any other layer for dealing with multiple machines) would solve this, but I don't know what that'd look like.
<tom43422>
I suppose Guix could do this, because it's just plain old scheme.
<gchristensen>
tom43422: machines in a nixops network can look at other machines' configs
<tom43422>
As a compromise, and it's not very Nix-y, but it preserves modularity: A and B could define a Nix attribute which contains a list of hosts that should be monitored. M would import that value.
pbogdan has quit [Ping timeout: 260 seconds]
<tom43422>
gchristensen: Oh, great. So I can just iterate over each machine's services.nginx.virtualHosts?
bqv has quit [Read error: Connection reset by peer]
bkv has joined #nixos
sigmundv__ has quit [Read error: Connection reset by peer]
sigmundv__ has joined #nixos
gustavderdrache has quit [Quit: Leaving.]
slack1256 has joined #nixos
proofofkeags has quit [Remote host closed the connection]
<qy[m]1>
can i gc only derivers?
penguwin has quit [Quit: NO CARRIER]
penguwin has joined #nixos
chr1sm has joined #nixos
proofofkeags has joined #nixos
proofofkeags has quit [Remote host closed the connection]
proofofkeags has joined #nixos
<pie_[bnc]>
Ericson2314: I saw you cmmenting on a HN bors thread, dunno how much you know about the space; do you know if there something I could set up a local copy of to do something similar? ideally with something I can set up with a plain git repository and taking merges from a staging branch or something, but im also open to stuff like gitlab I guess
<pie_[bnc]>
I want to be able to run and prototype stuff locally
<pie_[bnc]>
I.e. I think bors is tied to github?
codygman has quit [Ping timeout: 265 seconds]
<{^_^}>
[nix-pills] @mhwombat opened pull request #136 → show new output for :b → https://git.io/JfJ6i
codygman has joined #nixos
nuncanada has quit [Quit: Leaving]
spacefrogg has quit [Quit: Gone.]
aw has quit [Quit: Quitting.]
das_j has quit [Quit: killed]
ajs124 has quit [Quit: killed]
Scriptkiddi has quit [Quit: killed]
mrpi has quit [Quit: killed]
aw has joined #nixos
spacefrogg has joined #nixos
ajs124 has joined #nixos
das_j has joined #nixos
Scriptkiddi has joined #nixos
mrpi has joined #nixos
morgrimm has quit [Ping timeout: 256 seconds]
ashkitten has quit [Quit: WeeChat 2.8]
morgrimm has joined #nixos
ashkitten has joined #nixos
peelz has quit [Remote host closed the connection]
<pie_[bnc]>
can nix-shell directly take a tarball url?
pamplemousse has quit [Ping timeout: 256 seconds]
morgrimm has quit [Ping timeout: 260 seconds]
<pie_[bnc]>
ok yes yes it can
<pie_[bnc]>
hm
waleee-cl has quit [Quit: Connection closed for inactivity]
<aleph->
Question for those who use the nginx-sso module with the nginx service. How does it work with web apps? Will it forward the login to the web app so I don't have to log in again? Was looking to just try it out using basic auth
ericsagnes has joined #nixos
<{^_^}>
[nixpkgs] @Ericson2314 pushed 31 commits to staging: https://git.io/JfJiD
<{^_^}>
[nixpkgs] @petabyteboy pushed commit from @eadwu to master « manual/rl-2009.xml: fix build (#85478) »: https://git.io/JfJPr
kleisli_ has joined #nixos
Ralith_ has quit [Ping timeout: 260 seconds]
Ralith_ has joined #nixos
kleisli__ has quit [Ping timeout: 265 seconds]
Naptra has joined #nixos
asheshambasta has joined #nixos
h0m1 has quit [Quit: WeeChat 2.8]
rooke has quit [Quit: ZNC 1.6.5+deb1+deb9u2 - http://znc.in]
h0m1 has joined #nixos
palo1 has joined #nixos
rooke has joined #nixos
palo has quit [Ping timeout: 256 seconds]
palo1 is now known as palo
morgrimm has joined #nixos
growpotkin has joined #nixos
morgrimm has quit [Ping timeout: 264 seconds]
linarcx has quit [Quit: WeeChat 2.8]
<jluttine>
how can i use `nix-build -A foobar` so that i'd do some overriding? so, i'd like to do `nix-build -A "foobar.override {someOption=true;}"` but this doesn't work (i didn't expect it to). so, what's the right way to do this?
rardiol has quit [Ping timeout: 264 seconds]
cosimone has joined #nixos
jrobeson has joined #nixos
slack1256 has quit [Remote host closed the connection]
<jakobrs>
Are the apt/ubuntu-style dependencies of Nix listed somewhere?
mallox has quit [Ping timeout: 260 seconds]
<jakobrs>
I figured I wanted to try compiling Nix from source without using Nix, and the dependencies are somewhat hard to figure out (since they've got different names)
mallox has joined #nixos
<{^_^}>
[nixpkgs] @lblasc opened pull request #85483 → luajit_2_0, luajit_2_1: bump to 2020-03-20, GC64 mode switch → https://git.io/JfJ1u
ATuin has joined #nixos
morgrimm has joined #nixos
<jakobrs>
This must be the least helpful error message ever:
<energizer>
is it possible to make a symlink to a target without the target getting copied into the store?
jbox has left #nixos ["WeeChat 2.8"]
<MichaelRaskin>
Yes, ln -s works during the builds and symlinks to the outside are not processed as references
dermetfan has quit [Quit: WeeChat 2.7.1]
dermetfan has joined #nixos
<energizer>
can i put a symlink in my ~ that way?
nixguest has joined #nixos
<nixguest>
Hello. Quick question for the experts: I can tell that under /nix, the store directory is mounted RO via bind. Is there a specific reason that only this subdirectory is mounted this way? Does /nix/var have to be writeable or is it okay for me to mount the entire /nix as RO and then disable the bind mount of /nix/store? I'm experimenting with a
<nixguest>
stateless server setup
<jakobrs>
I thing you're going to have problems if you try to mount /nix ro
<jakobrs>
unless you manually remount it rw before every nix operation
<nixguest>
That is my intention, I should have mentioned
sogatori has joined #nixos
<nixguest>
My idea is a separate partition for /nix, remounting rw when rebuilding
<jakobrs>
Why not just have /nix/store on a separate partition?
<nixguest>
So I guess my real question is: Is /nix ever written to *outside* of rebuilds?
<jakobrs>
/nix/var is pretty much just symlinks anyway
Izorkin has joined #nixos
<nixguest>
Hmm
<nixguest>
Mainly because I want as little as possible being writeable
<jakobrs>
/nix/var contains garbage roots, profiles, logs, and sockets, mostly
<nixguest>
Yeah, I was mostly worried about the logs
<jakobrs>
I think the logs are specifically build logs
<jakobrs>
I doubt it'll be a problem
<nixguest>
I tried remounting /nix on a running system, it went fine. But I'm not intimate enough with NixOS to be sure that it won't be needed as part of maintenance (cron/timers)
<nixguest>
Ah
<nixguest>
I conclude the entire /nix on a separate read-only partition is alright then, given that it is mounted rw upon rebuilds
cosimone has quit [Remote host closed the connection]
<jakobrs>
If you do `ls /nix/log/nix`, you'll see that there's only one folder, `drvs`
<jakobrs>
Which is probably logs from building derivations
<jakobrs>
but I can't guarantee anything
cosimone has joined #nixos
<nixguest>
Of course not :D
<nixguest>
Thank you for helping me, it was very useful
<jakobrs>
nixguest: Also, I believe Nix remounts /nix/store via a systemd unit called nix-store.mount,
<jakobrs>
You could try to modify that to remount your /nix instead
<nixguest>
I believe nix.readOnlyStore can that care of that
<jakobrs>
Yeah, but for remounting the entire /nix
<asheshambasta>
I'd like to fetch a repo from ghub and use its src (to traverse to subdirs), but using pkgs.fetchFromGitHub and using that value in a string as: "$src/foobar" gives me 'cannot coerce a function to a string
cosimone has quit [Remote host closed the connection]
Naptra has left #nixos ["Leaving"]
cosimone has joined #nixos
cosimone has quit [Client Quit]
emptyflag has quit [Remote host closed the connection]
<asheshambasta>
more like "${src}/foobar"
koleesch has joined #nixos
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
<jakobrs>
Why does nix-daemon want to mount /proc? can I disable this?
<{^_^}>
[nixpkgs] @das-g opened pull request #85487 → xkcdpass: make available as application → https://git.io/JfJDX
opthomasprime has joined #nixos
zaeph has joined #nixos
zoko has joined #nixos
alexherbo21 has joined #nixos
__monty__ has joined #nixos
alexherbo2 has quit [Ping timeout: 256 seconds]
alexherbo21 is now known as alexherbo2
<arstneio>
I want to modify the `LD_LIBRARY_PATH` of a `shell.nix` created by `cabal2nix --shell . > shell.nix`, where do I do that?
<das-g[m]>
Do you want to generate passphrases with the ease of `nix run nixpkgs.xkcdpass -c xkcdpass`? Then please review the one-line PR {^_^} just mentioned.
zoko has left #nixos ["Leaving"]
joehh1 has joined #nixos
<joehh1>
hello, is there any way to convert json files to nix? I know I can read them in, but I want to migrate my config from json to nix to make use of function calls etc and have many to convert
<das-g[m]>
Isn't valid JSON already valid nix?
<jakobrs>
It's not exactly what you're asking for, but lib.importJSON can be used to read JSON in Nix
<das-g[m]>
Or is the syntax just inspired by JSON
<jakobrs>
json is not valid nix:
<jakobrs>
> { "a": 3}
<{^_^}>
error: syntax error, unexpected ':', expecting '.' or '=', at (string):304:6
<joehh1>
thanks jakobrs, I was hoping then to be able to write the nix data structure out
Jackneill has quit [Read error: Connection reset by peer]
<lassulus>
ABCC
<lassulus>
C
<joehh1>
something like lib.writeNix "myfile.nix" (lib.importJSON "myfile.json")
<lassulus>
ACAC"}"B::"
<lassulus>
ACAC"}"B::"
<lassulus>
""
<das-g[m]>
um lassulus ... what are you trying to tell us?
<lassulus>
CAAA
<lassulus>
|\\
<lassulus>
\
<lassulus>
||||||||||||\\?
<lassulus>
"::C>CCCCCCCCCCCCCCCC?
<lassulus>
"A
<lassulus>
"|}|"}
dermetfan has quit [Ping timeout: 246 seconds]
<lassulus>
|ups
<jakobrs>
Wrong window?
<lassulus>
I fell on the keyboard
<das-g[m]>
are you alright?
<lassulus>
yes :D
<das-g[m]>
:-)
opthomasprime has quit [Remote host closed the connection]
opthomasprime has joined #nixos
<lassulus>
but how did I generate those inputs? weird
<das-g[m]>
Dunno whether Matrix let my previous message go through unjumbled, thus:
<das-g[m]>
Do you want to generate passphrases with the ease of `nix run nixpkgs.xkcdpass -c xkcdpass`? Then please review the one-line PR #85487
<nixguest>
Can I somehow "feed" the input to an option of type "null or strings concatenated with "\n"" from a command? I'm trying to create a file in /etc by using environment.etc."myfile". I feel like I should be able to do something with nix, but I can't figure it out from reading about strings and derivations here https://nixos.org/nix/manual/
zupo has joined #nixos
justan0theruser has quit [Ping timeout: 265 seconds]
cr4y1 has joined #nixos
chagra_ has joined #nixos
reallymemorable has quit [Quit: reallymemorable]
kleisli_ has quit [Ping timeout: 240 seconds]
hoplaahei has joined #nixos
<infinisil>
nixguest: What commabd?
<infinisil>
command*
<nixguest>
Specifically nixos-generate-config
<hoplaahei>
hi. I'm making some scripts I need with writeShellScriptBin, but they are too long to clutter a let in my configuration.nix. How can I make a separate file e.g., scripts.nix that can be imported by my configuration.nix to install them with environment.systemPackages?
<infinisil>
nixguest: Not possible in a reasonable way
<{^_^}>
[nixpkgs] @toschmidt opened pull request #85492 → mailspring: init at 1.7.5 → https://git.io/JfJHf
<infinisil>
nixguest: How about writing a nixos-rebuild wrapper that calls nixos-generate-config as well instead?
<nixguest>
Ah, I see. I will look into that. Thanks!
knupfer has quit [Quit: knupfer]
turion has joined #nixos
knupfer has joined #nixos
<infinisil>
hoplaahei: You can split configuration.nix into many files by just writing multiple ones like it, and using "imports = [ ./other-file.nix ]"
<infinisil>
In configuration.nix to import the others
b has joined #nixos
<{^_^}>
[nixpkgs] @prusnak opened pull request #85493 → treewide: per RFC45, remove more unquoted URLs → https://git.io/JfJHL
ATuin has quit [Ping timeout: 256 seconds]
o1lo01ol1o has joined #nixos
<hoplaahei>
infinisil: ok thankyou
justan0theruser has joined #nixos
dermetfan has quit [Ping timeout: 246 seconds]
chagra_ has quit [Ping timeout: 265 seconds]
arstneio has left #nixos [#nixos]
aveltras has joined #nixos
Desetude has quit [Quit: WeeChat 2.8]
<{^_^}>
[nix] @domenkozar merged pull request #3502 → pass Pos to forceValue to improve infinite recursion error → https://git.io/JffOs
<hoplaahei>
infinisil: I've imported scripts.nix which will install the scripts, but how can I append to the list defined for environment.systemPackages in configuration.nix without overwriting it?
<infinisil>
hoplaahei: Gets merged automatically
<infinisil>
If you assign it multiple times
<gchristensen>
domenkozar[m]: gutsy :P
<hoplaahei>
inifinisil: ahh good
o1lo01ol1o has quit [Remote host closed the connection]
ashesham` has joined #nixos
<{^_^}>
[nixpkgs] @flokli pushed 2 commits to release-20.03: https://git.io/JfJHQ
tokudan has quit [Remote host closed the connection]
charleshd has joined #nixos
<charleshd>
Hi there
tokudan has joined #nixos
gentauro has quit [Read error: Connection reset by peer]
gentauro has joined #nixos
<charleshd>
I'm doing things with unity. I actually installed Unityhub from nixpkgs, the soft installed a version of Unity in my homedir. Great, However I can't call directly the binary in my homedir without going through unityhub first. This bothers me because I want to be able to call the unity binary for doing some batchmode check in a script.
<{^_^}>
[nixpkgs] @bhougland18 opened pull request #85495 → wmutils-libwm: init at 1.0 → https://git.io/JfJ73
<charleshd>
My guess is that stuff packaged in Unityhub appimage allow unityhub to launch that binary. Is there a way to put me in an AppImage virtualenv or something similar ?
nixguest has left #nixos [#nixos]
reallymemorable has joined #nixos
evertedsphere has quit [Ping timeout: 265 seconds]
o1lo01ol1o has joined #nixos
linarcx has joined #nixos
<asheshambasta>
can there be cases where jailbroken packages can still result in version bound errors?
<asheshambasta>
wow this jailbreaking seems unpredictable for this specific package, and I'm beginning to suspect that either I'm doing something very stupid, or something is funky with this package.
<infinisil>
srxl[m]: A base-32 representation, see `man nix-hash` for more info
vidbina_ has joined #nixos
jakobrs has joined #nixos
<jakobrs>
Can I use Nix from Rust as a library?
felixfoertsch has quit [Quit: ZNC 1.7.4 - https://znc.in]
<gchristensen>
no
felixfoertsch has joined #nixos
<gchristensen>
Nix has no C ABI, and thus FFI is very difficult
leotaku has joined #nixos
<simpson>
Although calling Nix binaries as subprocesses is possible.
<jakobrs>
Is there a possibility that it might get easier in the future?
<gchristensen>
yes, there is some chance Nix will be piecemeal rewritten in rust
<infinisil>
asheshambasta: No idea what the problem is, but you might want to try switching to overlays instead of packageOverrides. packageOverrides can have weird behavior
<simpson>
Or that somebody will write and maintain a crate which wraps Nix's utilities. What do you want to build?
<jakobrs>
I was inspired by nixos-manager to try to build something ala that but command-line
<aiverson>
IIRC, Lorri does something like that, wrapping the binaries as a rust API to interact with nix. Maybe some of that code can be useful to you?
bukkitgerman8608 has quit [Quit: Ping timeout (120 seconds)]
o1lo01ol1o has joined #nixos
<jakobrs>
That sounds interesting
bukkitgerman8608 has joined #nixos
eight has joined #nixos
<srxl[m]>
I'm in the process of building a tool to autogenerate Nix expressions for Mix (Elixir) projects. As part of this, I need to create a derivation for each dependency of the Mix project. I'm not quite sure what the best way to go about getting the hashes for the sources of each dependency is. I could autogenerate those as well, but I feel like that's bad practice. Any suggestions?
<srxl[m]>
(sorry if it's hard to understand ^^')
<jakobrs>
Is it possible to create a shell (like nix-shell -p) but taking a environment instead of a list of packages
Diogo has joined #nixos
<LnL>
srxl[m]: are you aware of mixnix?
felixfoertsch has quit [Quit: ZNC 1.7.4 - https://znc.in]
<srxl[m]>
I am not, do you have a link to it?
<jakobrs>
So you'd do something like `nix-shell --profile /path/to/temp/profile` and it'd launch a shell where everything in /path/to/temp/profile
<asheshambasta>
I'm new to nix so I don't know how to use overlays.
<infinisil>
,overlays
<{^_^}>
infinisil: Did you mean overlay?
<{^_^}>
Overlays look like `self: super: { foo = ...; }`. Use the self argument to get dependencies, super for overriding things and library functions (including callPackage). More info: https://nixos.org/nixpkgs/manual/#sec-overlays-install
felixfoertsch has joined #nixos
<infinisil>
asheshambasta: ^
<infinisil>
In your case you'll want to pass overlays to nixpkgs like `import pkg-src { inherit overlays; }`
<infinisil>
I'd try that first, it wouldn't be the first time weird issues have been fixed by switching to overlays
<asheshambasta>
I see, and what advantages do overlays have over overrides?
<{^_^}>
[nixpkgs] @magnetophon opened pull request #85496 → Kapitonov-Plugins-Pack: init at 1.1 → https://git.io/JfJdQ
<jakobrs>
Why should I use super.callPackage rather than self.callPackage?
<srxl[m]>
...i spent a full day, searching for something like that mixnix
<infinisil>
"overrides" has many meanings, but for the question "What advantages do overlays have over config.packageOverrides", the answer would be that it's more flexible since it correctly separates what things you override vs where you get final dependencies from (super vs. self)
<infinisil>
asheshambasta: ^
vidbina_ has quit [Ping timeout: 258 seconds]
<adisbladis>
infinisil: Iirc packageOverrides is now implemented as an overlay?
<adisbladis>
Not that it really matters, it still has the same disadvantages as before.
<infinisil>
Yeah
cosimone has quit [Quit: Terminated!]
<adisbladis>
Tbh I wish we'd just ditch packageOverrides
<infinisil>
The fact that packageOverrides can be implemented with overlays, but not the other way is kind of indicative of the superiority of overlays :)
<infinisil>
adisbladis: Yeah same. Unfortunately our docs are littered with it..
pinkieval has quit [Ping timeout: 265 seconds]
morgrimm has quit [Ping timeout: 256 seconds]
<infinisil>
jakobrs: I have no idea tbh
<infinisil>
I know that super.callPackage still gets its dependencies from self, because it's declared that way
<{^_^}>
[nixpkgs] @bhipple pushed commit from @wamserma to release-20.03 « maintainers: add wamserma »: https://git.io/JfJFe
cosimone has joined #nixos
<ixxie>
This runs in a Docker container, and as a crude optimization I build a custom base image where a minimal nixos is built in order to have most the needed store addresses in the docker image
<{^_^}>
[nixpkgs] @bhipple pushed commit from @wamserma to release-19.09 « maintainers: add wamserma »: https://git.io/JfJFf
AFKRozy has quit [Remote host closed the connection]
<ixxie>
But this image is now about 4GB and I am wondering if there is a way to minimize the docker base image size and make the iso build process faster, as the only new thing added to the iso which is not generic is the ssh key of the build agent
eof has quit [Client Quit]
eight has quit [Quit: eight]
knupfer has quit [Ping timeout: 252 seconds]
eof has joined #nixos
<asheshambasta>
infinisil: even overlays give me the same error
<asheshambasta>
infinisil: ah yes, the hash was a mistake.
zupo has quit [Ping timeout: 265 seconds]
<asheshambasta>
The fact that jailbreak doesn't "fix" the bounds issue, to me, either means that there's a bug in the jailbreak, or the bounds come from evaluating a dependency (just guessing)?
<infinisil>
asheshambasta: Did you do what I suggested above?
<asheshambasta>
not yet, doing that now.
teto has quit [Ping timeout: 246 seconds]
jakobrs has left #nixos ["WeeChat 2.8"]
<asheshambasta>
infinisil: it seems like the cabal file still has the bounds.
<asheshambasta>
and the bounds are in executable
<{^_^}>
[nixpkgs] @magnetophon opened pull request #85497 → jalv: revert to gtk2 cause gtk3 wasn't showing the GUIs → https://git.io/JfJFS
CptCaptain has quit [Quit: WeeChat 2.7.1]
<numkem>
for the first time in over 10 years, I don't own any computers that is running Arch, feels weird
<infinisil>
asheshambasta: Compare the file with the non-jailbroken one
<infinisil>
This should answer your question
ixxie has quit [Ping timeout: 258 seconds]
reallymemorable has quit [Quit: reallymemorable]
<asheshambasta>
this package seems abandoned anyway
rardiol has joined #nixos
teto has joined #nixos
<asheshambasta>
and it seems that the jailbreak only turns bounds off for the library and not the executable
drakonis1 has quit [Ping timeout: 256 seconds]
<infinisil>
asheshambasta: Wrong conclusion
<asheshambasta>
nor does it turn off the bounds for benchmarks and examples.
<asheshambasta>
interesting
<infinisil>
What do all the -any bounds have in common?
<infinisil>
(that's what jailbraking does)
<infinisil>
Well I guess not all
<infinisil>
Well whatever, I'll say it: It seems like jailbreaking only removes bounds that aren't under `if` conditions and such
<infinisil>
Oh but benchmarking
<asheshambasta>
do we have a way to exclude build artefacts? For example, what if I'd like to only include the library of this package?
<infinisil>
Wait no yeah there's something more weird going on I feel
<{^_^}>
peti/jailbreak-cabal#7 (by cstrahan, 5 years ago, closed): Does not lift bounds in conditional branch.
chloekek has joined #nixos
<asheshambasta>
so it is not a bug, a simple workaround here for me could be that some build artefacts can be excluded, and I get only the library
drakonis1 has joined #nixos
<asheshambasta>
infinisil: thanks a lot for your time on this though, and the `-K` is a seriously cool trick
<infinisil>
asheshambasta: Oh, notice how one of the constraints it asks for is servant <0.9
reallymemorable has joined #nixos
<infinisil>
But `nix-instantiate --eval servant.nix -A servant.name` says this is 0.14.1
AFKRozy has quit [Ping timeout: 256 seconds]
<asheshambasta>
yes, the rest of the offending constraints are all in there.
<infinisil>
And notice how there's a servant9/servant91 flag for when servant is above version 0.9/0.9..1
<infinisil>
You might have to toggle the servant91 flag
<infinisil>
and servant9
<infinisil>
Although, maybe it's the default
<pie_[bnc]>
zimbatm: if i try to cancel a loading direnv it just executes it again: https://bpaste.net/TFHA
<infinisil>
Doesn't look like it though, since the bytestring-conversion constraint only appears for servant9 false and servant91 false
<zimbatm>
pie_[bnc]: what version are you using?
<pie_[bnc]>
zimbatm: oh
<zimbatm>
this was fixed in the latest release
<pie_[bnc]>
zimbatm: probably old because i keep forgetting to update my system (its complicated)
<zimbatm>
it was broken for a loooong time
<pie_[bnc]>
zimbatm: thank you ^.^
<zimbatm>
+
<pie_[bnc]>
zimbatm: is it possible to show stdout from the load?
<pie_[bnc]>
zimbatm: i cant see nix build progress
noudle has quit []
proofofkeags has joined #nixos
<asheshambasta>
infinisil: won't the results of the conditionals be concatenated?
<infinisil>
Not sure what you mean
<pie_[bnc]>
zimbatm: or maybe have drenv open a `less` which collects the output
<asheshambasta>
if flag(foo) build-depends: E F (nested uner this: if flag(bar) build-depends: A B C else builld-depends: A)
<asheshambasta>
say foo = True, bar = True, what will be build-depends? (E F A B C); right?
<infinisil>
Ah yeah
relaxmax has joined #nixos
AFKRozy has joined #nixos
<asheshambasta>
infinisil: which means irrespective of what flags I append, the bounds stay in executable example etc.
<asheshambasta>
or wait, it basically says if the build-examples flag is set, then we need to build examples otherwise not.
<asheshambasta>
what is the default behaviour, are all flags supplied to cabal by default? Or does cabal expect an explicit value to be set to consider a flag disabled?
<zimbatm>
pie_[bnc]: what's the purpose of doing that?
<zimbatm>
it used to be the case that stdout and stderr were mixed, which was also fixed by the latest version
<zimbatm>
and is now causing issues on windows because windows doesn't have a notion of file descriptor...
<asheshambasta>
disableCabalFlags also seems to have no effect AFAICS, I don't know how cabal flags are supposed to work.
Criena has joined #nixos
<asheshambasta>
I see that these flags are being passed to cabal with `-f-<flagname>`
<pie_[bnc]>
zimbatm: I would like to see what a shell is doing thats making it take a while, without canceling <pie_[bnc]> zimbatm: i cant see nix build progress
<zimbatm>
stdout and stderr are both attached to the console directly
<asheshambasta>
in any case, the libary dependencies include these conditionals, and since jailbreak cannot affect these, then I'm out of luck.
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<aanderse>
anyone with `darwin` here wanna do me a solid and take a look at https://github.com/NixOS/nixpkgs/pull/85319 ? it won't compile on `darwin` because hard coded reference to /usr/bin/xmlconfig or some such. i don't have a mac so can't effectively fix it... would appreciate if anyone doesn't mind spending a (hopefully) short amount of time on fixing.
pbogdan has quit [Quit: ERC (IRC client for Emacs 28.0.50)]
ATuin has quit [Ping timeout: 265 seconds]
relaxmax has quit [Ping timeout: 256 seconds]
katyucha has joined #nixos
evanjs has joined #nixos
<pie_[bnc]>
zimbatm: oh weird thanks, ill look into it.
growpotkin has joined #nixos
<katyucha>
Hi... Trying to use nixops and nftables. Each time, I push a new configuration with nixops : I have this error => Unload ip_tables before using nftables! ... any ideas ? thanks
<zimbatm>
pie_[bnc]: ok. let me know if the issue still happens after upgrading.
<katyucha>
I reboot the server and it's ok ... not really fun at all
<numkem>
I'm currently packaging an app and I'm I've provided it all the libraries missing (ldd doesn't report anything missing), the app starts but crashing with `Error: Cannot open /nix/store/kskf321jj8j65rv6h4pwyw4i1b7x953z-screen-so-1.0.24/lib/screen-desktop/resources/app.asar/robotjs.node: Error: libstdc++.so.6: cannot open shared object file: No such file or directory`. How can I show it where to find it? Is there a trick I could do with
<numkem>
manipulating an env variable to point it to the right direction?
<numkem>
think I might have found an example wih the etcher expression
<qy[m]1>
this now only changes a default value - looks good to merge? #85462
<{^_^}>
[nixpkgs] @veprbl pushed commit from @wamserma to master « pythonPackages.pdfposter init at 0.7.post1 (#82926) »: https://git.io/JfJp3
<nschoe>
Hi all. I remember seeing an nixos option to make xorg output its configuration file somewhere but I can't seem to find it. Does anyne happen to know it?
<{^_^}>
[nixpkgs] @worldofpeace merged pull request #85365 → nixos/acme: Fix postRun in acme certificate being ran at every run → https://git.io/JffO1
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/JfJpG
<{^_^}>
[nixpkgs] @worldofpeace merged pull request #85366 → nixos/acme: Fix postRun in acme certificate being ran at every run → https://git.io/JffOy
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to release-20.03: https://git.io/JfJpc
dermetfan has quit [Ping timeout: 272 seconds]
<nschoe>
Ah never mind it's 'exportConfiguration'.
<ixxie>
clever: the iso is being build in the container, and the only reason I need to build it is to put the key in it so that the build agent can automatically log back in
<lukegb>
gchristensen: https://grahamc.com/blog/erase-your-darlings: "SSH host keys" has a consistency error - the directory you make is /persist/etc/ssh, but the one you configure is just /persist/ssh
<lukegb>
nice guide though, I mostly ended up with approximately the same zfs structure on my own, but I'm cribbing the suggested starting point of things to persist :^)
<jakobrs>
Are the endpoints to hydra documented somewhere?
<jakobrs>
I'm trying to write a small html site that redirects you to the right page on hydra and knowing the format of the urls would be helpful
<ixxie>
clever: I'm currently building the tarball with nix-build '<nixpkgs/nixos>' -Q -j 4 -A config.system.build.kexec_tarball -I nixos-config="/kexec/kexec-config.nix"
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ixxie>
clever: is there a way to build a smaller image or is that already as minimal as it gets?
zupo has joined #nixos
<clever>
ixxie: instead of building kexec_tarball, build kexec_script, so you get the uncompressed store path
<clever>
ixxie: then run `du -h --max=0 -c $(nix-store -qR ./result) | sort -h` to see how big the closure is
Darkmatter66_ has joined #nixos
<clever>
ixxie: then use `nix why-depents ./result /nix/store/fat-path` to find out why a big thing is in the closure, override, rebuild, repeat
<matthuszagh>
hello, i'm trying to override attributes of a package (kicad) using an overlay. src from the package's default.nix calls another mkDerivation function. This confused me a bit. Can src be a derivation? Apparently it can since the build expression works... How can I override attributes within that derivation?
<zeta_0>
do i need to go into a nix-shell before running: nix build -f . haskell-nix.nix-tools --out-link nt ? it does not say that in the instructions?
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/JfJj9
morgrimm has quit [Ping timeout: 258 seconds]
<matthuszagh>
the mkDerivation that's called also contains a bunch of stuff like buildInputs and makeFlags. Do these get appended to the attributes in the default.nix expression?
<clever>
matthuszagh: .overrideAttrs works on the final call to the real stdenv.mkDerivation, so all of the other stuff in the middle is just going to manipulate the set with things like //
<clever>
matthuszagh: whatever args where being sent to the real stdenv.mkDerivation, are the ones you manipulate with .overrideAttrs (old: and also the ones that appear within `old`
kenji has joined #nixos
<jakobrs>
NAT is broken; how do I debug this?
<ixxie>
How does nix manage build depedencies that are not runtime dependencies? I don't suppose they immediatly get deleted after a build right?
<clever>
ixxie: they get left in /nix/store but wont show up in -qR
<matthuszagh>
clever: so i'm intentionally trying to break the derivation by setting e.g. cmakeFlags to an empty list, but the derivation still builds fine
jakobrs has quit [Quit: WeeChat 2.8]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<matthuszagh>
doing this bc the derivation seemed to ignore what i was passing to src
bkv has quit [Ping timeout: 246 seconds]
<clever>
matthuszagh: if cmakeFlags is empty, it just runs cmake with fewer flags
<jluttine>
is there some standard for command line argument parsing regarding how a program should handle if the same option is given multiple times like `program -foo 42 -foo 666`. should the program take value 42 or 666 for foo? is there some standard for this or is it just a random choice from the program creator?
<jluttine>
just thinking about the makeWrapper in nixpkgs how it uses --add-flags. does it add them before or after the user-given arguments?
<zeta_0>
on the last command i get: `error: attribute 'haskell-nix' in selection path 'haskell-nix.nix-tools' not found`
<jluttine>
seems to add before the user given flags if i read it correctly. i just encountered a program which only considers the first occurrence of an option so this kind of wrapping is a problem because a user cannot override the nix-wrapped default
<matthuszagh>
clever: ok i'm at a bit of a loss. the derivation shows the right src, but it's still building an old version and if I change the commit (src is a local path) the derivation is not rebuilt
<clever>
matthuszagh: what do you see if you run `nix show-derivation /nix/store/foo.drv` on the derivation in question?
<clever>
matthuszagh: this derivation ignores $src entirely, so changing src wont do anything!
<clever>
matthuszagh: you must instead change kicad-base, which is in a let block, and impossible to change...
<clever>
matthuszagh: or change the makeWrapperArgs, and swap in the new kicad-base value
<matthuszagh>
clever: oh man...
<clever>
and change installPhase
<clever>
and at that point, your basically copy/pasting the entire thing
<matthuszagh>
ok so i should try to create a PR that makes this more easily overrideable right?
<clever>
clone down a copy of nixpkgs, just edit the file, and then do `kicad = self.callPackage /home/clever/apps/nixpkgs/pkgs/applications/science/electronics/kicad {}` to make your overlay mix the copy into everything else
<clever>
and optionally file a PR to make things better for others in the future
<matthuszagh>
clever: oh that's an interesting method. so basically have 2 nixpkgs. one normal and one for edited kicad. did i get that right?
<clever>
matthuszagh: yep
<clever>
matthuszagh: so 99% of it comes from the channel, but kicad comes from the edited nixpkgs
<matthuszagh>
clever: that's nice
<matthuszagh>
do you ever patch nixpkgs
<clever>
matthuszagh: and then 4 years down the road, youll discover a gradle override in ~/.nixpkgs/config.nix and thats why its such an ancient version, lol
<clever>
exactly that happened to me 2 days ago :P
bifunc2 has joined #nixos
<cole-h>
Hah
<matthuszagh>
haha
<matthuszagh>
wasn't looking into setting up patches, but seems a bunch of people discourage it
<clever>
keeping an edited copy of nixpkgs like that is sometimes needed, because the package isnt override friendly
<bifunc2>
hi. does anyone know how to compile entire NixOS from source and how long would it take on a regular laptop these days? (days, weeks?)
<matthuszagh>
clever: yeah that seems like a good strategy. sometimes i find myself needing changes that wouldnt' be good to merge back in though. and then i feel the simplest solution would be to create a set of patch files that are applied
Vikingman has joined #nixos
bhipple has quit [Ping timeout: 256 seconds]
<jtojnar>
bifunc2 you can disable binary cache by passing --substituters '' and I would guess few days (most of GNOME user space can be done under a day in my experience)
<matthuszagh>
i know some people have dont this, but others have discouraged it. and in general it didn't seem like a simple setup
turion has joined #nixos
bqv has joined #nixos
morgrimm has quit [Ping timeout: 258 seconds]
<jtojnar>
bifunc2 and gcc's, kernel and browser would take the most time
<cole-h>
Yes, not completely reproducible. But mostly.
<ixxie>
clever: I'm of course open to help add this to nixops but no clue how to even begin
<clever>
cole-h: ive set `repeat = 1` on my `nix.conf` so i can see anything that cant be reproduced
magnus1 has joined #nixos
<clever>
ixxie: i'm thinking to start, nixops would just run your script during the first deploy, maybe with a few changes
<clever>
ixxie: leave a link to it in my issue, so others can find it later on?
<bifunc2>
cole-h oh wow. i didn't realize NixOS was also aiming for binary reproducibility like Debian
<jtojnar>
bifunc2 you would still need to trust nix and nixpkgs but you can do something like `nix-build --substituters '' nixos/release-combined.nix -A nixos.iso_minimal.x86_46-linux`
<bifunc2>
that's it? one command to compile an entire OS?
<clever>
bifunc2: yep
<bifunc2>
can i do it on another linux system like debian?
<bifunc2>
mind blowing
snicket has quit [Remote host closed the connection]
<clever>
bifunc2: yeah, any x86-linux based machine can run that
<cole-h>
If you have the nix binary, yep
<gchristensen>
sure, bifunc2, install Nix on top of Debian and you can do that
<clever>
bifunc2: ive also done a variant before where i skip the installer iso, i just build nixos directly in /nix/store, and then overwrite the bootloader to change which /init it begins at
<{^_^}>
[nixpkgs] @Ericson2314 pushed 39 commits to staging: https://git.io/JfUf8
<ixxie>
bifunc2: if you google dell xps nixos you will also find notes by several regulars of this chat about setting up NixOS on xps machines
<bifunc2>
nice, xps look good. all hardware components just worked?
<numkem>
is there a good way go debug an app that won't start and just crashes with a dump? I've tried strace but I can't see anything obvious that would show a missing library or anything of the sort. It's chrome/electorn based it looks like.
<bifunc2>
clever, did everything just work on system76?
<bifunc2>
"nixpkgs.config.allowUnfree = true; " is scary for xps :)
<clever>
bifunc2: only issues was figuring out uefi install for the first time
zaeph has quit [Remote host closed the connection]
<clever>
bifunc2: its nvme only, so legacy boot cant even see the drive
pluppens has quit [Ping timeout: 265 seconds]
<energizer>
home-manager's `home.activation` has an automatic cleanup system `hm.dag`, which will remove files that aren't in the new generation. does nixos have a similar functionality for system.activationScripts?
<gchristensen>
for directories managed by NixOS (namely, /etc)
<clever>
energizer: not really, when you remove the activation script, it just stops running and forgets about it
<jtojnar>
numkem I would get backtrace from coredumpctl gdb first
<clever>
energizer: and yeah, the /etc stuff will track what it made, and clean up after itself
codygman has quit [Read error: Connection reset by peer]
codygman has joined #nixos
pbogdan has quit [Ping timeout: 256 seconds]
<bifunc2>
thanks guys for the help!
zaeph has joined #nixos
pbogdan has joined #nixos
<numkem>
jtojnar: ok, I'm getting somewhere but I've never really used gdb. complains about an illegual instruction
<jtojnar>
numkem you can enter bt full and it should get you stack trace
<numkem>
jtojnar: `No symbol table info available.`
linarcx has joined #nixos
<clever>
numkem: what about `disass`
dermetfan has joined #nixos
<numkem>
jtojnar: while I was looking at the libraries through `ldd` there is one shipped .so that is using another .so vs the one shipped with. is there a way to change autoPatchelfHook to have priorities?
<numkem>
jtojnar: `No function contains program counter for selected frame.`
<clever>
numkem: even gdb doesnt know what the opcode is!, definitely sounds like it just jmp'd to a random address and is crashing hard
<numkem>
clever: what would be the command to keep going backwards?
<clever>
numkem: you can just manually substract some from the number, and paste it where $eip was
<clever>
but at this point, the stack is more important
<clever>
and without debug info, it can be tricky to backtrace
<numkem>
clever: I think it might be related to wrong lib being used, patchelf is supplying one while there is one shipped with the code
<clever>
numkem: what i would do, is to just delete all of the binaries, and run ${pkgs.electron}/bin/electron, which is already patched
aveltras has quit [Quit: Connection closed for inactivity]
koleesch_ has joined #nixos
<numkem>
clever: it's shipping a `chrome-sandbox`. I'm leaning on electron because it's shipping some .asar files that are related to electron and contains html/js/css
<clever>
numkem: the asar files are basically just a tar to hold html/js/css, and you can run the nixpkgs electron against it
koleesch has quit [Remote host closed the connection]
<numkem>
clever: interesting, so I might not even need any of it, let me try taht
eight has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
eight has quit [Client Quit]
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
codygman has quit [Ping timeout: 250 seconds]
<numkem>
clever: doesn't look like I'll be lucky on that one, seems like it's an old electron and it's complaining about unmatching NodeJS version. So doesn't look like it's gonna be that easy. I'll keep looking at the missmatching lib
codygman has joined #nixos
<numkem>
clever jtojnar thank you both for your help
<numkem>
clever++
<{^_^}>
clever's karma got increased to 395
drakonis has joined #nixos
<numkem>
jtojnar++
<{^_^}>
jtojnar's karma got increased to 41
<ornxka>
so, i have a system, with a luks device configured that looks at /nonexistant, which isnt root.. so i try to boot and then of course it fails and i get dropped into a shell
<ornxka>
there, i decrypt/mount the actual boot at /mnt-root, and then exit the shell, but then it kernel panics
<ornxka>
but im mystified as to why, i mounted root in the right place, why wouldnt it work...
<ornxka>
er, the actual root*
<clever>
ornxka: does the systempath config in /proc/cmdline exist in the nix store you mounted?
<ornxka>
yeah, systemConfig=/nix/store/blahblah, and then i have /mnt-root/nix/store/blahblah
<clever>
ornxka: and the exact hash it says, exists there?
zarel has quit [Ping timeout: 250 seconds]
<ornxka>
yes i have verified the whole hash is the same
<energizer>
danderson: i am trying to figure out which are the stateful files that i need to persist. do i need both /tailscaled.log.conf and /var/lib/tailscale/tailscaled.state in order to avoid reauthenticating?
proofofkeags has quit [Remote host closed the connection]
<magnetophon>
I'm trying tho package zrythm. I get: "OSError: [Errno 30] Read-only file system: '/nix/store/viqykcrpkq433039680781rww3h5llhx-zrythm-0.8.252'" How can that be? That path is $out, shouldn't it be always writable during the build?
<CptCaptain>
Where does X log to by default in nixos?
drakonis_ has quit [Ping timeout: 260 seconds]
proofofkeags has quit [Ping timeout: 256 seconds]
<energizer>
CptCaptain: i have /var/log/X.0.log
maddo2 is now known as maddo
linarcx has quit [Quit: WeeChat 2.8]
<CptCaptain>
energizer: I have nothing there
<energizer>
CptCaptain: perhaps journald then
Izorkin has quit [Ping timeout: 250 seconds]
penguwin has quit [Quit: NO CARRIER]
penguwin has joined #nixos
drakonis_ has joined #nixos
<ornxka>
huh
<ornxka>
the panic is just that init died
<ornxka>
thats odd, i didnt open the shell as pid 1...
<gchristensen>
init is probably a shell script
drakonis has joined #nixos
drakonis has quit [Client Quit]
drakonis has joined #nixos
koleesch_ has quit [Ping timeout: 240 seconds]
proofofkeags has joined #nixos
<clever>
ornxka: any errors above that?
<ornxka>
nope
sogatori has quit [Remote host closed the connection]
<ornxka>
it tries to mount /nonexistant -> fails -> drops to shell -> i mount root at /mnt-root -> press ^D to exit shell -> it complains again that /nonexistant isnt there -> ^D again -> panic
<ornxka>
ive got a script that hopefully should mount root instead of having to do it in the shell, i guess ill try that
morgrimm has joined #nixos
<ornxka>
i think from now on i will only use computers that have a serial console console and full jtag debugger access to
<Xe>
20.03 gives me 0h3yzds12q1vz66qi8hrkki8g5sm1d4k2mz9yg7ql8z59yma2r23 and unstable gives me 0lasshl4iwv6lrc65588rd4h4mh8h2cv1qfdnqy7mhrbmxrzxvyc
magnetophon has quit [Ping timeout: 264 seconds]
<Xe>
for the cargoSha256 that is
<clever>
Xe: make a copy of the directory that hash is for, and then try running diff -r against the 2 versions of it
<clever>
what is differing?
<Xe>
i don't know, i cannot replicate this failure on nixos-20.03 no matter what i try
<clever>
Xe: if you invalidate the hash (replace in a few 0's), it should re-download things and give a new hash
<Xe>
did something change in rustPlatform.buildRustPackage with regards to how it hashes the vendor folder?
__monty__ has quit [Quit: leaving]
<clever>
Xe: maybe, running `diff -r` would explain what
<energizer>
`networking.interfaces.<name?>.useDHCP` -> "Whether this interface should be configured with dhcp. Null implies the old behavior which depends on whether ip addresses are specified or not." If i delete networking.interfaces.foo.useDHCP, and i don't specify any ip addresses, will it default to true?
magnetophon has joined #nixos
knupfer has quit [Ping timeout: 256 seconds]
<energizer>
i don't like having basically that one hardware-generated value in my configuration.nix
<energizer>
so i would like to remove it, but i'm not sure what will happen and i'm scared to try it on a server lest it lose network connection
<clever>
Xe: 20.03 is based on a recent fork of unstable
<energizer>
yeah i think that broke my connection
proofofkeags has quit [Remote host closed the connection]
andreas303 has joined #nixos
bifunc2 has quit [Quit: -]
reallymemorable has joined #nixos
alexherbo2 has quit [Ping timeout: 256 seconds]
opthomasprime has joined #nixos
opthomasprime has quit [Remote host closed the connection]
<webstrand>
I'm having trouble getting nixos to boot. I've copied the minimal iso onto a thumbdrive, but after selecting NixOS Installer in the menu, all I get is a black screen.
matthuszagh has quit [Remote host closed the connection]
<webstrand>
The thumbdrive works in my laptop, it boots just fine.
<webstrand>
Any ideas? I've had no trouble with other distros on this machine: fedora, arch, and gentoo work just fine.
<webstrand>
One difference, when booting on my laptop, is that it doesn't use the gui gummiboot interface, it looks more like grub.
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<webstrand>
apparently gummiboot is the issue. Booting in legacy mode (not uefi) lets me boot in
mariorandom has joined #nixos
dermetfan has quit [Ping timeout: 252 seconds]
<webstrand>
though this time, the menu never appears
<mariorandom>
is there any emacs plugins that tell me where my nix errors are?
<pikajude>
"error: invalid file name 'closure-init-0' in 'exportReferencesGraph'" what's up with this
<pikajude>
getting it from nixos-rebuild, it happens when trying to build the initrd
kenji has quit [Ping timeout: 264 seconds]
fendor has quit [Read error: Connection reset by peer]
trubi has joined #nixos
sshow has quit [Quit: leaving]
o1lo01ol1o has quit [Remote host closed the connection]
reallymemorable has quit [Quit: reallymemorable]
o1lo01ol1o has joined #nixos
sshow has joined #nixos
sshow has quit [Client Quit]
sshow has joined #nixos
<{^_^}>
[nixpkgs] @risicle opened pull request #85520 → afl: fix afl-clang-fast++ by making it a copy of afl-clang-fast, not a symlink → https://git.io/JfUI4
<energizer>
mariorandom: nix-mode
<{^_^}>
[nixpkgs] @rvolosatovs opened pull request #85521 → gopass: Add passAlias parameter to derivation → https://git.io/JfUIB
<mariorandom>
nix-mode is not telling me where my errors are
o1lo01ol1o has quit [Ping timeout: 250 seconds]
<NobbZ[m]>
mariorandom what kind of errors? `nix-mode` does indeed help you to find syntax errors in the current file. It will not help you finding misnamed variables or even crosfile errors.
<mariorandom>
like removing a semi-colon
<mariorandom>
I will try to find a video of youtube that nix-mode is working like I expect
<energizer>
it does for me
<NobbZ[m]>
Oh, you are right. It doesn't show those indeed
<energizer>
probably flycheck is doing the work there
<mariorandom>
it is working in your emacs like I expect
<energizer>
i expect flycheck + nix-mode is the key there
proofofkeags has joined #nixos
<mariorandom>
the problem is that my flycheck was disable
<NobbZ[m]>
I need to check with flycheck again.
<NobbZ[m]>
Though editing config via SSH on a mobile is nothing I'd do unless I have to :D I hope I remember it still tomorrow
<mariorandom>
nix messages are wrong, because when I forget the ';' (collon), it tells that my '=' in the next line that is wrong
reallymemorable has joined #nixos
<NobbZ[m]>
It's correct.
<NobbZ[m]>
The equal sign is unexpected.
henry_ has joined #nixos
smatting_ has quit [Ping timeout: 265 seconds]
<NobbZ[m]>
The attrset and the following name can be part of lists or function arguments. The parser probably doesn't know about either to keep it simple.
proofofkeags has quit [Ping timeout: 256 seconds]
<energizer>
mariorandom: that's a common issue in reporting parse errors for a lot of languages
asymmetric has quit [Quit: Peace.]
<NobbZ[m]>
20 years ago when I did some C, a single missing semicolon could produce a plentora of various errors... Back then, fixing errors top to bottom was the only senseful thing to do.
<clever>
NobbZ[m]: try forgetting a } in c!
asymmetric has joined #nixos
<NobbZ[m]>
I stopped doing C, was better for my sanity :D
<risson>
Hi people! Trying to switch to 20.03 here, but grub won't install because no space left on /boot/efi
cosimone has quit [Quit: Quit.]
<risson>
However my /boot/efi is almost empty and has more than 500M free
<{^_^}>
[nixpkgs] @timsears opened pull request #85522 → bioconductor packages: 3.8 -> 3.10, update R packages, other fixes → https://git.io/JfUID
<qy[m]1>
i don't wanna add the module to the PR though, cause it's been hard enough to get people to look at the package
<qy[m]1>
but at least i'm now proof that it works
<qy[m]1>
risson: honestly part of my incentive is that i'm interested in using guix to manage emacs
<qy[m]1>
like, as a pseudo-homemanager sort of thing
<energizer>
does `builtins.readFile ./foo` get copied into the store?
<qy[m]1>
cause i have a huge emacs config
<qy[m]1>
no, it's a builtin
<qy[m]1>
that's part of evaluation
<risson>
I have no clue how to do emacs configuration, either with nix, guix or any other way
<qy[m]1>
basically, with nix = pain
<risson>
And with guix, still pain, but less
<qy[m]1>
with guix = less pain
<risson>
:D
<niso>
qy[m]1: why pain?
<qy[m]1>
natively = less pure
<gchristensen>
pretty painless for me :)
<risson>
Please no war about how to configure an editor
<risson>
I can't install grub x)
* niso
considered replacing use-package + straight with nix
* gchristensen
goesback to cooking dinner
<gchristensen>
niso: that is what I do
<energizer>
emacs.withPackages is great
<niso>
gchristensen: use-package with nix? or just nix?
<gchristensen>
emacsWithPackages
<gchristensen>
and a custom package wit my onw config
<qy[m]1>
i don't doubt it's painless with a simple config, but i run exwm and have basically everything on my system tied to emacs in some way, so it's got rather messy :D
<qy[m]1>
i have binaries referenced in places, that needs binding to nix
<qy[m]1>
some of my modules need libraries, so they have to be available at build and/or runtime
<qy[m]1>
and then i have to constantly keep my nix config and emacs config in sync
<qy[m]1>
so all in all ends up really unergonomic
<niso>
gchristensen: i see, i'll give it a try, thanks :)
<qy[m]1>
i began porting some of my elisp to nix in an effort to basically join them but i'm too lazy to finish that and it seems quite awful anyway
KindTwo has joined #nixos
<adisbladis>
niso: use-package is still useful with nix
<qy[m]1>
adisbladis: your use-package wrapper seemed perfect until i remembered i've wrapped use-package in a macro :D
<niso>
adisbladis: because of mod-dependent loading etc?
<niso>
*mode
KindTwo has quit [Max SendQ exceeded]
<adisbladis>
niso: Defered loading and whatnot :)
<qy[m]1>
niso: straight is somewhat superfluous with nix, if you use the nix emacs packages
<qy[m]1>
that's why i got rid of it, anyway
<niso>
qy[m]1: yea, straight is a relict of my pre-nix time :0
<niso>
i'll replace it the next time i'm refactoring
<clever>
[3~
guilherme has joined #nixos
<adisbladis>
qy[m]1: I'm really hoping to replace that hack at some point..
* niso
wonders why noone wrapped cmake in nix so far
<guilherme>
.
cosimone has quit [Remote host closed the connection]
cosimone has joined #nixos
<qy[m]1>
adisbladis: honestly the best thing i could think of as an alternative was having a list of nix objects that correspond to use-package objects, that then get compiled (with a pre-init script) to your init.el
ciil has quit [Quit: Lost terminal]
<qy[m]1>
which was what i was going for, but i went a bit crazy with the lisp-to-nix stuff and now i'm somewhat disillusioned with the idea
<drakonis>
lisp to nix you say?
<energizer>
does `import ./foo` copy ./foo into the store?
<qy[m]1>
but at least that way, the dependency tree would be visible to nix, and packages could be injected as needed, rather than kept in sync
<qy[m]1>
adisbladis: heh, that could be awesome. then you could evaluate the entire config and fetch all *actual* packages used
<adisbladis>
I'm not sure how that would support your custom macro use case though
<qy[m]1>
but yeah i think i'll use my guix module to see if i can graft some scheme into my nix config like the filthy heathen i am
<niso>
adisbladis: why not wrap e.g. rnix instead?
<qy[m]1>
cause that would make manipulating elisp trivial
<qy[m]1>
ah, yeah
sarcasticadmin has joined #nixos
<adisbladis>
niso: Huh? How would that solve anything?
<adisbladis>
I want to read emacs lisp in nix. Not the other way around.
<niso>
oh, my bad
<qy[m]1>
actually i'd settle for either
<qy[m]1>
:p
o1lo01ol1o has joined #nixos
<guilherme>
the old library of agda (nixos 19) were right and now, it is wrong at unstable. It is not compiling agdai files
<qy[m]1>
not sure if anyone's versed in nix's systemd interface, but i can't seem to use $RUNTIME_DIRECTORY from an environment entry?
<qy[m]1>
the .service has `Environment="GUIX_CONFIGURATION_DIRECTORY=$RUNTIME_DIRECTORY"` set if i use `environment.G...RY =`, but that seems to get set by systemd as a literal
Desetude has quit [Quit: WeeChat 2.8]
<qy[m]1>
whereass if i use `serviceConfig.ENVIRONMENT=` it works
ex-parrot has joined #nixos
<ex-parrot>
hi all. I've got a Xen VM running NixOS where I need to unload xen_kbdfront for a rebuild to complete. is there a reasonable place I can automate this?
<qy[m]1>
not a problem for me because i can just do the latter, but could be a problem in the long run, because you can't set multiple entries that way?
<qy[m]1>
(since attrset)
o1lo01ol1o has quit [Ping timeout: 256 seconds]
KindTwo has joined #nixos
ciil has joined #nixos
henry_ has quit [Quit: henry_]
<cole-h>
Can you not provide a list, like `[ "env1=fdjskla" "env2=fdkjl" ]`?
<cole-h>
You can for hm's `Environment`, at least.
<qy[m]1>
maybe? i thought systemConfig was just translated directly
<qy[m]1>
would make sense though
maddo2 has quit [Quit: See ya]
<cole-h>
Even if it is: you can specify multiple environment variables in the same `Environment=` line for systemd e.g. `Environment=ASDF=fdsa FHKJLD=jfkl`
<qy[m]1>
ah, true
<cole-h>
(which is how hm implements multiple env vars in service configs)
_rvl_ has joined #nixos
mbrgm_ has joined #nixos
cosimone has quit [Quit: Quit.]
hoplaahei has joined #nixos
KindTwo has quit [Max SendQ exceeded]
mbrgm has quit [Ping timeout: 272 seconds]
mbrgm_ is now known as mbrgm
<hoplaahei>
hi. I'm on 20.03 liveusb because stable doesn't load graphical session. What do I need to do to ensure 19.09 stable is installed? Change the channel and set system.stateVersion to 19.09?
<zeta_0>
hello, i want to contribute to nixpkgs, after i clone the repo, do i need to setup anything else before i start fixing issues?
bvdw has joined #nixos
civodul has quit [Quit: ERC (IRC client for Emacs 26.3)]
<aanderse>
hoplaahei: at this point for a new install you're probably better off with 20.03
mariorandom has quit [Remote host closed the connection]
guilherme has quit [Remote host closed the connection]
morgrimm has quit [Ping timeout: 258 seconds]
<cole-h>
,stateversion
<{^_^}>
Changing stateVersion doesn't upgrade anything and can only break your setup at best. To actually upgrade NixOS see https://nixos.org/nixos/manual/#sec-upgrading. If you need to change stateVersion for some odd reason regardless, Ctrl-F for "stateVersion" in https://nixos.org/nixos/manual/release-notes.html to see things that need to be manually migrated with the new value
<zeta_0>
also, i would like to start doing simple nixpkgs tasks, so if you guys could point me in the right direction
<danderson>
energizer: yes (and sorry for polluting /, it's a bug that'll be fixed in the next release)
<qy[m]1>
(realistically i know the package works now, i'm more interested in if there's any bootstrap missing from the module)
smatting_ has joined #nixos
snicket has quit [Ping timeout: 240 seconds]
<energizer>
danderson: that's what i figured, thanks :-)
<danderson>
energizer: in the next release (which I'm cutting now but won't make it to NixOS for a bit), you should hold onto /var/lib/tailscale and /var/cache/tailscale
<energizer>
danderson: sounds good
<zeta_0>
niso: ok, i just finished installing nixpkgs-review, next, do i need to clone the nixpkgs repo, or build it using nix-build instead?