<tpw_rules>
excelsiora: can you nix-collect-garbage?
<tpw_rules>
it might not work if the db is broken though
<excelsiora>
none of the commands seem to be working, including nix-collect-garbage.
<tpw_rules>
i guess you've still got 0 space?
<excelsiora>
the manual and wiki are both failing me
<tpw_rules>
what errors are you getting?
<tpw_rules>
do you have at least a few megs of disk space now?
<excelsiora>
no, df says 0 available on /
<tpw_rules>
is there any way you can get at least a few megs of disk space?
<excelsiora>
I have basically nothing in my user area
<tpw_rules>
maybe you can mount a ramdisk and copy some stuff into it
<tpw_rules>
(or use one that's already mounted)
<tpw_rules>
then you have enough space to use the database again
<excelsiora>
I have 1GB free memory
<excelsiora>
I mean 876Mi
<tpw_rules>
well you only need a few megabytes more
<excelsiora>
how do I do a ramdisk?
<tpw_rules>
sudo mount -t tmpfs tmpfs /some/empty/dir
<tpw_rules>
you might have to delete a file to make space to make the empty dir
<tpw_rules>
is this nixos?
<excelsiora>
yes
<tpw_rules>
ok i'm not sure how its files are structured
<tpw_rules>
if it has /tmp, you can probably delete stuff from there
<excelsiora>
just about nothing under /tmp
<tpw_rules>
you only need to free up a few megabytes
CMCDragonkai1 has quit [Ping timeout: 258 seconds]
<tpw_rules>
did the ramdisk work
Kritnich has joined #nixos
<excelsiora>
I don't know what file to delete to make the dir for the ramdisk. I'm hoping we can figure out a file to delete that will solve the problem altogether without a ramdisk...
slack1256 has quit [Remote host closed the connection]
virus_dave has quit [Quit: virus_dave]
johnbcoughlin has joined #nixos
rajivr has joined #nixos
<colemickens>
does anyone happen to have a derivation that builds a docker image upload script by chance?
mounty1 has joined #nixos
mariatsji has joined #nixos
<colemickens>
I guess it's easy enough to write that script, but I'm not up on what's the easiest to upload to docker hub without needing docker daemon
<colemickens>
lol skopeo doesn't need a daemon but it immediately blows up without a config file :(
<colemickens>
(could be a nixos thing tho)
domogled has quit [Quit: domogled]
<bsima>
how do i use autoreconf in a build?
<bsima>
i'm trying to build the haskell network packages but I get "Warning: The 'build-type' is 'Configure' but there is no 'configure' script. You probably need to run 'autoreconf -i' to generate it"
<Fare>
I'd like the nix docker to not have a big lump at the end, but maybe a big lump at the beginning, or a certain number of grouped lumps at the beginning.
<bsima>
error: infinite recursion encountered, at undefined position
<leungbk>
Fare: I'm working thru this tutorial (http://llvm.org/docs/tutorial/OCamlLangImpl3.html) and have tried installing the llvm module for OCaml via opam, but the installer complains about not being able to find the right version even when my system LLVM is the right version. So I'm trying to see if using nix-shell for the system and the OCaml deps will make any difference.
<colemickens>
If anyone else winds up in the same situation and you can't lean on the docker daemon, this gets the job done too: `${skopeo}/bin/skopeo copy --insecure-policy --dest-creds "''${DOCKER_HUB_USER}:''${DOCKER_HUB_CRED}" "docker-archive:${dockerImage name}" "docker://owner/repo"`
<clever>
colemickens: tossed into my notes, that will probably come in handy later
<{^_^}>
[nixpkgs] @wesleybowman opened pull request #93231 → Update google → https://git.io/JJG2x
<etu>
mvnetbiz_: Haven't looked into that yet. My config have been quite janky for quite long. But it became better after I found out about that you could configure it from nix :)
orivej has quit [Ping timeout: 260 seconds]
orivej has joined #nixos
domogled has joined #nixos
<{^_^}>
[nixpkgs] @ShamrockLee opened pull request #93232 → edukai: Init at 4.0 → https://git.io/JJGaf
choward has quit [Ping timeout: 265 seconds]
lsix has joined #nixos
<eyJhb>
srhb: are you able to merge #92917 and #92918 ? Tested and confirmed working by me and another (and the DisplayLink community is small) :p
NeoCron has quit [Remote host closed the connection]
orivej has quit [Ping timeout: 264 seconds]
thc202 has quit [Ping timeout: 256 seconds]
thc202 has joined #nixos
Cale has quit [Ping timeout: 258 seconds]
<srk>
asheshambasta: installPhase is supposed to create $out
<murmr>
asheshambasta: Not sure why the linking does not work, but as an aside I'd recommend against using the "-DSUPERNOVA=OFF" flag
<asheshambasta>
murmur: thanks; I'll try without.
<asheshambasta>
srk: makes sense; but then how does one symlink the result of a derivation to a custom path?
<srk>
my note :( #supercollider-with-plugins # -- FIXME
orivej_ has quit [Ping timeout: 256 seconds]
orivej has joined #nixos
<srk>
asheshambasta: not that easy and no good for linking stuff into users home
<murmr>
asheshambasta: It looks like building supernova plugins is off by default, I use the flag "-DSUPERNOVA=ON" (supercollider uses supernova by default)
<asheshambasta>
sigh; I can still feel lost with nix at times.
<murmr>
srk: Trying to see if I can export the SC_PLUGINS_PATH variable to the output path of the package I'm building (sc3-plugins) in it's shellHook. (instead of symlinking the path to somewhere in my homedir)
<srk>
right, my idea was to create a wrapper for scide - something like ${supercollider}/bin/scide -U ${lib.concatStringsSep ";" pkgs}
alp has joined #nixos
<srk>
so you could do supercolliderWithPackages [ pkgs.sc3-plugins ], but not sure how useful it is - are there tons of sc plugins?
<murmr>
srk: I think you'd have problems with the sclang REPL, as well as launching the servers independently.
<srk>
I see
<srk>
(it could wrap all of them :))
<__monty__>
I get a permissions issue when running nix-collect-garbage, how can I fix this, just remove the offending file as root? http://ix.io/2rLF
alexherbo2 has quit [Ping timeout: 240 seconds]
sigmundv has joined #nixos
<murmr>
srk: It's not amazing, but I do think that setting the environment variable (if it works) would be least intrusive. But as a stretch goal it would be nice to package all of the quarks.
<murmr>
srk: resulting in a similar API as you just posted ^^^
<srk>
murmr: yeah, in that case a module would be better, shellHook only works for nix-shell(s)
<asheshambasta>
So basically; the nix file I shared is what I import in my configuration.nix as some value; then add that to the environment.systemPackages. Then I do a `nixos-rebuild switch` but I see no output related to sc3plugins; nor can I find _where_ (if at all) it was installed.
<murmr>
If we set an environment variable in an installation phase does it persist?
<srk>
murmr: module can then set environment.variables for the system
<srk>
murmr: not really, packages (and their builds) are independent of system env
<srk>
something like nixos/modules/programs/supercollider.nix that could conf environment.(systemPackages/variables)
<srk>
or maybe home-manager module is better for this
mariatsji has joined #nixos
<murmr>
asheshambasta: Try creating a shell.nix file that has supercollider as a buildInput and within a let binding run callPackage on the sc3-plugins file
<murmr>
srk: Interesting. I wonder how other interpreted languages accomplish this. A lot of them manage some sort of package load path as an shell environment.
<srk>
instead of packages using { pkgs, ...}: ... pkgs.hello pkgs.wget they can be in form of { hello, wget, ...}: ...
<__monty__>
asheshambasta: It's often useful when mkDerivation is the return value of a function.
<asheshambasta>
I see; thanks. However, in this case what seems perplexing to me is that with or without callPackage; if I just import the sc3plugins.nix file that I shared earlier and add that value to my systemPackages; nothing seems to change and there is no output.
<asheshambasta>
the system is rebuilt; and that is it. No output about the sc3-plugins derivations being built/symlinked whatsoever.
<__monty__>
I think I joined after you shared this.
<asheshambasta>
my next question is; so now sc3-plugins builds and installs; how does one now tell supercollider which path to use via the -U flag?
Rurd2di_ has joined #nixos
<srk>
manually you can get the path like nix-build --no-out-link -A pkgs.sc3-plugins
Rurd2di has quit [Ping timeout: 265 seconds]
civodul has joined #nixos
whald has quit [Remote host closed the connection]
<srk>
or build a wrapper quickly using nix.. nix-build -E 'with (import <nixpkgs> {}); pkgs.writeScriptBin "scsc3" "${pkgs.supercollider}/bin/scide -U ${pkgs.sc3-plugins}"'
<asheshambasta>
srk: that seems to output the path from a test build in a repl; not the one built via nixos-rebuild (after modifying the nix file; which I'm assuming would mean a different path.)
<{^_^}>
[nixpkgs] @zimbatm pushed commit from @iAmMrinal0 to master « google-cloud-sdk: 297.0.1 -> 301.0.0 (#93237) »: https://git.io/JJG1q
zanc has joined #nixos
alp has joined #nixos
<NobbZ[m]>
Oh, wait, it does indeed, there is a toplevel attribute `pkgs`… I always forget about that… Though as far as I understand the docs, `f: [ f.hello ]` should do as well
<cab404[m]>
<jbgi "is there a way to compute expone"> why would you ever need this?
<manveru>
well, it would be nice to be able to say (2 ** 11) or such :)
<cab404[m]>
I didn't even knew nix has support for floating point
<simpson>
cab404[m]: It might come up naturally in e.g. allowing a configuration option for some GiB of space, but where the underlying binary is e.g. `java` and expects B of space.
Extends has joined #nixos
<cab404[m]>
<simpson "cab404: It might come up natural"> ```nix
<{^_^}>
matthiaskrgr/cargo-cache#84 (by evanjs, 2 weeks ago, open): Target directory is not always inferred from build and may not exist under target/debug or target/release
<evanjs>
matthiaskrgr: checking to make sure I'm handling the feature flag correctly on the nix side. Once I get that working, I will update you on what tests are _actually_ failing with the offline_tests feature enabled
<meditans>
morning! I'm confused on the dev workflow one should use to hack on the `nix` repo, now that flakes are merged. Before, I did `nix-shell`, and then `make clean && autoreconf && configurePhase && make all install -j8`
<meditans>
now, trying that complains about missing permissions, even when I try to use the flake-compat stuff in `default.nix`. What's the right workflow now to build nix?
zanc has joined #nixos
<{^_^}>
[nixpkgs] @markuskowa opened pull request #93280 → ucx: 1.7.0 -> 1.8.1, build openmpi with ucx → https://git.io/JJGbr
<meditans>
hmm, it seems that I needed the `./boostrap.sh` command, let me see that :D
orivej has quit [Quit: No Ping reply in 180 seconds.]
bvdw has joined #nixos
<questionasker666>
can anyone here help with building a default.nix expression for a python package?
orivej has joined #nixos
asheshambasta has joined #nixos
<questionasker666>
I have gotten it almost working but have problems with dbus
zupo has quit [Client Quit]
<srhb>
questionasker666: People are often better able to tell whether they can help you or not if you pose your actual question, maybe even backed up with a pastebin of the issue at hand. :)
<questionasker666>
I can get it to build with nix-build
alexherbo2 has quit [Ping timeout: 265 seconds]
mariatsji has joined #nixos
bendlas has joined #nixos
pamplemousse has quit [Ping timeout: 256 seconds]
<questionasker666>
and when I try to use it by running nix-shell and then soundcraft_dbus_service --setup (no sudo) I get this message https://pastebin.com/Lw9LvAF2
pamplemousse has joined #nixos
<srhb>
questionasker666: Can you pastebin the errors you're seeing? Seems to build fine here.
<srhb>
I'm not really well-versed in the python ecosystem, but I think buildPythonPackage is mostly for libraries.
<questionasker666>
@srhb me neither, this is my first ever nix expression
<zanc>
why do I need to download the tar.gz using nix-prefetch-url in order to get the hash? `nix-prefetch-url file:///path/to/file` gave different hash
<clever>
zanc: some things want the `nix-prefetch-url --unpack` hash
fendor_ has quit [Remote host closed the connection]
growpotkin has joined #nixos
<zanc>
clever: what are those? I understand it creates /nix/store/xxxxx-program.tar.gz/ directory
<clever>
zanc: prefetch on its own, returns the hash of the tar .tar.gz file
mariatsji has quit [Ping timeout: 264 seconds]
<clever>
zanc: prefetch --unpack will return the hash of the NAR of the directory you get from unpacking
jbgi has quit [Ping timeout: 272 seconds]
<clever>
zanc: which you need, depends on how your fetching the thing in the nix code
<srhb>
questionasker666: I think I can probably give you a few pieces of advice, but not the complete story
<zanc>
of course I used --unpack, but `tar xf foo-1.2.3.tar.gz && nix-prefetch-url --unpack file:///path/to/foo-1.2.3` gave different result to `nix-prefetch-url --unpack https://github.com/user/repo/archive/v1.2.3.tar.gz`
<srhb>
questionasker666: Second, it appears it relies on setting up a systemd service with some imperative shenanigans -- /nix/store/fd2g3szcwg0c4p08bcxlw69143qbkqsc-soundcraft-utils-0.0.1/lib/python3.8/site-packages/soundcraft/data/dbus-1/system-services/soundcraft.utils.notepad.service -> /usr/share/dbus-1/system-services/soundcraft.utils.notepad.service
<srhb>
questionasker666: This won't work on NixOS, if that's what you're running.
<questionasker666>
@srhb yes I think the service is the problem
<questionasker666>
Yes I have NixOS
<srhb>
A package can not in itself alter system services
<questionasker666>
I'm trying to get this thing running on my computer
<srhb>
You need to write some NixOS config/module to handle that.
<questionasker666>
@srhb yes that seems reasonable
<clever>
zanc: nix-prefetch-url doesnt really work on a raw directory, you want nix-hash for that
<tpw_rules>
if i want to update a package, then enhance it to enable more features, should that be two PRs or one?
<srhb>
tpw_rules: Probably two. :)
<srhb>
tpw_rules: No reason to hold up the bump with feature changes.
<zanc>
clever: oh right, I used nix-hash on .tar.gz instead of the unpacked dir
<tpw_rules>
alright, thank you
<zanc>
clever: my bad
orivej has quit [Ping timeout: 256 seconds]
<srhb>
tpw_rules: (Not set in stone for sure, just opining. :)
<questionasker666>
srhb: I will investigate this further, thanks for help
orivej has joined #nixos
<srhb>
questionasker666: You're welcome, good luck :)
mariatsji has joined #nixos
noudle has quit []
jbgi has joined #nixos
<tpw_rules>
here's a weird question: if this Apache 2.0 package requires nix to download nonfree firmware blobs before the build so they can be compiled in, then is it free?
pamplemousse has quit [Ping timeout: 264 seconds]
<simpson>
Depends on the license of the blobs. Can you be more specific? You might have to bug the package's upstream maintainers.
pamplemousse has joined #nixos
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #nixos
emmanuel` has quit [Read error: Connection reset by peer]
emmanuel` has joined #nixos
<{^_^}>
[nixpkgs] @Zimmi48 opened pull request #93283 → elmPackages.elm-spa: init at 5.0.2 → https://git.io/JJGA0
<tpw_rules>
i don't think they actually get compiled in though. just stored in a data directory
<simpson>
I would not have high hopes for that particular upstream, although you could still try reaching out. For us, I think that you could probably pre-download the blobs into a separate derivation, mark *that* as unfree, and then depend on it from the Apache 2 main build. You'll have to patch/configure cmake to not go out and fetch them.
<tpw_rules>
alright, that was what i was going to do anyway. there's zero chance that the blobs themselves become free ever.
woleium has joined #nixos
nixbitcoin_ has joined #nixos
<simpson>
tpw_rules++ for trying
<{^_^}>
tpw_rules's karma got increased to 2, it's a crit!
nixbitcoin has quit [Ping timeout: 240 seconds]
<tpw_rules>
do you happen to have a clue about nix's python infrastructure by the way?
<simpson>
I have a couple clues, yeah. What's up?
<{^_^}>
[nixpkgs] @offlinehacker pushed 2 commits to master: https://git.io/JJGA9
<{^_^}>
To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected. See: tofu-vim
<cole-h>
mog: It looks like it's because you need a `filesystems."/nix/persist"` with `neededForBoot = true;`
<porphyrogenetos>
Any idea how I would get gtk/qt packages installed as nix-user to properly use the system GTK theme and cursor theme on a non-NixOS distro?
nickeraqua has joined #nixos
<worldofpeace>
psiperator: they don't?
<worldofpeace>
hmmm, that's pretty weird
orivej_ has quit [Ping timeout: 256 seconds]
<mog>
so impermanence only works on whole fileystem not a dir
orivej has joined #nixos
dermetfan has joined #nixos
<mog>
because the home-manager side is working fine
<nickeraqua>
On newest commit, I'm getting 'unexpected EOF reading a line' when doing nix-build release.nix
<nickeraqua>
Is this a problem with me?
<porphyrogenetos>
worldofpeace: The window titlebars are fine but the cursor theme is the gnome default instead of what i had custom set it to.
<srhb>
nickeraqua: Latest what commit? nix master?
<nickeraqua>
Right. I pulled about 10 hours ago.
<nickeraqua>
NixOS/nix
<mog>
because the directions from the blog post make it look like it should work
<srhb>
nickeraqua: Looks like flakes were merged(?)
<qyliss>
Flakes have been merged as an experimental feature
<srhb>
nickeraqua: So you'll need nixFlakes to build it.
<srhb>
(or at least, that'd be easy)
<nickeraqua>
Oh really. I'm not familiar with flakes. Maybe easier to go to the last release then. I just wanted to build from source and chose the latest.
<cole-h>
Why not `nix-shell -p nixFlakes` and build away?
<{^_^}>
[nixpkgs] @srhb opened pull request #93288 → libapparmor: Fix build with gnumake 4.3 → https://git.io/JJGxx
questionasker666 has quit [Remote host closed the connection]
<NinjaTrappeur>
mightybyte: nice! I deployed it on my personal infra to try it out before going on hollidays. I modified a couple of things around the configuration management to make it easier to deploy on a pure NixOS machine (ie. without leveraging obelisk), I'll clean that up and PR it when I come back from hollidays. Do you plan to create a irc chan?
cosimone has quit [Read error: Connection reset by peer]
bwh_ has joined #nixos
alexherbo2 has joined #nixos
kreyren has quit [Remote host closed the connection]
<zanc>
`nix search` doesn't seem to separate between `-f '<nixpkgs>'` and `-f '<something-else>'`, it seems to use the same cache (~/.cache/nix/)
kreyren has joined #nixos
<zanc>
`nox` doesn't either
kreyren has quit [Remote host closed the connection]
kreyren has joined #nixos
jbox has joined #nixos
rajivr has quit [Quit: Connection closed for inactivity]
never_released has joined #nixos
never_released_ has quit [Ping timeout: 240 seconds]
woleium has quit [Remote host closed the connection]
Cale has quit [Remote host closed the connection]
<srhb>
zanc: I believe the intention is to build it with the flakes mechanism.
<tazjin>
does that technically make all of nix experimental? ;)
<srhb>
I'm not sure I want to make a value judgment there. :D But it is master, after all.
knupfer has quit [Quit: knupfer]
knupfer has joined #nixos
domogled has joined #nixos
<evanjs>
gah. getting "nixos-ova> preallocating file of 2650208 bytes: No space left on device" using nixos-generate again. whyyyy
Cale has joined #nixos
<evanjs>
unrelated to host device storage AFAIK
<symphorien>
Inodes ?
nix_noob has joined #nixos
<nix_noob>
Hello there! Is there always an option 'extraConfig' for every program that uses configuration file(s)?
<evanjs>
symphorien: I checked. / has 69% used and the rest have 1% used
domogled has quit [Client Quit]
orivej_ has quit [Ping timeout: 256 seconds]
orivej has joined #nixos
<zanc>
srhb: but the README.md still has release.nix which is misleading :^)
<srhb>
zanc: Yes, presumably that's an oversight. Maybe you can PR a fix? :)
<cransom>
nix_noob: not always, but it's common.
<nix_noob>
cransom: if there isn't, can I somehow define a config for some program inside my nix configuration file (so that it creates a certain config file)?
jbox has quit [Ping timeout: 260 seconds]
jbox has joined #nixos
<nix_noob>
e.g., I didn't find any for spectrwm. Maybe I'm just a little confused
<cransom>
i'm completely unfamiliar with spectrwm, but according to the archwiki, it will look at ~/.spectrwm.conf first for config, and if not there, /etc/spectrwm.conf. you can use environment.etc to make an /etc/spectrwm.conf that's managed by nixos.
<evanjs>
lassulus: have you run into issues with "no space left on device" for image generation with nixos-generators?
<evanjs>
using -f virtualbox right now
<{^_^}>
[nixpkgs] @danieldk opened pull request #93290 → nixos/manual: add a section about enabling OpenCL for AMD GPUs → https://git.io/JJGhM
<nix_noob>
cransom: Yes, indeed. But can I manage my configuration inside my nix configuration file? Otherwise making it old way while using nix... I just don't get the point then. Maybe I should create a module or something by myself?
noneucat has quit [Quit: WeeChat 2.8]
<cransom>
which nix config file are you referring to?
<nix_noob>
I mean, I can just go and create the config for it, but this isn't the nix-ish way for doing that, is it?
<lassulus>
evanjs: not yet
lainon has joined #nixos
<nix_noob>
cransom: I guess, the global one. I could use a home-manager, too, if it's necessary
<symphorien>
nix_noob: environment.etc."program.conf".text = "hello" will create /etc/program.conf with content "hello"
orivej_ has joined #nixos
orivej has quit [Ping timeout: 272 seconds]
<balsoft>
Smith: Oh, right! I forgot to set `https = true`. Thank you very much!
<nix_noob>
symphorien: I suppose, it solves the problem. Thanks! And thank you, too, cransom!
<zanc>
does `nix-store --gc` defaults to <nixpkgs>? can't it use something else?
<nix_noob>
I thought nix language can only create derivations. That's why I was confused
<srhb>
zanc: I don't think that makes sense. nix-store --gc doesn't use nixpkgs for anything.
<srhb>
nix_noob: But NixOS can do a lot more -- but yes, it relies on various scripts (created by nix) to symlink things into place.
<srhb>
nix_noob: (Consider that you can write a script that copies something out of the store -- same deal :))
sangoma has quit [Ping timeout: 258 seconds]
<srhb>
in nix, I mean.
<nix_noob>
srhb: awesome!
<srhb>
zanc: It simply deletes all paths that are not referenced from a root. Which "package set" they came from has no bearing at this point, and nix doesn't even have that knowledge.
nix_noob has quit [Remote host closed the connection]
<zanc>
srhb: what's a root?
sangoma has joined #nixos
<srhb>
zanc: A bit circumspect, but: A reference to a store path that prevents garbage collection
<srhb>
zanc: Examples are in /nix/var/nix/gcroots :)
<srhb>
zanc: More examples are in the nix-store man page.
proofofkeags has quit [Remote host closed the connection]
<zanc>
srhb: are you talking about the `nix-env --list-generations`? if they're not there it will get garbage collected?
proofofkeags has joined #nixos
<srhb>
zanc: That's usually how it works, yes. That's how "old software" is usually deleted -- the profiles are destroyed, relinquishing their root on a number of store paths.
<srhb>
Thus freeing them for garbage collection (if nothing else references them)
nate48423 has quit [Ping timeout: 256 seconds]
nate48423 has joined #nixos
capt_zap has quit [Ping timeout: 264 seconds]
<zanc>
srhb: anyway I looked at your github profile, are you non-binary?
<{^_^}>
[nixpkgs] @mdlayher opened pull request #93291 → prometheus-modemmanager-exporter: init at 0.1.0, add NixOS module → https://git.io/JJGjk
bahamas has joined #nixos
<srhb>
zanc: Some people might be a bit intimidated by that question from a stranger in a public irc channel -- just take care -- but no, I am not. :)
proofofkeags has quit [Ping timeout: 240 seconds]
bahamas has quit [Read error: Connection reset by peer]
<zanc>
srhb: so natural-born female?
<srhb>
And that question is definitely out of line.
<gchristensen>
correct
sangoma has quit [Ping timeout: 240 seconds]
<tpw_rules>
is there a way to have a package install udev rules?
<manveru>
tpw_rules: not directly
<manveru>
udev rules go into etc, so that's handled by nixos modules
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/JJGj7
<notgne2>
is there any portable SSH or other shell service you can easily run on NixOS? it'll only be accessed through an SSH tunnel so security isn't a concern, I just want something more friendly (with an actual prompt) than `nc | bash`
<Yaniel>
what do you mean "portable"
<notgne2>
as in, a single command that can be ran on the NixOS installer ISO (no rebuilds etc)
<manveru>
ssh?
<notgne2>
enabling the SSH server would require altering the config and rebuilding, I'm wondering if there's some tool I don't know of that will just open up a server to access a shell
<theduke>
I remember being very impressed by how easy when I needed one a few months ago.
betawaffle has quit [Ping timeout: 244 seconds]
<theduke>
* I remember being very impressed by how easy it is when I needed one a few months ago.
simba2 has joined #nixos
<theduke>
Take that, Debian...
<theduke>
* take that, Debian...
bgupta has joined #nixos
betawaffle has joined #nixos
<eyJhb>
cab404[m]: FF -> firefox :p
<eyJhb>
`During the release cycle for Firefox version 73, which goes into pre-release channels on December 3, 2019 and into release on February 11, 2020, Firefox will continue to read sideloaded files, but they will be copied over to the user’s individual profile and installed as regular add-ons. Sideloading will stop being supported in Firefox version 74, which will be released on March 10, 2020. The
<eyJhb>
transitional stage in Firefox 73 will ensure that no installed add-ons will be lost, and end users will gain the ability to remove them if they chose to.` damn it
<cab404[m]>
oh okay
<cab404[m]>
right now -- yes, but they are deprecated that
capt_zap_ has joined #nixos
<eyJhb>
Yeah, already deprecated...
<eyJhb>
Sadly
proofofkeags has quit [Ping timeout: 246 seconds]
shiver has joined #nixos
proofofkeags has joined #nixos
capt_zap has quit [Ping timeout: 264 seconds]
meditans has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @numkem opened pull request #93296 → ugrep: init at 2.4.1 → https://git.io/JJZew
sangoma has joined #nixos
<{^_^}>
[nixpkgs] @bcdarwin opened pull request #93297 → python3Packages.torchgpipe: init at 0.0.5 → https://git.io/JJZeP
<eyJhb>
Even when placed in the profile folder it won't work. Sad
<evanjs>
getting "hash mismatch importing path '/nix/store/l7qqqls96q6x7wgvii6p0chin5ni74yz-python-2.7.18';" when trying to create a virtualbox image with nixos-generators
<evanjs>
anybody see this sort of behavior before?
chimay has quit [Ping timeout: 240 seconds]
omneh has joined #nixos
omneh has joined #nixos
omneh has quit [Changing host]
<{^_^}>
[nixops-aws] @adisbladis pushed to boto3-stubs-dev « Move boto3-stubs to dev dependencies »: https://git.io/JJZe9
<{^_^}>
[nixops-aws] @adisbladis opened pull request #107 → Move boto3-stubs to dev dependencies → https://git.io/JJZeQ
proofofkeags has quit [Remote host closed the connection]
mananamenos_ has joined #nixos
OmnipotentEntity has quit [Remote host closed the connection]
sangoma has quit [Quit: WeeChat 2.8]
orivej_ has quit [Ping timeout: 260 seconds]
orivej has joined #nixos
<{^_^}>
[nixops-aws] @adisbladis merged pull request #107 → Move boto3-stubs to dev dependencies → https://git.io/JJZeQ
<{^_^}>
[nixops-aws] @adisbladis pushed 2 commits to master: https://git.io/JJZed
noudle has joined #nixos
xd1le has quit [Quit: Quit]
woleium has joined #nixos
noudle has quit [Client Quit]
woleium has quit []
woleium has joined #nixos
<woleium>
hi folks :) I'm new to nixos, but not linux. I'm playing around with a manual install in virtualbox but I cant seem to get the vbox extensions installed. virtualisation.virtualbox.guest.enable = true; doesn't seem to work - "the option virtualization in configuration.nix does not exist". Any ideas how to import/include it?
<danielrf[m]>
woleium: check the spelling of "virtualisation" vs "virtualization"
<clever>
woleium: with an s or a z?
<woleium>
I'm using z, "virtualization"
<gchristensen>
use an `s` :)
<clever>
woleium: but the option name uses an s
<jneplokh>
<woleium "I'm using z, "virtualization""> It seems to be with an "s"
<TheSirC[m]>
<evanjs "vcunat suspects it's related to "> I think it might be related : vulkaninfo is sending some weird output too !
vesper11 has quit [Ping timeout: 260 seconds]
shiver has quit [Ping timeout: 272 seconds]
<TheSirC[m]>
I thought I broke something again, now I am reliefed
vesper11 has joined #nixos
<TheSirC[m]>
Is there a hotfix ?
<evanjs>
not sure, as I can't even fully reproduce on my machine :D
<evanjs>
like some people mentioned switching from configuration.nix <-> nix-env seemed to have an effect, but *shrugs*
capt_zap_ has quit [Ping timeout: 264 seconds]
<Yaniel>
I don't have problems with opengl but vulkan locks up the entire X session
<Yaniel>
interestingly enough, vkcube does not
<Ankhers>
Has anyone had issues trying to build an application with gstreamer? I have it in my shell.nix file, but pkgconfig still can't seem to find it.
<evanjs>
I was able to fix my hash mismatch problem by using `sudo nix-store --repair-path /nix/store/xxxxxxx`
<TheSirC[m]>
Yaniel: evanjs : Yeah thats weird because I happened to post here because I am in a deep rabbit hole to know why Satisfactrory (a game) suddenly stopped working after the upgade
<{^_^}>
[nixpkgs] @worldofpeace pushed 55 commits to release-20.03: https://git.io/JJZfn
<{^_^}>
[nixpkgs] @worldofpeace pushed 0 commits to gnome-20.03: https://git.io/JJZfc
<{^_^}>
[nixpkgs] @worldofpeace pushed 0 commits to gnome-20.03: https://git.io/JJZfC
fendor has joined #nixos
<nickeraqua>
I'm trying to nix-build the release and I get failures with some errors saying /store/n83qnyb8dck2l2jig1wd6g8psi0by1k8-bash-4.4-p23/bin/bash: /miniperl: No such file or directory
nolan_d has quit [Quit: authenticating]
<nickeraqua>
Looks like something about perl?
nolan_d has joined #nixos
<nickeraqua>
On darwin
<infinisil>
nickeraqua: What release?
<infinisil>
There's millions of releases of things
<nickeraqua>
I built from source on tagged 2.3.6
<TheSirC[m]>
Yaniel: oh 🆗
<infinisil>
nickeraqua: Oh you mean Nix?
<nickeraqua>
Yeah so I installed Nix and that's fine. And now I'm trying to build a nix release tarball using nix-build which is not working because of that.
<TheSirC[m]>
I mean that opengl bug is just silent that's kind of crazy
<infinisil>
nickeraqua: What's the full command
<infinisil>
Gotta be specific when you want help with a problem
<nickeraqua>
The running nix and the nix I'm trying to build are both 2.3.6
<nickeraqua>
Oh sorry. nix-build ./release.nix -A binaryTarball.x86_64-darwin
<{^_^}>
#91748 (by sycured, 2 weeks ago, open): impossible to link (ld / clang) liboping on macOS Big Sur 11 Beta
<eyJhb>
How can I get nix-shell -p <something> to use my default shell fish, instead of bash?
<mitchellh>
Exactly what i was looking for thanks colemickens
<avn>
Folks, anyone use `morph` to deployment? What mean `copying path '/nix/store/0ryld65bkaj5f698v8ix5vw3rcjnylv5-nfs.conf' to 'ssh://froggy'error: cannot add path '/nix/store/0ryld65bkaj5f698v8ix5vw3rcjnylv5-nfs.conf' because it lacks a valid signature` and how to fix it?
nabataeus has joined #nixos
justanotheruser has quit [Ping timeout: 240 seconds]
<bqv>
i wanted to use morph, but flakes
evanjs has quit [Ping timeout: 240 seconds]
evanjs has joined #nixos
<avn>
`nix copy --to ssh://froggy /nix/store/0ryld65bkaj5f698v8ix5vw3rcjnylv5-nfs.conf` have same effect, "because it lacks a valid signature"
<colemickens>
avn: is your user a trustedUser on froggy?
<avn>
colemickens: probably not
<avn>
colemickens: will try to add
seku has joined #nixos
<colemickens>
There's also... --no-check-sigs that might be able to force it. I can't remember if that works to push like you're doing though.
<excelsiora>
hey, I have commented a few things in my configuration.nix, saved, and run sudo nixos-rebuild swith, but I'm not getting a new generation and nix-collect-garbage isn't working. Thoughts?
<{^_^}>
[nixpkgs] @romildo opened pull request #93306 → kdesu: provide a script in bin and look for daemon first in /run/wrappers/bin → https://git.io/JJZU6
<srhb>
excelsiora: How are you concluding that you're not getting a new generation?
<excelsiora>
I do list generations and I got just the one
<excelsiora>
nix-env --list-generations
<srhb>
excelsiora: with --profile /nix/var/nix/profiles/system ?
<emmanuel`>
Would you guys recommend against running nixos to kick off a build in nixos?
<emmanuel`>
s/in nixos//
<gchristensen>
hm?
<srhb>
emmanuel`: Failed to parse :)
<emmanuel`>
I should have made myself clearer
<emmanuel`>
I want to consider using a docker container to run nixos.
<srhb>
That's not trivial.
<srhb>
(because, systemd)
<srhb>
Among other things.
<emmanuel`>
Ok, well the only thing that I really want to do is initiate a nix-build. Nothing more.
<srhb>
Ah ok
<srhb>
Would I recommend against it? No... :)
<srhb>
Absolutely doable. Usually this is done in CI. It tends to be slow especially on shared services because even restoring the store from cache is slow.
<srhb>
Depends on your use case.
<emmanuel`>
I guess I'll let it rip and see what comes out.
<srhb>
Seems like a fair approach. :)
<srhb>
fwiw there are pre-built images out there set up for running nix inside a container.
<emmanuel`>
I had actually tried to do this build on a NixOS AMI. The build ran out of disk space. Instead of getting a bigger one, and potentially costing my employers more money in AWS, I decided to try this approach.
ATuin has quit [Ping timeout: 264 seconds]
<srhb>
I'm surprised that that's cheaper, but maybe it shouldn't be surprising. :D
heinrich5991 has quit [Remote host closed the connection]
<colemickens>
docker://nixos/nix can run nix-build
<colemickens>
I use builds.sr.ht (to build nixpkgs-wayland and flake-firefox-nightly). It has nixos support and it is about as easy as it gets.
<Henson>
has anyone used a cell modem with Nix without using NetworkManager?
<infinisil>
Not that full NixOS should be needed for CI, but still
itshaydendev has joined #nixos
heinrich5991 has joined #nixos
<itshaydendev>
So I'm trying to rebuild with `nixos-rebuild switch`, but home-manager is giving me this -- error: syntax error, unexpected $end, at /nix/store/mvsqzg5x5qfb1j0s5iballhblg4n2fsb-env-manifest.nix:1:1
<itshaydendev>
I haven't changed anything, just config files that should be symlinking in
<Henson>
alternatively, is there a way to use NetworkManager without it trying to automatically manage all network devices? I have a remote computer that's being managed well by dhcpcd, but I need to get a cell modem working on it. I'd like to use ModemManager, but only on the wwan interface, none of the others. I see there's a an "unmanaged" nixos config option that will disable specific interfaces.
cosimone has joined #nixos
<srhb>
itshaydendev: That doesn't sound good. Is the file in question empty?
<itshaydendev>
Yeah
<itshaydendev>
Just found something on the HM github, looks like its a corruption thing
<srhb>
itshaydendev: Hmm. Can you rollback your profile?
<srhb>
itshaydendev: Yeah, it sounds like it.
<itshaydendev>
I don't really want to roll back tbh
lsix has quit [Quit: WeeChat 2.8]
<itshaydendev>
There are some changes in use right now that might be wiped out
<srhb>
itshaydendev: I understand, but I doubt you have a way _forward_ without getting rid of that env-profile.nix. Maybe someone else has an idea.
fendor_ has joined #nixos
<srhb>
You may be able to just delete that profile and immediately rebuilding.
<itshaydendev>
Alright, lemme try that
<itshaydendev>
Looks like that's worked
<itshaydendev>
Yep! It has
<itshaydendev>
Thanks! :D
<bqv>
avn: i wouldn't expect them to implement it, seems a big ask for people not already using flakes
<srhb>
itshaydendev: phew :)
<itshaydendev>
Back to polybar config lol
fendor has quit [Ping timeout: 240 seconds]
erasmas has quit [Quit: leaving]
<avn>
bqv: may be eelco's shim (flake-compat) for hydra would work with morph
simba2 has quit [Ping timeout: 256 seconds]
<srhb>
bqv: We may be convinceable to implement flakes if people want it. O:-)
nickeraqua has quit [Remote host closed the connection]
<srhb>
We've been running into some split repo scenarios where frankly it would be a godsend.
mananamenos__ has joined #nixos
<srhb>
oh, avn was probably the right tag there, sorry.
<srhb>
Either way, issues would certainly be appreciated. :)
fendor_ has quit [Read error: Connection reset by peer]
Mateon1 has quit [Ping timeout: 264 seconds]
cyphase has quit [Ping timeout: 264 seconds]
woleium has quit [Remote host closed the connection]
acarrico has quit [Ping timeout: 256 seconds]
woleium has joined #nixos
Henson has joined #nixos
ixxie has quit [Ping timeout: 264 seconds]
itshaydendev has quit [Remote host closed the connection]
<colemickens>
okay I give up, I need help - I can't get hydra to give me the option for a flakes build. I thought I should see it in the drop down on the New Project page
justanotheruser has joined #nixos
<colemickens>
I'm on hydra-unstable, I ran the migration, I switched to nixFlakes and added the flag in extraOptions. Seems like it should be nearly there?
julm has quit [Quit: leaving]
julm has joined #nixos
<gchristensen>
uh hmm
<eyJhb>
How does NixOS stand on applying custom patches to a package, to enable the ability to customize it better?
<gchristensen>
excellent, eyJhb
<eyJhb>
e.g. a patch for firefox, to allow for having policies.json in a profile, instead of pr. user or installation
cyphase has joined #nixos
<eyJhb>
Fair :D
<gchristensen>
colemickens: using services.hydra.package = pkgs.hydra-unstable; should be "it"
<gchristensen>
create a new jobset, and under configuration set its type to flake
<infinisil>
Oh wasn't there a recent nixpkgs PR for declarative firefox addons?