<jasom>
camsbury: use "-n" to test a single boot out, it's safer than -o
<Reiser>
makefu: love it, hahaha
<camsbury>
woops - well right now it basically boots to a black screen until I press ESC then takes me to nixos
<camsbury>
but progress!
<jasom>
camsbury: good luck!
<camsbury>
thanks :D right now seems not to have helped
<camsbury>
or maybe I just have to let it sit there for a bit
<camsbury>
but yea wondering if there is still some issue with keyboard input
<camsbury>
that was affecting the grub menu to begin with
<camsbury>
though I really know nothing and these are shots in the dark
<{^_^}>
[nixpkgs] @tbenst opened pull request #99129 → opencv: allow other blas/lapack → https://git.io/JUMKW
xcmw has joined #nixos
<{^_^}>
[nixpkgs] @tbenst opened pull request #99130 → opencv: allow other blas/lapack → https://git.io/JUMKR
<camsbury>
so, to recap for parties interested... keyboard doesn't work through bootloader, but works once it has moved on to asking me to decrypt luks drive
<camsbury>
I'd really like to get to the MacBook's BIOS
spease has quit [Ping timeout: 260 seconds]
<benley>
macbooks don't have a BIOS user interface like PCs typically do
<camsbury>
well Open Firmware or whatever
<benley>
it's EFI on intel macs
<camsbury>
long story short I'm trying to reinstall MacOS on it for a friend to give them my old comp
<camsbury>
I have a bootable installer plugged in
<camsbury>
tried to `efibootmgr` it ahead in the order
<camsbury>
but no luck
<camsbury>
at least it's just black a bit longer before hitting grub
<benley>
have you tried holding down the Option key while powering it on?
<nicolas[m]1>
Does `makeWrapper` with `argv0` work with bash scripts? I added an `echo "$0"` and it incorrectly prints `.$package-wrapped`
patagonicus13 has quit [Ping timeout: 260 seconds]
patagonicus134 is now known as patagonicus13
jani has joined #nixos
jani is now known as Guest86937
<Guest86937>
hi... does anyone have any tips on how to force nixos to rebuild qt or sddm or whatever it is that made my nixos stop working since a month ago? I can boot up into the version i updated on the 1st of September, and everything is great (just old versions), but all the rebuilds since go to a black screen flashing cursor top left. ctrl-alt-f1 gives
<Guest86937>
me a text console, and i can't get sddm to start
<Guest86937>
i tried the nix store corruption stuff in the troubleshooting guide, but that didn't help at all.
o1lo01ol_ has joined #nixos
o1lo01ol1o has quit [Read error: Connection reset by peer]
euandreh has joined #nixos
cjpbirkbeck has quit [Ping timeout: 272 seconds]
Qubasa has quit [Quit: WeeChat 2.7.1]
stephank3 has joined #nixos
Qubasa has joined #nixos
knerten1 has joined #nixos
nwspk has quit [Quit: nwspk]
andi- has quit [Remote host closed the connection]
Guest86937 has quit [Remote host closed the connection]
<iqubic>
Alright... Well, I've figure out that the command to run is vpnclient. Now I have a new issue. Running vpnclient yeilds this error message: "/run/current-system/sw/bin/vpnclient: line 2: /var/lib/softether/vpnclient/vpnclient: No such file or directory "
<{^_^}>
[nixpkgs] @jonringer pushed commit from @r-ryantm to master « python27Packages.jug: 2.0.2 -> 2.0.3 »: https://git.io/JUM5t
<radvendii>
so there's a $NIX_DEBUG variable in various scripts. How does that get set? Is there a command line argument I can pass to nix-build? Or is it something I set in the nix derivation?
<iqubic>
I'm trying to debug an issue with softether. Basically, the softether derivation installs a number of commands. Chief among these is `vpnclient` that I want to run. Running this command gives the error: "/run/current-system/sw/bin/vpnclient: line 2: /var/lib/softether/vpnclient/vpnclient: No such file or directory"
Pwnna has quit [Quit: Bye]
Pwnna has joined #nixos
palo1 has joined #nixos
sangoma has joined #nixos
palo has quit [Ping timeout: 264 seconds]
palo1 is now known as palo
ManiacOfMadness has joined #nixos
maxdevjs has quit [Ping timeout: 265 seconds]
waleee-cl has quit [Quit: Connection closed for inactivity]
alp has quit [Ping timeout: 272 seconds]
malook has joined #nixos
tyxie has joined #nixos
iqubic has left #nixos ["ERC (IRC client for Emacs 28.0.50)"]
iqubic` has joined #nixos
jb55 has joined #nixos
iqubic` has quit [Client Quit]
kreyren__ has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @vbgl pushed commit from @sternenseemann to master « ocamlPackages_4_06.ppx_let: propagate base and ppxlib to fix build of angstrom »: https://git.io/JUMpb
justanotheruser has quit [Ping timeout: 244 seconds]
andreas303 has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @vbgl pushed commit from @sternenseemann to master « ocamlPackages.angstrom: 0.14.1 → 0.15.0 »: https://git.io/JUMhW
<{^_^}>
[nixpkgs] @TredwellGit opened pull request #99147 → Revert "nixos/gnome3: launch gnome-shell wayland with RT scheduling" → https://git.io/JUDfu
lsix has joined #nixos
knerten1 has joined #nixos
sputny has joined #nixos
sputny has quit [Remote host closed the connection]
sputny has joined #nixos
zecnate has joined #nixos
knerten2 has quit [Ping timeout: 240 seconds]
Fare has quit [Ping timeout: 240 seconds]
<zecnate>
I have a project I'm writing nix expressions for as an alternative to its build/dependency system. It uses autoconf. What I'd like to do is make a derivation that spits out a `config.site` for autoconf that has all of the nix settings in it so that outside of nix I can then do `nix build ./nix/config-site.nix; CONFIG_SITE=./result/config.site
<zecnate>
./configure; make` and it will build using all nix prereqs outside of nix.
<zecnate>
Is this a common pattern? It seems like it might be. In which case is there a lib function to spit out a `config.site` file for me?
cognemo has quit [Quit: cognemo]
cognemo has joined #nixos
<zecnate>
It seems like a useful pattern even when I'm not building outside of nix to generate a `config.site` in one derivation, have a second derivation for deriving the output of `./configure`, and then a third for building, because this would enable more rapid "edit/compile/build" cycles when dependency/build toolchain stuff does not change.
<zecnate>
With my current nix build if I edit one application file, then rebuild the derivation, it runs all of `autoreconf; ./configure; make` in a single derivation builder, which redetects and rebuilds everything, making it unsuitable for that tighter dev cycle.
sputny has quit [Quit: sputny]
sputny has joined #nixos
domogled1 has joined #nixos
alp has quit [Ping timeout: 272 seconds]
rnhmjoj has quit [Changing host]
rnhmjoj has joined #nixos
rnhmjoj has joined #nixos
rnhmjoj has quit [Changing host]
<zecnate>
I'm just now starting to hand craft a `config.site` derivation, and one pitfall is that if I miss or misconfigure any setting, `./configure` will often notice "ambient" dependencies lying around outside of nix, so it will happily continue even though the result is incoherent.
azure1 has joined #nixos
domogled has quit [Ping timeout: 264 seconds]
<V>
just use nix itself to build the project
<simpson>
And then you can use `builtins.filterSource` to prevent local files from cluttering your build.
lunik1 has quit [Quit: Ping timeout (120 seconds)]
lunik1 has joined #nixos
domogled has joined #nixos
nsnc has quit [Quit: Ping timeout (120 seconds)]
nsnc has joined #nixos
<cole-h>
"outside of nix" is not a common pattern when using Nix :P
domogled1 has quit [Ping timeout: 246 seconds]
thonkpod has quit [Ping timeout: 260 seconds]
pikajude has joined #nixos
bob_twinkles has quit [Remote host closed the connection]
sputny has quit [Quit: sputny]
pikajude- has quit [Ping timeout: 260 seconds]
mmohammadi9812 has quit [Ping timeout: 258 seconds]
Fare has joined #nixos
sputny has joined #nixos
malook has quit [Quit: malook]
thonkpod has joined #nixos
bob_twinkles has joined #nixos
zupo has joined #nixos
fendor has joined #nixos
sputny has quit [Client Quit]
sputny has joined #nixos
alp has joined #nixos
azure1 has quit [Read error: Connection reset by peer]
sputny has quit [Client Quit]
sputny has joined #nixos
<zecnate>
Hm, I think I'm misunderstood. Building my project with the generic builder (or from scratch without nix), excluding all dependencies takes a long time on my machine. If I edit some source code, using the non-nix approach I can then run `make` and it will typically build in <1 minute. Then I can test my result. If, OTOH, instead of running make I
<zecnate>
run `nix build`, then I must wait the entire length of time again.
<zecnate>
This length of time inhibits faster development where the compile can help me find errors quickly as I develop.
azure1 has joined #nixos
<zecnate>
So "just use nix" doesn't work well for this usage pattern. It's _great_ for building other sources, build reproducibility, etc…
sputny has quit [Remote host closed the connection]
<V>
yes, nix fails miserably at incremental compilation
<zecnate>
Theoretically a super fined grained DAG of derivations for my project, such as a derivation for every .o file would let me "just build with nix" and regain this important tight feedback loop. ;-) Someday.
karantan has joined #nixos
<V>
well, it doesn't have incremental compilation full stop
<V>
either the build succeeds or it fails
bahamas has joined #nixos
<V>
and hopefully you don't get something fail while you're in the middle of compiling something else that takes forever to build, because otherwise that gets killed as well :)
<V>
theoretically, yes
<bahamas>
I have two channels added with nix-channel. how do I specify the channel when using nix-shell?
<zecnate>
I don't foresee any blockers to running `./configure` outside of nix in the way described, but then again, I'm not really an autoconf/packaging expert.
<V>
you could generate a derivation for every single one of your build artifacts
<zecnate>
V: That's where I want to get to eventually. But for now I don't grok autoconf and the internal dependencies well enough to do that and also it feels like a slight impedance mismatch between nix's primary use case.
cr4y1 has joined #nixos
<cole-h>
tbh I'd just use a shell.nix for this (set up the buildInputs with autoconf and gnumake and whatever else)
azure1 has quit [Read error: Connection reset by peer]
<zecnate>
I definitely am motivated to break up internal "modules" and make separate derivations for them, but that's still down the road.
<V>
zecnate: I wouldn't recommend it
<V>
nix is extremely badly suited towards this
<zecnate>
code-h: oh, good point. Let's try that first.
mallox has joined #nixos
<cole-h>
>> code
<cole-h>
lol
<zecnate>
Oh hey wait, in the nix-shell, is the target derivations `src` in the nix store or a local directory? I need the local directory I can edit interactively for that to work...
<zecnate>
V: What kinds of problems do you expect I would run into if I went down that route?
<cole-h>
uh
<cole-h>
A shell.nix is usually just made to bring the packages you need into scope so that `nix-shell shell.nix` will allow you to run whatever build commands you need
<V>
zecnate: well... either you'd need to use IFDs or generate a derivation for every single object file
<V>
you don't need to run `nix-shell shell.nix`
<V>
just `nix-shell` will do
<cole-h>
I was trying to be explicit
cfricke has joined #nixos
<cole-h>
nix-shell is a bit magical like that.
<V>
the entire nix CLI is a bit magical
<cole-h>
:)
azure1 has joined #nixos
cole-h has quit [Quit: Goodbye]
mananamenos has joined #nixos
Fare has quit [Ping timeout: 244 seconds]
Orbstheorem has joined #nixos
<zecnate>
Is there a shorthand for this directory pattern: `{ foo = import ./foo.nix; bar = import ./bar.nix; qux = import ./qux.nix; }` ?
<AWizzArd>
I am writing an app and use Nix as build system. I would like to specify four things: what Haskell-Dependencies do I want to be in my release? What Haskell-Deps do I want to have during development time (i.e. benchmarking, tests, ...). And then I want to specify what OS-Deps I want during development in my nix-shell (ls, cd, cat, tree, ...) and what OS-Deps I want to be in my release (which can go into a tar.gz for dockerization).
<AWizzArd>
What is the meaning of buildDepends, libraryHaskellDepends, executableHaskellDepends, libraryToolDepends, executableToolDepends, testToolDepends, benchmarkToolDepends, librarySystemDepends, executableSystemDepends, libraryFrameworkDepends, executableFrameworkDepends, testDepends, and the 50 others?
<V>
bahamas: you can specify literally anything in the derivation and it'll get passed as an env var to the builder
<V>
see NIX_CFLAGS_COMPILE above
<{^_^}>
[nixpkgs] @peti pushed 112 commits to haskell-updates: https://git.io/JUDOf
<bahamas>
V: I see. I'll have to find a way to handle that then. thank you!
peelz has quit [Remote host closed the connection]
cfricke has quit [Quit: WeeChat 2.9]
<AWizzArd>
bahamas: I worked through this, it’s very useful and got me really far. But he also doesn’t mention those four things. In one example he puts `testToolDepends` in his release.nix without mentioning what this is good for.
azure1 has quit [Read error: Connection reset by peer]
cfricke has joined #nixos
<AWizzArd>
bahamas: can you explain what testDepends is, and contrast it with testToolDepends, testHaskellDepends, testSystemDepends and testFrameworkDepends?
<AWizzArd>
I would expect four categories: OS-Deps for release and additional OS-Deps for development time. And then the same for Haskell libs: Haskell-Deps for release and additional Haskell-Deps that I want during development time. Those would be four categories.
sangoma has quit [Read error: Connection reset by peer]
azure1 has joined #nixos
<AWizzArd>
I would like to specify for example that I want ca-certs in my release.tar.gz because I need them in my docker image. Also I want to have curl, ls, cat and friends available in my nix shell – but those shouldn’t land in the release.
teto has joined #nixos
<{^_^}>
[nixpkgs] @jdelStrother opened pull request #99153 → Update rubygems to 3.1.3 → https://git.io/JUD3J
<bahamas>
AWizzArd: I think that testSystemDepends refers to system libraries as opposed to Haskell libraries
<AWizzArd>
Then I would like to specify the Haskell-Libs that need to be compiled into the exe file or that have to go into the tar.gz. But also I would like to specify that during dev-time in the nix-shell I want Haskell libs for benchmarking, testing and things like that.
<bahamas>
AWizzArd: testTool and testFramework, I donțt know
<bahamas>
AWizzArd: executable*Depends refers to dependencies for the executable
<AWizzArd>
bahamas: those executable*Depends things – they will go into my tag.gz yes?
<bahamas>
AWizzArd: btw, there's cabal2nix which should just translate your cabal file
<bahamas>
then you can add to the generated .nix file your system dependencies, since you don't specify those in the cabal file
<AWizzArd>
bahamas: others told me that I should not specify in my .cabal file that I want the linux tools cd, ls, cat and so on in my nix-shell.
<bahamas>
AWizzArd: for nix-shell stuff, you're better off creating a shell.nix file
<bahamas>
AWizzArd: I think in the latter part of the tutorial I pasted above, you reach this file structure with project.nix, release.nix, default.nix and shell.nix
azure1 has quit [Read error: Connection reset by peer]
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
<AWizzArd>
bahamas: yes I was using that tutorial and it got me pretty far. Now I was able to dockerize my app. But I need more software in the docker image because the original nix package authors seem to not have mentioned those as their dependencies.
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
<AWizzArd>
I would like to have what Ubuntu calls `netbase` and which seems to have the name `iana-etc` in Nix. So I want to specify: hey nix, put the iana-etc OS dependency in my tar.gz.
Pidgeotto has joined #nixos
Pidgeotto has quit [Excess Flood]
<AWizzArd>
Also in order to use SSL I need ca-certs in my release.tar.gz
<AWizzArd>
So I simply want to specify two OS-Dependencies.
<{^_^}>
[hydra] @Taneb opened pull request #820 → Remove deprecation notice for binary_cache_secret_key_file → https://git.io/JUDsz
peelz has quit [Remote host closed the connection]
<eyJhb>
If I have a set { key1 = something; key2 = something; } and I want to change key2, but leave key1 as it is, how would one do that? I have the value of the set as value, as I am doing mapAttrs
sputny has quit [Client Quit]
sputny has joined #nixos
gthm has quit [Ping timeout: 265 seconds]
m0rphism has quit [Ping timeout: 272 seconds]
gthm has joined #nixos
<euandreh>
eyJhb: how about "yourSet // { key2 = something-else;}"
<tsujp>
How hard is it to get a base nixos install going?
<tsujp>
I am familiar with Linux in-general and specifically Arch, and CentOS
<energizer>
it's not much harder than that
<tsujp>
Will it be a crusade to move my box over? Half a day etc? Just curious for a rough "how long is a piece of string" estimate / other people's experience there
<energizer>
yes half a day
<tsujp>
Cheers
<tsujp>
This weekend it is
<tsujp>
Looking forward to that fully deterministic goodness
bahamas has quit [Ping timeout: 272 seconds]
rotaerk has quit [Ping timeout: 272 seconds]
Darkmatter66 has quit [Quit: ZNC 1.7.5 - https://znc.in]
Sanchayan has joined #nixos
Darkmatter66 has joined #nixos
spudly- has joined #nixos
spudly has quit [Ping timeout: 265 seconds]
spudly- is now known as spudly
alexherbo2 has joined #nixos
sangoma has quit [Ping timeout: 246 seconds]
Guest68834 has quit [Changing host]
Guest68834 has joined #nixos
Guest68834 has joined #nixos
Guest68834 is now known as joepie91
sangoma has joined #nixos
karantan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<eyJhb>
How can I take a config value, e.g. filesystems, and then change it? So that I can do `fileSystems = somefunc config.fileSystems`, currently I get a infinie recursion
<pinpox->
Hi, I modified my configuration.nix and now I'm getting an error: error: attribute 'formats' missing, at /nix/store/q13l0iykj12qhyddxl8f516cays693vz-source/modules/programs/pet.nix:9:12 But I don't have anything about pet.nix in my configuration.nix
<pinpox->
Is this installed as dependency or something?
<pinpox->
Just in configuration.nix at the bottom?
<eyJhb>
... I GUESS! But not those
<eyJhb>
Nope, that you should not change
<eyJhb>
That is your state version.
<pinpox->
oh ok
<eyJhb>
You can if you read all the changelog etc. but generally you should know what you are doing befurehand :p
<tobiasBora>
Hello, I'm trying to use writeScriptBin to create a script that wrapps a given program, and then I'd like to copy this script so that it appears in the final app folder, next to the other executable. So I tried to do something like: let mywrapper = binaryfile: writeShellScript "XX" "bla; ${binaryfile}; blo"; in mkDerivation rec { ... installPhase = "install -Dt $out/bin mainbinary ${myWrapper (out +
<tobiasBora>
"/bin/mainbinary")}";}, however it tells me that the out variable does not exist. What is the proper way to do what I want?
<pinpox->
What am i using right now? 20.02?
<pinpox->
What am i using right now? 20.03?
<eyJhb>
sudo nix-channel --list
<eyJhb>
Shows you the channel
<pinpox->
ok
<symphorien[m]>
nixos-version also
<eyJhb>
symphorien[m]: true...
domogled1 has joined #nixos
<pinpox->
euandreh: yeah, 20.03
<pinpox->
But it seems to be building now fine, at least it's still going
<eyJhb>
Guess you removed the option?
<pinpox->
just had to remove a few options, nothing big
<pinpox->
eyJhb: yes
domogled1 has quit [Read error: Connection reset by peer]
<pinpox->
Do most users go for unstable?
domogled has quit [Ping timeout: 256 seconds]
<eyJhb>
But, you can run unstable, it is actually really stable. And if anything goes wrong, it is nixos so you can easily revert
<eyJhb>
I am not sure about most
<eyJhb>
Some do
<pinpox->
that's true, keep forgetting I can just rollback
<pinpox->
I'll let it finish building and then try to switch
<eyJhb>
Also, your home-manager should really be managed in some other way, eg. by using channels, or having a checked-out dir, fetching from github (with rev)
<pinpox->
eyJhb: I tried to manage it declaratevly
<eyJhb>
I usually have home-manager in ./channels/home-manager (relation to my configuriation.nix), and then import it from there
<eyJhb>
relative*
<pinpox->
eyJhb: does it break that often?
domogled has joined #nixos
<eyJhb>
home-manager?
<pinpox->
my /etc/nixos is a git repo anyway, I could put it in there as a submodule probably...
<pinpox->
eyJhb: yes, what is the problem with my current way of managing it
<eyJhb>
THe reason it does not work for you on master, is because you are not running the unstable channel, so you are missing something there :p
<pinpox->
damn, the build failed.
<eyJhb>
You always download the latest version of home-manager, and I don't think you can even build offline, as it needs to probe github :p
<pinpox->
eyJhb: oh I see.
<{^_^}>
[nixos-homepage] @github-actions[bot] pushed commit from GitHub Actions to master « Update flake.lock and blogs.xml [ci skip] »: https://git.io/JUDzT
<eyJhb>
If you already are doing git, you might as well just make nixpkgs and home-manager as a submodule
<eyJhb>
But just do it at your own pace ;)
<pinpox->
Sep 30 14:17:12 baobab systemd[1]: home-manager-pinpox2.service: Failed with result 'exit-code'.
<pinpox->
Sep 30 14:17:12 baobab systemd[1]: Failed to start Home Manager environment for pinpox2.
<pinpox->
warning: error(s) occurred while switching to the new configuration
<pinpox->
Not sure what the exact error is, maybe this: error: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name ca.desrt.dconf was not provided by any .service files
<eyJhb>
Ehhh, there I might say pass, not entirely sure there
<eyJhb>
Maybe #home-manager can help
<eyJhb>
But else, locate the module causing the issue. Disable them all, and then enable one by one till you find the cause
<pinpox->
eyJhb: ok. I'll try to put home manager as submodule first.
<pinpox->
maybe that helps
<eyJhb>
Seems like you are doing the big bang build atm. :p I might be wrong however
<eyJhb>
Yeah, else just isolate the option causing it
<pinpox->
Not sure what that means, I just found out about home-manager and was trying to replace my current dotfiles setup with it
anderslundstedt has quit [Ping timeout: 256 seconds]
captn3m0 has joined #nixos
tim12312363 has joined #nixos
tim12312363 has left #nixos [#nixos]
tim12312363 has joined #nixos
<tim12312363>
Hello people, I am trying to build this package for nixos (https://github.com/aramg/droidcam/tree/master/linux) but the build command ("nix-build -K -A droidcam") fails and complains about a required argument (kernel) which I am using in my derivation. How do I provide this argument to the build command? Many thanks!
sputny has joined #nixos
Sanchayan has quit [Quit: leaving]
karantan has joined #nixos
<gchristensen>
clever: is there something specific about those IDs?
<clever>
gchristensen: thats the same as how MBR has linux as type 0x83
<clever>
gchristensen: MBR only having 8 bits for type codes made it rather difficult, when more then 256 filesystems came into existance, you cant give a unique id to each one anymore!
sangoma has quit [Quit: WeeChat 2.9]
cfricke has quit [Quit: WeeChat 2.9]
sputny has quit [Client Quit]
anderslu1dstedt has quit [Ping timeout: 240 seconds]
sputny has joined #nixos
<{^_^}>
[nixpkgs] @Ericson2314 opened pull request #99176 → meson: Remove propagated native C compiler → https://git.io/JUDXb
<lordcirth_>
Yeah, so it's all just "Linux filesystem"
<lordcirth_>
The partition table format really shouldn't need to tell you what fs it is, though - just whether it's bootable, EFI, etc
<__monty__>
Oh, still need it. Want to filter out a specific attribute from all the nested sets in a set. A function from this { a = { attr = 1; }; b = { attr = 2; }; ... } to this [ 1 2 ... ]
<AWizzArd>
When nix has created a .tar.gz file for me that I want to dockerize then I can parse the last line of the `nix-build` output. Is there some other way to get the exact path of where that file was stored?
vidbina has quit [Ping timeout: 240 seconds]
Fare has quit [Ping timeout: 244 seconds]
shabius has joined #nixos
<simpson>
What else would you want to call in order to get it? AIUI `nix-build` returns just the path in stdout, which is pretty minimal.
vidbina has joined #nixos
<AWizzArd>
simpson: okay good, then this sounds like a sane thing to use.
<lordcirth_>
AWizzArd, nix-build also creates a symlink "result". So you could just resolve that if you want. But just reading nix-build is probably easier (unless maybe you want to use verbose options?)
<lordcirth_>
reading nix-build stdout*
maxdevjs has joined #nixos
shabius_ has quit [Ping timeout: 272 seconds]
<{^_^}>
[nixos-homepage] @github-actions[bot] pushed commit from GitHub Actions to master « Update flake.lock and blogs.xml [ci skip] »: https://git.io/JUDSW
<simpson>
lordcirth_, AWizzArd: You can add --no-out-link to nix-build; this will avoid creating the symlink, but also allows the result to be GC'd.
<AWizzArd>
lordcirth_: yes, I saw that. I was just thinking about if I can control the name of the result. So if I build multiple targets, then I would know which of the many result-* outputs belongs to what build.
<lordcirth_>
AWizzArd, yup, -o result-foo
<lordcirth_>
or --out-link
<simpson>
This isn't to say that you're wrong, just to say that you might prefer to subprocess nix-build, do Docker stuff with the tarball, and *then* remove the symlink once you're sure that you no longer need the tarball.
<AWizzArd>
simpson: makes sense.
ManiacOfMadness has quit [Ping timeout: 272 seconds]
hnOsmium0001 has joined #nixos
srhm has quit [Read error: Connection reset by peer]
<{^_^}>
[nixos-homepage] @davidak merged pull request #595 → Point link at schedule → https://git.io/JUDK6
<{^_^}>
[nixos-homepage] @davidak pushed 2 commits to master: https://git.io/JUD9y
<gchristensen>
are you concerned about IP or something?
<symphorien[m]>
looks like you want to put secrets in the store?
<maralorn>
No, no IP.
<maralorn>
More like e.g. a subscription list for a mailinglist that I feel comfortable putting on the nix store on my system but not share it with nixbuild.net
V is now known as v
<maralorn>
So I would somehow need to tag the generated file as "never leave this computer".
<maralorn>
The other option would be to have remoteBuilding of by default and opt-in manually when actually compiling packages.
<bbigras>
maralorn: for private stuff I use github actions to build everything except private files and push them to cachix. I then just need to build the private stuff on my computer
sputny has quit [Remote host closed the connection]
<maralorn>
bbigras: How to you seperate between private files and the rest of your derivations?
<gchristensen>
maralorn: maybe this sort of information shouldn't be part of a nix build
<bbigras>
maralorn: the files are only included if they exist. and they don't exist in my public github repo.
<bbigras>
If I was using nixbuild. I would still need to prevent remote builder on my computer
<bbigras>
to not end up making nixbuild build my private stuff
philr has quit [Ping timeout: 258 seconds]
<gchristensen>
that said, I assume nixbuild has a privacy policy and protections around this sort of stuf
<maralorn>
gchristensen: Maybe, but in this example I need to assign it to a services.postfix.virtual, not having that in the nix-store is kinda not supported.
<{^_^}>
[nixpkgs] @jonringer pushed commit from @r-ryantm to master « xylib: 1.5 -> 1.6 »: https://git.io/JUDNJ
<{^_^}>
[nixos-homepage] @github-actions[bot] pushed commit from GitHub Actions to master « Update flake.lock and blogs.xml [ci skip] »: https://git.io/JUDNL
<m1cr0man>
Hey folks. Has anyone built NixOS for a network boot environment? Specifcally I'm looking to be able to regularly build a netboot image + root and then mount that root over NFS. I figured I could do this with nixos-install?
sputny has joined #nixos
pr06lefs has quit [Quit: Leaving]
<{^_^}>
[nixpkgs] @bcdarwin opened pull request #99183 → graspy: rename to graspologic → https://git.io/JUDNE
<bbigras>
it should also be possible to build a netboot image and make it available with the pixiecore service (a simple pxe server).
akaWolf has joined #nixos
arjen-jonathan has joined #nixos
bjtitus[m] has joined #nixos
knupfer has joined #nixos
knupfer has quit [Client Quit]
knupfer has joined #nixos
<m1cr0man>
bbigras: I've built a netboot initrd + kernel before but I actually want to have a root filesystem attached to it over NFS rather than in memory since I want to install a lot of software. Hm, maybe mounting the nix store over nfs alone would do?
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<bbigras>
m1cr0man: I'm guessing there must be a way to build the image decoratively and use the result directly with nfs.
<m1cr0man>
I'm only diving into this project now, figured I would ask up front incase it takes me a while to figure out :) yeah I'm sure it's possible too
<numkem>
the documentation refers to the CD image showing the nixos documentation on tty7. I'd like to do similar (show a program on a TTY). Is there an example still available? I can't find anything related to way the documentation mentions
<Henson>
how are talks submitted to Nixcon? Are they pre-recorded and then played back for the conference?
<selfsymmetric-mu>
It has a few approvals with manual tests.
stigo has joined #nixos
cosimone has quit [Quit: Quit.]
<selfsymmetric-mu>
We're just having trouble getting it merged fast enough. We keep losing the race to other node updates, and then the node-packages merge conflicts kill us.
<{^_^}>
[nixpkgs] @jonringer merged pull request #99178 → python3Packages.fsspec: fix tests on linux → https://git.io/JUDDY
<{^_^}>
[nixpkgs] @jonringer pushed commit from Thibault Gagnaux to master « python3Packages.fsspec: fix tests on linux »: https://git.io/JUyUa
eoli3n has quit [Remote host closed the connection]
arjen-jonathan has quit [Ping timeout: 244 seconds]
eoli3n has joined #nixos
ericsagnes has joined #nixos
meh` has joined #nixos
craftyguy has quit [Quit: WeeChat 2.9]
<{^_^}>
[nixpkgs] @samueldr merged pull request #99119 → noto-fonts-emoji: Work around Hydra silence timeouts on AArch64 by being noisy → https://git.io/JUMuJ
<pinpox->
Hi, I can't manage to start i3 without using lightdm. I either break X or lightdm starts anyway, this is my current config: https://termbin.com/qym2
<pinpox->
I'd just like to enter user/pass in the TTY and i3 should autostart
<HedgeMage>
pinpox-: So, I don't see anything obviously off in your config. You do need to have an .xinitrc ...I have no clue what home-manager is but I would presume that if you are running i3 you know how to open a terminal and just cat to a file. :)
<pinpox->
HedgeMage: Yeah, I can do that. I was wondering if I can do that declarativly in my configuratino.nix
knupfer1 has joined #nixos
knupfer has quit [Quit: knupfer]
knupfer1 is now known as knupfer
CSP-GLOBAL has joined #nixos
<HedgeMage>
pinpox-: Not that I know of...at least, I've never generated that kind of user config from configuration.nix before. However, I'm much newer to NixOS than I am to i3wm :)
<pinpox->
HedgeMage: You should look at home-manager ;)
fendor has joined #nixos
spease has quit [Ping timeout: 260 seconds]
ransom has joined #nixos
<fresheyeball>
so I want to make a MacOS nix builder
<fresheyeball>
and I have a dumb problem
<fresheyeball>
I have nix installed on the Mac
<fresheyeball>
I have access to it over ssh
<HedgeMage>
pinpox-: Bookmarked, but I need to go down the nix packaging rabbithole a bit first. I'm loving NixOS, but given the change in my job in the last couple of years (from full-time engineering role to CISO/Director) I've got to support some more business-y applications in addition to my tech stuff if I don't want to have to run a different distro at work.
<fresheyeball>
but `nix ping-store --store ssh://elpaso`
<fresheyeball>
results in zsh:1: command not found: nix-store
<fresheyeball>
if I ssh in, nix-store is infact there
<fresheyeball>
and on the path
sangoma has quit [Ping timeout: 272 seconds]
<fresheyeball>
I don't understand what is going on here
<qyliss>
fresheyeball: perhaps it's only on the PATH for interactive shells?
<fresheyeball>
qyliss: I don't know what that means
<qyliss>
Does ssh elpaso nix-store --help work?
<fresheyeball>
no
<qyliss>
how is Nix getting added to the PATH?
<fresheyeball>
same error
<fresheyeball>
how an I get it on the path for non-interactive shells?
<LnL>
or add the nix line to the appropriate ~/.zshrc or whatever file for the user
<LnL>
for some reason non-interactive shells don't load the ones from /etc
<fresheyeball>
so it's there for my user in the .zshrc
<fresheyeball>
but not in non-interactive-terminals
<LnL>
not sure what it is now with zsh, maybe ~/.zshenv?
alp has joined #nixos
<qyliss>
Yeah I think ~/.zshenv is what you want
anderslu1dstedt has joined #nixos
<fresheyeball>
oh
<fresheyeball>
I don't have one
<fresheyeball>
let me make that
<fresheyeball>
that did it
<qyliss>
:)
nckx has joined #nixos
<fresheyeball>
ok
<fresheyeball>
so now I can ping the store as my user
<fresheyeball>
but when I set it as --builder for nix-build
<fresheyeball>
it's still messed up
<fresheyeball>
so I need to be able to ssh as root or something?
<LnL>
I think you need to use either root or setup signing keys
karantan has joined #nixos
anderslundstedt has quit [Ping timeout: 256 seconds]
<eyJhb>
I am trying to "apply" a function to all my filesystem mounts in my configuration, but I want to apply it in a seperate file I can just import and wosh it does it all. But I have a infinite recursion issue - https://termbin.com/4c4dm
<eyJhb>
Is there any way around this? I can apply the function directly at hardware-configuration, or I can make another file that holds my monts setup and apply it like so. Is there any way I can avoid this? - Guessing there are no hooks in NixOS as such
<LnL>
the fileSystems option can't depend on config.fileSystems (which is itself)
knupfer has quit [Ping timeout: 240 seconds]
cosimone has joined #nixos
karantan has quit [Client Quit]
<LnL>
option definitions can define an apply but I'm not aware of anything outside of that
<fresheyeball>
LnL what do you mean by signing keys?
<{^_^}>
[nixos-artwork] @samueldr pushed 2 commits to master: https://git.io/JUyO6
<LnL>
like the signing key of the nixos cache
<fresheyeball>
LnL so I do have keys
<teto>
anyone with a ALC3204 microphone working on nixos ? mine stays mute wonder what driver o kernel option to enable
<fresheyeball>
how would I use those to resolve this?
<justsomeguy>
What's the best way to run NixOS as a container?
<LnL>
fresheyeball: depends what exactly you're running into, but nix can't copy the dependencies and results back and forth without trusting the other side
<fresheyeball>
I get that. I have cache sharing between nixos machines
<fresheyeball>
but I don't see how to use this technique to allow remote building on the mac
karantan has joined #nixos
marc1 has joined #nixos
Orbstheorem has quit [Quit: WeeChat 2.3]
<eyJhb>
LnL: Hmmm, can you think of any way to do it then? :/ I am guessing it is net possible ...
<{^_^}>
[nixpkgs] @bfortz opened pull request #99193 → bitwig-studio3: jack dependency fixed → https://git.io/JUysM
Chiliparrot has joined #nixos
karantan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
stoile has quit [Remote host closed the connection]
tim12312363 has quit [Remote host closed the connection]
Orbstheorem has joined #nixos
Chiliparrot has quit [Client Quit]
karantan has joined #nixos
anderslundstedt has joined #nixos
<eyJhb>
I am trying to import this file - https://termbin.com/xba5 , so I can use the function inside it. But I keep getting `value is a function while a set was expected, at /state/home/projects/nixos/nixus-setup/hosts/eos/hardware-configuration.nix:8:10` - https://termbin.com/mn49
<eyJhb>
This is the parts, where line 8 is the test = ....
redkahuna has joined #nixos
kdlv has joined #nixos
<{^_^}>
[nixpkgs] @prusnak opened pull request #99194 → python3Packages.fastecdsa: init at 2.1.5 → https://git.io/JUyGB
anderslu1dstedt has quit [Ping timeout: 260 seconds]
<{^_^}>
[nixpkgs] @berbiche opened pull request #99195 → fractal: restrict platforms to linux → https://git.io/JUyGV
redkahuna has quit [Ping timeout: 258 seconds]
ransom has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
shabius has joined #nixos
noudle has quit []
CSP-GLOBAL has quit [Read error: Connection reset by peer]
<eyJhb>
Guess { lib = lib; } works, but not sure if there is anything more pretty
invokesus has joined #nixos
<nicolas[m]1>
if it only needs lib, then you don't need to pass an attrset
<eyJhb>
If I do {} then it will complain, and if I do not give it any then it won't work
<eyJhb>
What syntax do I then need to use?
<nicolas[m]1>
`import ./my-file lib`
<nicolas[m]1>
and then `my-file` you would have `lib: let ....; in ...`
<{^_^}>
[nixpkgs] @vbgl pushed to master « ocamlPackages.z3: init at 4.8.9 »: https://git.io/JUyZ1
sigmundv_ has quit [Read error: Connection reset by peer]
ddellacosta has joined #nixos
sigmundv_ has joined #nixos
eyenx has joined #nixos
redkahuna has quit [Ping timeout: 240 seconds]
<pinpox->
Could anyone tell me what I'm doing wrong? I want home-manager to configure i3 so that it starts without lightdm when logging in via TTY
aforemny has joined #nixos
<pinpox->
Been moving options back and forth for ages now, but I cant get it to start. This is my current state of configuration.nix https://termbin.com/ou2dw
ransom has joined #nixos
redkahuna has joined #nixos
selfsymmetric-mu has left #nixos ["gone to the land of dead hiccups and extinguished light bulbs"]
eyenx has quit [Quit: killed]
koenw has joined #nixos
invokesus has quit [Remote host closed the connection]
<koenw>
I've got a package that according to `nix-store -q --roots` is in my current profile, but I don't know why. Another version of the same package is part of my current profile. How do I find out why the old version is still considered 'alive' in my profile?
<koenw>
(if I run `which` for the program, it gives me the newer version)
<{^_^}>
[nixpkgs] @zimbatm pushed commit from @leenaars to master « Sylk: 2.8.4 -> 2.9.0 (#99095) »: https://git.io/JUy4p
Fare has quit [Ping timeout: 260 seconds]
<cab404[m]>
there's a nixos discord???
<worldofpeace>
I wish more people would could merge on demand... it takes a lot of knowledge to do so tho
<worldofpeace>
unofficial cab404
Fare has joined #nixos
<pittma>
For some reason the lock-on-suspend systemd service only works if the laptop hasn't been sleeping long? Or maybe there's hibernate thing happening that's getting missed by my hook.
nahamu has quit [Read error: Connection reset by peer]
nahamu has joined #nixos
tsmanner has joined #nixos
redkahuna has quit [Ping timeout: 240 seconds]
<radvendii>
where do the @var@ substitutions happen? It seems to be the variables present in e.g. pkg-config-wrapper/default.nix "passthru" attribute, but not quite.
cosimone has quit [Ping timeout: 240 seconds]
<clever>
radvendii: substituteAll
<clever>
radvendii: it will just use an env var thats in scope at the time, bash env vars
xcmw has joined #nixos
<radvendii>
ah hah! thank you <3
<damjan>
clever: and the variable needs to be compatible with shell variable names right?
<damjan>
+name
<clever>
damjan: substituteAll has its own regex on what it considers a valid variable
<radvendii>
okay followup-question. Why can't I add "bintools" to pkg-config-wrapper/default.nix? I get the error that it's being called without the required argument, but it's being called with callPackage, which should supply all the arguments automatically, right?
<clever>
> pkgs.bintools
<{^_^}>
attribute 'bintools' missing, at (string):324:1
<clever>
radvendii: because that attribute isnt in pkgs
<clever>
radvendii: which binary are you trying to get?
<radvendii>
I'm trying to call @bintools@/nix-support/add-flags.sh from win-dll-link.sh
<radvendii>
i'm not actually sure pkg-config-wrapper is where win-dll-link gets it's substitutions from, but that was the only place that seems to set @suffixSalt@ and *not* set @bintools@
<clever>
you may need to `inherit (stdenv.cc) bintools;` to get bintools
redkahuna has joined #nixos
Fare has quit [Ping timeout: 240 seconds]
<radvendii>
hahaha
<radvendii>
pkg-config-wrapper doesn't get stdenv
<radvendii>
it gets stdenvNoCC
<radvendii>
womp womp
<clever>
but you can always change it out
<radvendii>
oh. i figured there was probably a good reason for it
<clever>
stdenvNoCC just saves you from having to copy a gcc over when building the wrapper
<clever>
but if your refering to bintools, you dont save much
<radvendii>
oh gotcha
AluisioASG has quit [Remote host closed the connection]
<radvendii>
okay, i mean i'll do it for now just to get it working and then see if there's a more efficient way to get just what i need
redkahuna has quit [Ping timeout: 240 seconds]
invokesus has quit [Ping timeout: 260 seconds]
meh` has joined #nixos
<{^_^}>
[nixpkgs] @Pamplemousse opened pull request #99206 → python3Packages.CppHeaderParser: init at 2.7.4 → https://git.io/JUyaG
<{^_^}>
[nixpkgs] @jonringer pushed commit from @r-ryantm to master « python27Packages.ldap3: 2.8 -> 2.8.1 »: https://git.io/JUyV5
mbrgm_ has joined #nixos
redkahuna has quit [Ping timeout: 246 seconds]
mbrgm has quit [Ping timeout: 260 seconds]
mbrgm_ is now known as mbrgm
<radvendii>
I cannot figure out where substituteAll gets called on win-dll-link.sh. I've gone through every reference to win-dll-link, setup-hooks and build-support (the containing folders).
<radvendii>
Is there another way that it could be happening?
<radvendii>
the @suffixSalt@ substitution
<clever>
radvendii: look at the setupHook (i think) in setup.sh