<euank>
Pretty much all the hardware listed in https://github.com/NixOS/nixos-hardware has been used by at least one person; but as above, basically any linux friendly laptop should work as well with nixos as with another distro
<samueldr>
though this repo lacks all computers where the user had to do nothing at all for it to work
<samueldr>
or pretty much nothing and there is no reason to add it in there
<euank>
yup! ironically it's probably the more questionably supported hardware
<samueldr>
yeah
<euank>
Though the x1 carbon (in there, what I'm on now) works smoothly at this point
<samueldr>
*which* X1 carbon :)
<samueldr>
IIRC there are multiple models in there, and more overall
<samueldr>
(naming things is hard!)
<euank>
indeed. 6th and 7th both work well now, though it took much longer for the 7th gen to get working audio drivers for everything
proofofkeags has quit [Ping timeout: 240 seconds]
<samueldr>
the fact is, as long as it's not a linux-hostile laptop, it'll work as well in NixOS, and for any custom treatment, you will have a declarative config :)
<samueldr>
(linux-hostile being e.g. surface or macbooks)
<samueldr>
(and some would say nvidia hardware, but that is debatable)
<euank>
arch wiki has a better list of laptop compatibility than any nixos-first source, but they're both using the same linux kernel / drivers / etc, so support marked there probably means it'll work for nixos
<samueldr>
if you wanted something that's user-serviceable, it looks like that the newest ranges from HP, all across, are possibly great for that (but untested with Linux)
<samueldr>
yeah, in the end, NixOS Linux is... a Linux :)
<hexa->
,locate setoper.h
<Cadey>
a whole linux?
<{^_^}>
Found in packages: cddlib
<samueldr>
Cadey: sometimes more than one
<samueldr>
hey, after all my configuration.nix intrinsically builds an installer image that's sitting in the grub boot menu ready to be used (but really, to not be used)
<Cadey>
is it an "oh god everything's on fire" rescue environment?
<samueldr>
yeah, could be, though I've used it last time to resize partitions after a `dd` from a smaller to bigger partitions without having to find a thumb drive
<{^_^}>
[nixos-weekly] @Mic92 pushed to master « 08-nixos-weekly-2020-0: fix link »: https://git.io/JTOBj
<hsngrmpf[m]>
Some of my ELF files break during fixupPhase. I think it's because of `patchelf --shrink-rpath`. How would I disable shrinking without entirely disabling the fixup phase? I still need autoPatchElfHook to run. I find this part of nixpkgs extremely hard to navigate.
<pickfire>
Hi, I have EvalError when trying to `nixos-rebuild switch` how do I fix that? I am using unstableNix but I only have one generation which I cannot rollback.
anders^ has joined #nixos
<pickfire>
nixUnstable*
<pumpy>
aasg i tried that but the line `neovim-unwrapped = super.neovim-unwrapped.overrideAttrs (oldAddrs: {` gave error "value is a function while a set was expected" know how to fix that?
<pickfire>
It falied after I did `nixos-rebuild switch --upgrade-all`
marek has joined #nixos
<aasg>
@pumpy might need to wrap the `overrideAttrs` call in parentheses: (super.neovim-unwrapped ... })).override
<aasg>
pickfire (IRC): does it say where the error happened? Maybe if you run with `--show-trace`?
bbarker has quit [Remote host closed the connection]
<pickfire>
Trace: ix.io/2AKG
<pickfire>
It's in lxqt.
<pumpy>
aasg now that errors with anonymous function ... called with unexpected argument viAlias. know why?
<{^_^}>
[nixpkgs] @ndarwincorn opened pull request #100540 → nodePackages.cdk8s-cli: init at 0.3.0 → https://git.io/JTOiq
<DigitalKiwi>
pickfire: you could probably get something working again if you temporarily disable lxqt remove nix.package = nixUnstable and switch and then reenable it but that's not really a solution...
<pickfire>
But then everytime I need to keep switching between nix and nixUnstable?
Supersonic112 has joined #nixos
<DigitalKiwi>
you'd just not use nixUnstable and file an issue about lxqt and hope someone figures it out >.>
<pickfire>
No, I tried that. It doesn't work.
<DigitalKiwi>
?
<pickfire>
I commented out nix.package, nix.extraOptions and lxqt.enable
hke has quit [Read error: Connection reset by peer]
<worldofpeace>
DigitalKiwi: sorry, it the commit that added "cfg.displayManager.sessionData.desktops" to systemPackages to fix gnome3. (was a blocking issue). I won't be able to look into it probably until the end of next week. I did test it, though I did backport it to 20.03 and it broke mate in a similar way... these desktops have no tests tho
<DigitalKiwi>
pickfire: anyway now we know what (AND WHO >;( ) broke it
<worldofpeace>
my best advise is to open an issue on GitHub and ping jtojnar
<pickfire>
hpfr: home-manager have option to set it.
<pickfire>
Not sure if those are present in nixos.
<hpfr>
thanks. I assumed nixos would set them to comply with the freedesktop spec or something if you had services.xserver.enable on
<jtojnar>
DigitalKiwi: I already reverted that on 20.03
<jtojnar>
could not reproduce it on master
sangoma has joined #nixos
Rusty1 has quit [Quit: WeeChat 2.3]
ugubok has joined #nixos
<jtojnar>
hmm, looks like the reason mate now works is because we switched from services.xserver.desktopManager.session to services.xserver.displayManager.sessionPackages
<jtojnar>
I can still reproduce with lxqt on master since it still uses the former
<jtojnar>
worldofpeace: we either cannot install the sessions environment.systemPackages or must forbid sessions from depending on config.system.path, since that depends on environment.systemPackages
<jtojnar>
the latter does not really sound reasonable
palo has quit [Ping timeout: 265 seconds]
palo1 is now known as palo
<jtojnar>
so I guess the only solution would be to add the sessions to XDG_DATA_DIRS explicitly
<zecnate>
When I run nix-build I see a compiler error and make exits the normal way for an error. When I run `genericBuild` inside a `nix-shell`, I get a segfault during the build process. What is different between these environments?
<clever>
zecnate: the sandbox isnt active, so it can see things it shouldnt see
<clever>
zecnate: but if you nix-build --keep-failed, then nix-shell, you can cd into that tempdir, and resume the build
<zecnate>
Ah, thanks.
<zecnate>
I'll try that.
<clever>
you can usually just jump right to running make when resuming
<zecnate>
One potential issue, my nix-build expression uses (effectively) `nixpkgs.llvmPackages_8.stdenv.mkDerivation { … }`. Does `nix-shell` on the same file know to do the dependency injection with the `stdenv` env var pointing to that toolchain?
<{^_^}>
[nixpkgs] @thefloweringash opened pull request #100558 → nix: build with default stdenv → https://git.io/JTOAb
saschagrunert has joined #nixos
daGrevis has quit [Read error: Connection reset by peer]
daGrevis has joined #nixos
<bk1603[m]>
If I try to boot nixos with `services.xserver.videoDrivers [ "nouveau" ]`, the server fails to start, and if I use `services.xserver.videDrivers = [ "intel" "nouveau" ]` I can't even see the second card in `xrandr --listproviders`, how can I get xserver to work with `nouveau` drivers?
<urkk>
a report from the output of a benchmark which is not-deterministic
<urkk>
And I would like that multiple users can predict the output hash, so they dont need to rerun the benchmark
zecnate has quit [Remote host closed the connection]
<simpson>
Wow, that's a cool example. It's awesome to see basic immutability completely defeat a bad idea like that.
<simpson>
I'd recommend not putting the benchmark results into the store, and instead giving users a tool (which lives in the store) which can be run to produce benchmark results.
<{^_^}>
[nixpkgs] @cdepillabout pushed 2 commits to haskell-updates: https://git.io/JT3Ue
ziprandom has joined #nixos
<urkk>
that's what we have, but the results are stored in a remote cluster, when the queueing system decides to run the benchmark
<simpson>
Ah, benchmarking an entire system, rather than just a local machine. Then I would hand the tool to the sysadmin who owns the cluster, perhaps? Depends on what the results will be used for.
cosimone has quit [Read error: Connection reset by peer]
<ziprandom>
hey all, I'm trying to define dev environment to build go and rust packages that can be deployed to debian jessie machines, where glibc only has version 2.19. how can I make a dev shell based on 20.03 that uses or at least builds against 14.04's glibc?
<typetetris>
Hi! How do I convert a string to a number in nix?
<simpson>
typetetris: Lacking a serious answer, I'd say `builtins.fromJSON`!
<urkk>
but now we want to merge the results in a single report
<urkk>
And ideally, the report must only depend on the code of the experiments, so we can invalidate the report by updating the hash of one experiment program (not result)
Swant is now known as Skeleswant
<simpson>
ziprandom: You'll have to mix and match, and you may want to set up a nixpkgs fork which is based on 20.03 but has the backported ancient glibc.
pjan has joined #nixos
<simpson>
urkk: That should work fine, though? Like, if you want to fall into the common trap where your benchmarks are only run once upon build and users accidentally pull the benchmark results from a Nix cache instead of building it themselves, then that should be the default behavior already.
cosimone has joined #nixos
<urkk>
simpson: yes, that is what we want, but I don't know how to place the results of a benchmark, available via ssh for the user that run it, into the store such that the hash is only dependant on the experiment code
__monty__ has joined #nixos
hnOsmium0001 has quit [Quit: Connection closed for inactivity]
<urkk>
Because it looks like I cannot access the ssh machine in the build process, as I need the user ssh key
__Sander__ has joined #nixos
<simpson>
urkk: What else would the hash depend upon? If your experiment's derivation is the only thing in buildInputs, then you should be able to just run the benchmark during buildPhase.
<urkk>
The users tipically don't want to rerun experiments already executed, but if they wish to do so, we include a dummy revision number, which build anothe experiment hash, and thus reruns it
thc202 has joined #nixos
<urkk>
simpson: that I need to ssh into the cluster, submit the job, wait potentially some hours and wait for the results
<urkk>
As of now, we have split the execution into a tool that queues the experiment run
<urkk>
And then, you can manually pull the results, once it finishes, so you don't have to lock waiting for the results to come back
<ziprandom>
simpson: how do I mix & match? and can't I use `overrideAttrs` or an overlay instead of forking?
<simpson>
ziprandom: Probably, but I don't endorse overlays. For glibc in particular, I'm not sure whether you're going to have satisfaction just by changing its version; I expect that something else will break and the breakage will be hard to contain to an overlay. But go for it!
bahamas has quit [Ping timeout: 256 seconds]
<typetetris>
Is there a recommendable nix code formatter?
rotaerk has joined #nixos
<urkk>
simpson: We could pull the results via ssh from nix-build, but then we would need to put the ssh key of the user in the store as far as I know
<DigitalKiwi>
what's the difference between self and super
emmanuel_erc has joined #nixos
<DigitalKiwi>
sometimes i s/self/super/ and it's the same derivation!?
<DigitalKiwi>
like in that gist if you change super.tasty-smallcheck to self.tasty-smallcheck it has the same hash
m0rphism has joined #nixos
<DigitalKiwi>
i added lines 1-5 so i could nixfmt it and make gist not redlight stuff :|
<DigitalKiwi>
nixpkgs-fmt* for the pedants who notice nixfmt would be different
emmanuel_erc has quit [Ping timeout: 244 seconds]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}>
[nixpkgs] @thefloweringash opened pull request #100574 → llvmPackages_10: cross-compilation support → https://git.io/JT339
__monty__ has quit [Quit: leaving]
<immae>
To put it simply, "super" is the state of nixpkgs *before* applying this particular overlay, while "self" is the one *after*. So you should use self when you’re not modifying it (in this case, you’re only modifying in the argments of random_12_0 so it doesn’t propagate above, thus super and self have the same tasty-smallcheck)
<maralorn>
immae: self is not the one after this overlay, but the one after all overlays, isn‘t it?
<immae>
yes maralorn
zupo has joined #nixos
<immae>
I simplified too much in my first version, but I believe (?) that the schema on the wiki is clear enough
<maralorn>
DigitalKiwi: the overrideScope think overrides not only the direct input to matterhorn but also overrides vty on all dependencies of matterhorn. Which is necessary because haskell does not permit using different versions of the same dependency in the same build.
sputny has joined #nixos
<DigitalKiwi>
yeah that's (not multiple versions) the error i hit is why tasty-smallcheck has that override
<{^_^}>
[nixpkgs] @zimbatm opened pull request #100578 → tree-wide: rename nixos-rebuild to nixos-config → https://git.io/JT3lU
<ocharles>
Is there an easy way to do pkgs.fetchzip, but to supply the sha256 of the tarball itself, rather than the unpacked contents?
<DigitalKiwi>
can you combine override and overrideScope
kiasdfasdd has joined #nixos
kiasdfasdd is now known as pumpy
<edef>
gchristensen: C=
<pumpy>
to use vnc and i3 on a guest vm do i need a display manager enabled?
cosimone has quit [Quit: cosimone]
<regnat>
ocharles: I don't think so, but you can do a fetchurl and then have a runCommand "mysrc" {} "unzip ${fetchedStuff} -d $out" or something like that
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<pumpy>
i read https://nixos.wiki/wiki/NixOS_on_ZFS but didn't see the answer. if i run a nixos guest vm using a zvolume on the host system that runs zfs, any time i snapshot the nixos guest's zvolume nixos runs fsck on startup but why? nixos guest runs ext4 fwiw
jophish has joined #nixos
xd1le has quit [Remote host closed the connection]
<clever>
pumpy: on the host side, the device backing vda
<pumpy>
oh sorry, ya
<clever>
pumpy: and you never mount /dev/zroot/nix on the host, correct?
<pumpy>
correct
<pumpy>
all uefi setup btw
<clever>
that should just work without any issues
<clever>
when does the fsck get ran? on bootup?
<pumpy>
ya i mean after the snapshot when i'm booting guest and it fsck, it passes fine
<pumpy>
ya boot
<pumpy>
if i reboot again, no fsck
<clever>
are you booting the guest from the original or the snapshot?
<pumpy>
from original
<clever>
and only one guest from that disk at a time, right?
<pumpy>
so i boot guest with raw zvol, do a basic install, reboot clean and shut down again, snapshot to @first, start guest, needs fsck, reboot, no fsck
<pumpy>
ya
<fendor>
I have troubles with the microphone on nixos, the microphone is just not recognized / listed. I tried to follow basic linux troubleshooting, such as pavucontrol and alsamixer, but none of them list the microphone. I don't have the same issue on another nixos machine.
<katyucha>
risson: I know this page but it create another Yubikey and another system. I want to add a yubikey in a existing server
<risson>
Yeah so you would be able to find the commit that contains the configuration you're running, but not rebuild the configuration from /run/current-system, for example
<risson>
katyucha: you can use cryptsetup luksAddKey I think
<pinpox>
dunno, it worked fine when I used it and I didn't really care about anything else
m4ts has quit [Ping timeout: 260 seconds]
sbetrium_ has quit [Read error: Connection reset by peer]
sbetrium has joined #nixos
<pumpy>
ty
<pinpox>
I'm looking at this demo from the nixos homepage: https://nixos.org/#asciinema-demo-example_5 for "declarative cloud images". Could anyone tell me how to adapt the image format? I'm trying to create a "raw" image that I can use with openstack, this seems to be amazon-specific?
alexherbo2 has joined #nixos
<pinpox>
Where does this line come from? -A amazonImage.x86_64-linux
<pinpox>
don't fully understand the man page entry for -A
<DigitalKiwi>
nixos/release.nix
srhm has quit [Read error: Connection reset by peer]
<DanP[m]>
Does NixCon 2020 start today or tomorrow? The program page says that it runs Friday-Sunday but the actual schedule shows Thursday-Saturday
<simonpe^^>
I need to write a shell script that lists the keys of a specific set in my large nixpkgs with custom overlay. What nix tool would I use to do that?
<simonpe^^>
say I could possibly build `nix-build -A mystuff.foo` or `nix-build -A mystuff.bar`, how would I get a list of the keys in `mystuff`?
spudly has quit [Ping timeout: 258 seconds]
spudly has joined #nixos
malook has quit [Quit: malook]
<{^_^}>
[nixpkgs] @siriobalmelli opened pull request #100602 → python3Packages.pyelftools: disable tests on Darwin → https://git.io/JT3Hu
<simonpe^^>
gchristensen: yes thank you, that work beautifully!
bahamas has quit [Ping timeout: 265 seconds]
<gchristensen>
cool!
<pinpox>
nix-build '<nixpkgs/nixos>' -A config.system.build.openstackImage \
<pinpox>
--arg configuration '<nixpkgs/nixos/maintainers/scripts/openstack/openstack-image.nix>' This builds an image, but how do I add/modify to the config? e.g. install something?
samhza has joined #nixos
<gchristensen>
create your own configuration.nix, and add imports = [ <nixpkgs/nixos/maintainers/scripts/openstack/openstack-image.nix> ]; to it
<pinpox>
gchristensen: how is the export format set?
berberman has joined #nixos
Sanchayan has quit [Quit: leaving]
<gchristensen>
-A config.system.build.openstackImage
<pinpox>
gchristensen: oh I see. So just create a normal configuration.nix like I would for a normal install and then run "nix-build ./my-config.nix -A config.system.build.openstackImage" ?
<gchristensen>
yea
berberman has quit [Max SendQ exceeded]
<pinpox>
gchristensen: cool, thanks for the help! Trying that out now.
<{^_^}>
[nixpkgs] @cideM opened pull request #100606 → Merge node-packages PRs to add: sass clubhouse-cli makam inliner undollar → https://git.io/JT35t
berberman has joined #nixos
spudly has joined #nixos
berberman has quit [Max SendQ exceeded]
<pinpox>
gchristensen: I'm getting "error: cannot auto-call a function that has an argument without a default value ('config')" with the default config genrated with "nixos-generate-config --dir ."
berberman has joined #nixos
seku has joined #nixos
berberman has quit [Max SendQ exceeded]
berberman has joined #nixos
<pumpy>
xrdp/freerdp was really easy to set up with i3 tyvm
<Taneb>
pumpy: partially, I think. I get the impression the author was trying to use Nix to be something it's not
saschagrunert has quit [Ping timeout: 256 seconds]
alexherbo2 has joined #nixos
spudly has quit [Ping timeout: 272 seconds]
<Taneb>
I don't really feel up for making a paragraph by paragraph refutation
spudly has joined #nixos
<Taneb>
Our documentation is patchy but I don't think it's quite as bad as the article suggests, and it's getting better all the time
<dutchie>
Taneb: presumably from all the references to 18.03 and 18.09 it's a couple of years old
noudle has joined #nixos
<pinpox>
Hm, seems highly subjective. I for my part like the nix language, even though I'm quite new to it. While confusing at first, it allows me to define all kinds of configs in one uniform syntax
<pumpy>
ya and the community doesn't seem small at all. i hear about nixos all the time now
<Taneb>
It is small compared to something like Ubuntu or Red Hat
<dminuoso>
pumpy: I wouldn't bother reading any article that mentions "never" or worse "never ever" in the title. :)
<pinpox>
on that point, are there any numbers on users? Would be interesting to see how much nixos has grown in the last years
<pumpy>
dminuoso ya
<pumpy>
pinpox ya like dl stats or smth
<dminuoso>
That being said, I long so badly for something similar to hackage/haddock for nixpkgs.
<dminuoso>
It's getting quite frustrating to just ripgrep through nixpkgs repo to find where a thing is identified, and then ripgrep again just to figure out the expected argument types, etc..
<pinpox>
dminuoso: isn't "manix" the tool for that?
<simpson>
pumpy: A lot of those supposed problems are actually features. IMO it is *good* that there's limited enterprise support, for example.
<Taneb>
It seems a lot of the points are only relevant to, like "I want every computer at my large corporation running NixOS!"
<pinpox>
lewo: I found that repo, but wasn't sure if I should use it since it's not official if I'm not mistaken
<pinpox>
Is there any real benefit? Trying to keep it simple
spudly has quit [Ping timeout: 260 seconds]
<lewo>
pinpox: if i remember correctly, you just have to provide a configuration.nix file like you would do it with nixos (you don't need to eval the config by yourself).
<pinpox>
lewo: Thanks I'll look into it later, looks interesting!
<pinpox>
I just hope i understand what is actually happening there
cptrbn has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dansho has joined #nixos
rot13 has joined #nixos
knupfer1 has quit [Quit: knupfer1]
knupfer has joined #nixos
knupfer has quit [Client Quit]
knupfer has joined #nixos
knupfer has quit [Client Quit]
tsujp has quit [Ping timeout: 246 seconds]
knupfer has joined #nixos
knupfer has quit [Client Quit]
knupfer has joined #nixos
knupfer has quit [Client Quit]
knupfer has joined #nixos
knupfer has quit [Client Quit]
knupfer has joined #nixos
alexherbo2 has quit [Ping timeout: 258 seconds]
knupfer has quit [Client Quit]
knupfer has joined #nixos
knupfer has quit [Read error: Connection reset by peer]
tsujp has joined #nixos
knupfer has joined #nixos
knupfer has quit [Client Quit]
knupfer has joined #nixos
knupfer has quit [Client Quit]
knupfer has joined #nixos
kenran has joined #nixos
alexherbo2 has joined #nixos
erasmas has joined #nixos
<pickfire>
What happens if a dependency was specified with an optional parameter for build inputs?
<codygman__>
In the nix repl how can I see what version of text is included with the ghc8102 compiler? This give null because it's a boot dependency I believe: `pkgs.haskell.packages.ghc8102.text`
never_released has joined #nixos
kenran has quit [Ping timeout: 272 seconds]
<clever>
codygman__: run the `ghc-pkg list` inside that ghc
<codygman__>
clever: I can when it finishes building :D Is there a way to do it from the nix repl perhaps? I needed to do this because my work is now using a custom stack snapshot using ghc8102 and I think the text version differs from whats in nixpkgs.
<codygman__>
Oh silly me, I'll just start a nix shell with only ghc8102
<clever>
exactly
<{^_^}>
[nix] @andir closed pull request #4149 → WIP: fetchTree: substitute from binary caches before trying to fetch → https://git.io/JT3N1
alexherbo2 has quit [Ping timeout: 265 seconds]
alp has quit [Remote host closed the connection]
alp has joined #nixos
sangoma has quit [Read error: Connection reset by peer]
<clefru_mm>
A derivation can point to a local file with "src = ./foobar". In this case, there is no checksum needed on src. Now, I'd like my src to be a local git repository that frequently changes (because I commit stuff to it). Is there an equivalent to src = ./foobar but just with 'fetchgit { url = ./localrepo; rev = "master"; }' ?
<clever>
clefru_mm: when you do `src = ./foobar;` nix will copy the entire directory at eval time, and hash that copy
cptrbn has joined #nixos
<clever>
clefru_mm: and if the hash is the same, it wont rebuild
<clever>
but often, you added a result symlink to the dir, and now the hash differs
<clever>
src = lib.cleanSource ./.; is one way to remove the extra stuff and make the hash more stable
<clefru_mm>
That's fine. The package is small. I'd just like to get things going.
cptrbn has quit [Client Quit]
<clefru_mm>
fetchgit strips me the other uncommited bits in my workdir, so I prefer to do a checkout of "./." instead of a full copy. Also that makes things stable, as you said wrt "result"
cptrbn has joined #nixos
alexherbo2 has joined #nixos
<lordcirth_>
clefru_mm, I know that flake inputs are git repos by default, and they download the tarball. You might be able to specify a local url with flakes. not sure.
<clefru_mm>
Actually, this was surprisingly simple to solve. I define 'src = stdenv.mkDerivation { name = "src"; builder = writeScript "builder.sh" ''
<clefru_mm>
'';
<clefru_mm>
${git}/bin/clone ${./.} $out
<clefru_mm>
That's it :)
<clefru_mm>
err sorry. "${git}/bin/git clone" of course
proofofkeags has joined #nixos
<clever>
clefru_mm: pkgs.runCommand "name" { buildInputs = [ git ]; } "git clone ${./.} $out" would do the same thing
<clever>
clefru_mm: but thats going to still rebuild every time any file changes, not just files git is tracking
<clefru_mm>
clever: You are right. I am okay with that ATM :)
<clever>
clefru_mm: there is also builtins.fetchgit
<clefru_mm>
I could just move my git repo outside of "." and push to that. That should solve the problem.
<clefru_mm>
clever: That requires me to provide a sha256 sum, which is too cumbersome for me to update each time
<clever>
clefru_mm: builtins.fetchGit doesnt need a hash, its different from pkgs.fetchgit
<nextloop>
ktosiek: are you there?
alexherbo2 has quit [Ping timeout: 240 seconds]
sangoma has joined #nixos
ziprandom has quit [Ping timeout: 260 seconds]
<clefru_mm>
clever: Oh, you are right! builtins.fetchGit doesn't require sha256 and even takes "ref". Great thank you! That's exactly what I was looking for.
<gchristensen>
jlv: dig.dnsutils. not sure why the command not found output is wrong :(
sbetrium has joined #nixos
halfbit has joined #nixos
costrouc has joined #nixos
<jlv>
gchristensen++
<{^_^}>
gchristensen's karma got increased to like 344, I think
codygman__ has quit [Ping timeout: 256 seconds]
<lordcirth_>
What, exactly, is the function that converts a flake input "nixpkgs", which is a set, to a package repository where you can do, eg, nixpkgs.ipfs ?
<pumpy>
clever++
<{^_^}>
clever's karma got increased to 516
<pumpy>
DigitalKiwi do you remember who helped me set up neovim nightly overlay like 12 hours ago? wanna +karma them
spudly has joined #nixos
spudly has quit [Client Quit]
alexherbo2 has joined #nixos
gluonix has joined #nixos
spudly has joined #nixos
<lordcirth_>
pumpy, my logs from ~12h ago show you talking to aasg about neovim
<simpson>
...But having read your derivation, I think that the particular software that you're packaging needs more. It probably needs *runtime* GLU, yes? It needs some help to find those libraries.
<lordcirth_>
beat me to it. Yeah, it looks like the package is 'glu'
<jonathan47>
Yes, it looks like runtime.
<simpson>
(My first reaction would be immediately to look for *source code* and see if we can build it ourselves. Nix is generally not a place where we use prebuilt binaries, if we can avoid it.)
alp has quit [Ping timeout: 272 seconds]
<DigitalKiwi>
pumpy: it was me. all me
<DigitalKiwi>
...aasg might've helped
<lordcirth_>
Yeah, source code if you can, otherwise I think adding 'glu' to buildInputs should get autoPatchelfHook to patch it
<halfbit>
is there a nix that works with msvc and windows by any chance?
<jonathan47>
I am getting undefined variable `glu`.
<simpson>
I looked around their website. I couldn't find source code immediately; there's some "other downloads" but they're 403 Forbidden.
<halfbit>
nix really is the only sane dependency management system
<gchristensen>
halfbit: angerman has done some builds for windows ...
<jonathan47>
Oh, there is a `src.7z` in the download.
<DigitalKiwi>
i haven't tested it because my windows 10 won't update ;_;
<jared-w>
WSL2 is just a VM so nix will certainly work in it if it works on ubuntu
<pumpy>
DigitalKiwi++
<{^_^}>
DigitalKiwi's karma got increased to 19, it's a crit!
<DigitalKiwi>
it needs wsl2 and i only have wsl1 :(
<pumpy>
ty
<DigitalKiwi>
yw :D
<simpson>
jonathan47: Great! Hopefully this was the hardest part. Once your package is Nix-built, then the linkage shouldn't be a problem, even for tricky runtime stuff like GL.
<halfbit>
seems like that doesn't really solve the issue of using MSVC to build stuff though
alexherbo25 has joined #nixos
alexherbo2 has quit [Ping timeout: 260 seconds]
alexherbo25 is now known as alexherbo2
<simpson>
halfbit: Right. So, like, I can only kind of vaguely imagine Nix on Win32 or Win64, and I think that there's a *lot* of compatibility issues to work through. Like, you'd probably be asked to present an RFC https://github.com/NixOS/rfcs/ if you wanted to work on this.
<simpson>
(I'm embarrassed that I can't just point at prior discussions. Surely they exist?)
aleph- has quit [Ping timeout: 260 seconds]
<halfbit>
if it doesn't exist already, I'm not the person that will make it happen
orivej has joined #nixos
<simpson>
Well, we *do* support i686-cygwin!
cptrbn has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}>
[nixpkgs] @OlivierMarty opened pull request #100617 → nixos/matomo: point geoip outside of the nix store. → https://git.io/JTstY
<simpson>
Yeah, you'll also want to read linux_build.sh, before_linux_build.sh, make_pascalscript_import.py; it looks like an entire custom build system.
<lordcirth_>
What, exactly, is the function that converts a flake input "nixpkgs", which is a set, to a package repository where you can do, eg, nixpkgs.ipfs ?
<jonathan47>
I did see the build files you listed. simpson. Is there a template default.nix I can use? Do I run the build steps in a `buildPhase`?
neiluj has joined #nixos
<simpson>
In configurePhase, but yes. You've already written more than any useful template could help; this package needs a relatively customized configurePhase and buildPhase.
<lordcirth_>
DigitalKiwi, basically just enabling the ipfs service and installing some other packages
<DigitalKiwi>
sometimes modules have a package you can override the version of
<lordcirth_>
Yeah, I saw that postgres had that. But the ipfs service doesn't
<pickfire>
By the way, I noticed the new nix build does not work well with small terminal.
<DigitalKiwi>
i think you have to use an overlay to use a newer module from nixos-unstable
<lordcirth_>
How small?
<pickfire>
I have 60 columns.
<pickfire>
And I can only see until ...(buildPhase"
<DigitalKiwi>
s/nixos-unstable/other channel/
<pickfire>
And nothing else, not useful.
<pickfire>
The only thing good is that it uses way lesser memory, so I don't get oom when building stuff or close my firefox.
<pickfire>
And way faster.
<pickfire>
But I noticed so far the output log are not very useful sometimes, it only shows 10 lines, usually for cmake 10 lines won't see anything useful.
fendor has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @peti pushed 1000 commits to haskell-updates: https://git.io/JTsZ0
<miyu-saki>
Yeah, I think that's correct. Is there work on path which can't be realised? I guess it can be done on the NixOS module level, idk. Paths are nice, but pose that security risk.
xd1le has quit [Read error: Connection reset by peer]
<pumpy>
is "ports = [1234];" not the right syntax to change services.sshd
<pumpy>
?
spudly has joined #nixos
spudly has quit [Client Quit]
kirc has joined #nixos
<ToxicFrog>
Options search doesn't list a `ports` option for sshd at all
<pumpy>
i tried searching and as a new user the discovery of this kinda thing is really rough
xd1le has joined #nixos
spudly has joined #nixos
<ToxicFrog>
Searching for `services.sshd` will turn up a single option which says "this an alias for services.openssh" and searching for that gets you all the options.
<DigitalKiwi>
simpson: i think if you use that it won't open the firewall though
<miyu-saki>
Though, `nixos-option` does not resolve aliases, huh.
<ToxicFrog>
pumpy: may have changed between versions? My search is against unstable, I think stable is still 20.03 or so?
nikivi[m] has joined #nixos
<simpson>
DigitalKiwi++
<{^_^}>
DigitalKiwi's karma got increased to 21
<pumpy>
DigitalKiwi so i use services.openssh.ports?
<DigitalKiwi>
though i'm not clear if it means openFirewall = true; doesn't work or just that you still need it
bahamas has joined #nixos
spudly has quit [Ping timeout: 264 seconds]
<DigitalKiwi>
i use services.openssh.ports = [ 2222 ];
<miyu-saki>
NixOS has an explicit policy that firewall should be opened by your configuration.
CyberManifest has joined #nixos
<m1cr0man>
Hey folks. I have a machine successfully netbooting from an NFS nix store and /home mounts. Problem is, when I shut down, dhcpcd.service is stopped gracefully causing the IP to be lost and thus the shutdown to take much longer. Any way I could stop systemd sending a kill signal to a service, and have it shut down without dropping the IP address?
Izorkin has quit [Ping timeout: 256 seconds]
<pumpy>
DigitalKiwi do you enable = true on services.openssh too?
<DigitalKiwi>
yes
kreyren is now known as nonAssholyRey
<cirno999>
any way i can use the dark alpenglow theme for firefox? ^^
<elvishjerricco>
Is there a way to make declarative nixos containers have their own nix store? I'm kicking around an idea for having different projects stored on their own encrypted datasets, but it would be moot if the code was thrown back into the host's nix store upon building the project with nix.
<{^_^}>
[nixpkgs] @dasJ opened pull request #100630 → pyocr: Use tesseract without alias → https://git.io/JTsBI
Izorkin has quit [Ping timeout: 264 seconds]
<bqv>
julm: have you had any luck with the apparmor PR? or are you going to abandon it? (just because I'm holding off on updating in case you can get it back in)
teto has quit [Ping timeout: 272 seconds]
Izorkin has joined #nixos
<gluonix>
Quick question: in a derivation, is it possible to override the `installPhase`, such that it does not try to run `make install` or `make sometarget`?
<{^_^}>
[nixpkgs] @ajs124 pushed 2 commits to release-20.09: https://git.io/JTsRU
meh` has joined #nixos
<elvishjerricco>
DigitalKiwi: I don't see the relation. That container is still using its host's nix store, isn't it?
<DigitalKiwi>
i was thinking multiple qemus
<DigitalKiwi>
but that might still be like you said
<DigitalKiwi>
:(
cole-h has quit [Quit: Goodbye]
* DigitalKiwi
wonders how nixbuild.net is setup
<elvishjerricco>
DigitalKiwi: VMs may be the better option
<julm>
bqv: hmm, vcunat told me to can investigate without hydra but only --option allow-import-from-derivation false, I haven't got the time yet
<julm>
s/to/I/
<gluonix>
@bqv ok thanks. I will add a target to the Makefile and use `installTargets` instead ... I wanted to avoid this because I did not want to edit the source code that is being installed.
<julm>
bqv: I'm not planning in abandoning it, but I'm not testing against upstream master every week
<julm>
bqv: do not hesitate to tell me if it gets broken
<gluonix>
Is there a way to set a target for the build phase? Right now, I use `buildFlags = ["buildsomething"];` but I doubt that is what this is meant for, and I wonder if I misunderstanding how the `buildPhase` should be used.
whatisRT has joined #nixos
<{^_^}>
[nixpkgs] @jonringer opened pull request #100632 → update-python-libraries: allow for top-level attrs to be updated with… → https://git.io/JTsRp
CyberManifest has quit [Remote host closed the connection]
<elvishjerricco>
gluonix: That's the way I would do it
<{^_^}>
[nixpkgs] @fzakaria opened pull request #100634 → buildMaven: Update buildMaven to pure Nix → https://git.io/JTs0S
teto has joined #nixos
knupfer has quit [Quit: knupfer]
knupfer1 has joined #nixos
cole-h has joined #nixos
stigo has quit [Quit: WeeChat 2.9]
knupfer1 is now known as knupfer
<bqv>
julm: I've not been using it as a patch, because that's far too inconvenient for my setup. I'll just not update, i don't forsee needing any new modules for a while anyway
cosimone has quit [Remote host closed the connection]
ris has joined #nixos
<tobiasBora>
Hello, I'm trying to package a binary without having the sources, and in the AUR package I can see quite a few qt5 dependencies, like qt5-webengine, qt5-websockets, qt5-svg... How am I supposed to add them in buildInput? I can't find any references to them with nix search and by searching on nixpkgs.
neiluj has quit [Remote host closed the connection]
meh` has quit [Ping timeout: 264 seconds]
<tobiasBora>
Also, another question, if I need to populate some configuration directory with default files, I guess they should go outside of the nix. What is the recommended way to proceed? Should my derivation accept a variable containing the path of the configuration folder, like {stdenv, configFolder = "/etc/yourconfigfolder"}?
knupfer has quit [Quit: knupfer]
knupfer has joined #nixos
knupfer has quit [Client Quit]
knupfer has joined #nixos
knupfer has quit [Read error: Connection reset by peer]
knupfer has joined #nixos
knupfer has quit [Client Quit]
knupfer has joined #nixos
knupfer has quit [Client Quit]
knupfer has joined #nixos
knupfer has quit [Client Quit]
knupfer has joined #nixos
knupfer has quit [Client Quit]
knupfer has joined #nixos
knupfer has quit [Client Quit]
knupfer has joined #nixos
knupfer has quit [Client Quit]
knupfer has joined #nixos
knupfer has joined #nixos
knupfer has quit [Client Quit]
knupfer has joined #nixos
knupfer was kicked from #nixos by gchristensen [knupfer]
malook has joined #nixos
<gchristensen>
(sometimes that helps ...)
knupfer has joined #nixos
knupfer has quit [Client Quit]
<gchristensen>
hah.
knupfer has joined #nixos
knupfer has quit [Read error: Connection reset by peer]
knupfer has joined #nixos
knupfer has quit [Client Quit]
knupfer has joined #nixos
knupfer was banned on #nixos by gchristensen [*!*@200116b82c60f700f843b4c2e0fad855.dip.versatel-1u1.de]
knupfer has quit [Client Quit]
knupfer has joined #nixos
<gchristensen>
wat
knupfer was banned on #nixos by gchristensen [knupfer!*@*]
<simpson>
One of those only-tool-is-a-hammer situations. gchristensen++ for trying to help.
<{^_^}>
gchristensen's karma got increased to 345
cognemo has joined #nixos
<gchristensen>
thanks
<gchristensen>
I also PM'd them to let me know when they're not so bouncy
<gluonix>
Question about the difference between `$src` and `$sourceRoot`: when building/developing using `nix-shell` the `unpackPhase` may unpack to `source`, say when fetching from GitHub, and say I want to copy some files to the unpack source repo. If in the `nix-shell` session, then using `$sourceRoot` works, but if I want to build the derivation using
<gluonix>
`nix-build` it does not. Is there a way to do this, such that it'll work in both cases?
<{^_^}>
[nixpkgs] @jonringer pushed commit from @r-ryantm to master « python37Packages.datamodeldict: 0.9.6 -> 0.9.7 »: https://git.io/JTsKD
spudly has quit [Ping timeout: 258 seconds]
spudly has joined #nixos
<gluonix>
For a derivation, `foo.nix`, it builds in the `nix-shell` session, invoking the phases manually, (`unpackPhase` and `buildPhase`) and when trying to build it with `nix-build` it fails. I am new to `nix` and obviously I must be misunderstanding something about the difference between building in a `nix-shell` and invoking `nix-build`.
<notgne2>
Does the same happen if you use `nix-shell --pure`?
<aswanson>
alright continuing my foray into overlaying python stuff. I need to override the version on cx_oracle which is a dependency of something I am already overlaying. I can run `nix build nixpkgs.python3.pkgs.cx_oracle` and build the older version. Now the other overlay I have is complaining that it needs the `buildPythonApplication` argument. If I ditch the cx_oracle overlay my other overlay works fine.
<gluonix>
@notgn
<aswanson>
it seems like there's something wrong with my cx_oracle overlay that is polluting python3.pkgs or something?
<gluonix>
oups, yes,
<gluonix>
@notgne2 yes, the behavior with `nix-shell --pure` is the same as the one with `nix-build`, meaning that I get the exact same error. Really cool. Thanks for this tip. But now, obviously I need to figure what is wrong.
c0c0 has quit [Quit: WeeChat 2.7.1]
<{^_^}>
[mobile-nixos] @samueldr opened pull request #227 → system-types/u-boot: Use GPT for partitions + add partitions → https://git.io/JTs6y
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}>
[nixpkgs] @jonringer pushed commit from @r-ryantm to release-20.09 « python27Packages.cma: 2.7.0 -> 3.0.3 »: https://git.io/JTs1O
noudle has quit []
<ugubok>
I've played around X drivers config trying to get NVENC work, and broke KDE compositor so transparency no longer work. After all I switch back to my previous configuration, but transparency still broken even after I reboot to old generation! What can be reason of this?
<{^_^}>
[nixpkgs] @jonringer pushed commit from @r-ryantm to master « python37Packages.islpy: 2020.2 -> 2020.2.2 »: https://git.io/JTs17
<gluonix>
Apologies if this is something I should be able to find on my own, but I wonder, how can one set an environment variable for the build phase to pickup on. Also, the env var is a path that must start with the absolute path to the `sourceRoot`.
<notgne2>
gluonix: iirc any attribute you set inside of the derivation will get passed into all of the build steps, Nix will turn paths absolute when stringifies
<notgne2>
you can also just define it inside the step itself, like `export MY_VAR=${someNixVariable}`
<gluonix>
@notgne2 ah ok. And `$sourceRoot` will be turned into an absolute path?
<tsmanner>
Hello! I'm trying to do hierarchical configuration of some tool calls in a nix-build, and I really like the way NixOS handles it for configuring programs and services etc. I have managed to describe a "module" for one tool (as a PoC I'm using g++) with some very simply options, and using `pkgs.lib.evalModules` am able to retrieve the evaluated
<tsmanner>
options with default values. The part I am missing is how to overlay/apply user config values from my equivalent to the `config.*` attrset. Any ideas or pointers would be greatly appreciated!
<euank>
it can't run is probably because it can't find the interpreter. If you check with `patchelf --print-interpreter <appimage>`, you'll probably see it print out a path outside the nix store that doesn't exist
<{^_^}>
[nixpkgs] @flokli opened pull request #100657 → networkmanager-sstp: init at unstable-2020-04-20, bump sstp from 1.0.12 to 1.0.13 → https://git.io/JTsSy
domogled has quit [Quit: domogled]
czer00 has quit [Ping timeout: 260 seconds]
<pumpy>
euank ty, maybe ill try to compile the software instead of using the appimage distro
<{^_^}>
[nixpkgs] @bcdarwin opened pull request #100659 → itk: remove -march=corei7 and -mtune=native flags from cmake build files → https://git.io/JTs9b
nature has quit [Ping timeout: 258 seconds]
justanotheruser has joined #nixos
<infinisil>
tsmanner: Just include a user-supplied value as another entry in the `modules` argument
<infinisil>
There is no difference between a module that defines options and a user-supplied one
<tsmanner>
woah, that was pretty non-obvious, but seems to do it. It does make sense from the perspective of the modules library, reuse as much code as possible. For clarity, this is what you were suggesting (and what I tried):
<tsmanner>
`pkgs.lib.evalModules { modules = [ ./compile.nix config.compile ]; }` with the `config.compile` being the new thing
maddo has quit [Remote host closed the connection]
stigo has joined #nixos
mbrgm_ has joined #nixos
<infinisil>
Yeah, similarly, NixOS' configuration.nix isn't any different than all the modules in nixpkgs. This means you can also define your own options in configuration.nix :)