<ToxicFrog>
samueldr: well, yeah, you can't let without an expression to evaluating the bindings *in*, and even if you could it'd be a no-op...
ahmed_elgabri has quit [Ping timeout: 265 seconds]
abathur has joined #nixos
<samueldr>
yeah, just stating so since if you were to try to "let" without an expression bound that could cause confusion when you're not used to that convention of programming
<jcleeng>
can help me
<woobilicious>
I know how to use let, I don't know where is a valid place to put let
<samueldr>
on front of any expression
<samueldr>
in front of*
<samueldr>
(but due to parsing ambguities it may require more parens around
<samueldr>
`[ (let x = 1; in x) ]` and `let x = 1; in [ x ]` give the same result here
<woobilicious>
"unexpected '('" haha
<ToxicFrog>
Maybe you should pastebin your code.
<ToxicFrog>
Or test smaller snippets of it in the repl.
<samueldr>
newlines have the same meaning as spaces
zebrag has quit [Quit: Konversation terminated!]
zebrag has joined #nixos
<woobilicious>
I mean the entire iso.nix file is a function right? how do I make it local to the function, because I know I'll need that in the future.
<samueldr>
ah, I see
<samueldr>
it could be before the function, or before the expression it returns
<samueldr>
both are expressions (the function definition, and the attrset)
<samueldr>
n/p, I know it can be hard to grasp at first
<samueldr>
I came from a background with having worked with a "functional" language like this one
<samueldr>
without having worked with*
<samueldr>
took me a while to get how most things handle one expression at a time
m0rphism1 has quit [Ping timeout: 272 seconds]
<woobilicious>
I'm use to haskell, but let in isn't used very much, or with do syntax you can just throw a let where ever, that was probably throwing me off.
<znr>
,locate nixos-rebuild
<{^_^}>
Found in packages: nix-bash-completions
ahmed_elgabri has joined #nixos
spacefrogg has quit [Quit: Gone.]
aw has quit [Quit: Quitting.]
aw has joined #nixos
spacefrogg has joined #nixos
marcusr has quit [Read error: Connection reset by peer]
marcusr has joined #nixos
ahmed_elgabri has quit [Ping timeout: 264 seconds]
waleee-cl has quit [Quit: Connection closed for inactivity]
ahmed_elgabri has joined #nixos
<notgne2[m]>
"nvm found the fix"
ahmed_elgabri has quit [Ping timeout: 264 seconds]
endformationage has quit [Quit: WeeChat 2.9]
zebrag has quit [Quit: Konversation terminated!]
zebrag has joined #nixos
hoytmonson has joined #nixos
jmeredith has quit [Quit: Connection closed for inactivity]
hoytmonson has quit []
dandart has joined #nixos
zebrag has quit [Quit: Konversation terminated!]
Danzig[m] has joined #nixos
<{^_^}>
[nixpkgs] @holymonson closed pull request #109599 → setup-hooks/multiple-outputs.sh: fallback to REMOVE if out isn't in outputs → https://git.io/JtkWR
est31 has quit [Remote host closed the connection]
dandart has quit [Ping timeout: 246 seconds]
sigmundv_ has quit [Ping timeout: 265 seconds]
dkjii has joined #nixos
dandart has joined #nixos
Rusty1 has quit [Quit: WeeChat 2.3]
dkjii has quit [Client Quit]
dandart has quit [Remote host closed the connection]
ManiacOfMadness has quit [Ping timeout: 265 seconds]
dkjii has joined #nixos
dandart has joined #nixos
<dkjii>
hey, how would I go about removing some paths installed in a package? E.g. I don't want the bin/ files, but only the etc/ files for nix
<dkjii>
I'm tryning with an overlay but not sure how to remove the post build files
jrm has quit [Quit: ciao]
jrm has joined #nixos
gustavderdrache has quit [Quit: Leaving.]
ahmed_elgabri has joined #nixos
<DigitalKiwi>
what package?
<dkjii>
the nix package
<dkjii>
might just copy over the profile shell script and call it a day but im interested in how ud do that
<dkjii>
I'm trying postBuild = "rm -rf $out/bin"; right now
davidv7 has quit [Ping timeout: 240 seconds]
ericsagnes has quit [Ping timeout: 272 seconds]
evax has quit [Ping timeout: 244 seconds]
palo1 has joined #nixos
palo has quit [Ping timeout: 272 seconds]
palo1 is now known as palo
dandart has quit [Ping timeout: 272 seconds]
<bqv>
Ericson2314: it's late january, you said to poke :) [r.e. nix-ipfs]
ericsagnes has joined #nixos
ahmed_elgabri has quit [Ping timeout: 272 seconds]
<{^_^}>
[nixos-hardware] @Mic92 merged pull request #221 → Port of linux-surface/linux-surface Kernel patches to NixOS → https://git.io/JLdBy
<{^_^}>
[nixos-hardware] @Mic92 pushed commit from @mexisme to master « Port of linux-surface/linux-surface Kernel patches to NixOS (#221) »: https://git.io/Jtsqj
<{^_^}>
[nixpkgs] @taku0 opened pull request #110567 → adoptopenjdk-bin, graalvm8-ce, graalvm11-ce, zulu, zulu8: link jni_md.h to include folder → https://git.io/Jtsmv
<{^_^}>
[nixpkgs] @github-actions[bot] pushed 8 commits to staging-next: https://git.io/Jtsmf
<{^_^}>
[nixpkgs] @github-actions[bot] pushed 9 commits to staging: https://git.io/JtsmJ
<Danzig[m]>
stupid but maybe obvious question: to install nixos (i am lazy/time poor/drunk/stupid), is there a wizard or a menu driven configuration generator? It would make SO much sense to do this.
<{^_^}>
[nixpkgs] @FRidh pushed to master « sqlite: test sqlalchemy when updating »: https://git.io/JtsYs
<{^_^}>
[nixpkgs] @FRidh pushed 119 commits to staging-next: https://git.io/JtsYG
<{^_^}>
[nixpkgs] @FRidh opened pull request #110569 → Staging next → https://git.io/JtsYZ
<garionion>
hey there. I'm deploying my servers with nixops and somehow after a while they (the servers) just completly forget the configuration via nixops and switch back to the one at /etc/nixos/ . Has anyone any Idea why this happens and how to prevent this?
ahmed_elgabri has quit [Ping timeout: 260 seconds]
<clever>
garionion: is /boot mounted correctly when you deploy? is auto-upgrade disabled?
<garionion>
I've just disabled auto-upgrade, i will test if this helps. on the servers where i have a /boot partition it is mounted
<clever>
garionion: auto-upgrade simply runs nixos-rebuild, which builds whatever is in /etc/nixos
<garionion>
ahhh
<garionion>
so i just update with running nixops deploy regularly?
<clever>
by default, nixops uses whatever <nixpkgs> maps to
<clever>
so you need to update the channel first, then nixops deploy
zupo has joined #nixos
hoijui has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<zeorin>
Hey all, I'm having a weird problem since about a week: When I connect to a VPN using nm-applet, it asks me for a password (previously this was not needed, I configured the password in the config), and I've just noticed that when I try to connect to a _new_ wifi network, I am not asked for a password, and the connection isn't made.
<zeorin>
ArchWiki suggests this is because gnome-keyring-daemon isn't running
<zeorin>
the openvpn passwords _are_ stored in my keyring, and the keyring _is_ unlocked. I do have gnome-keyring service enabled and installed, and it's running if I look for it in e.g. htop
<CodeBitCookie[m]>
@evils many things are also compiled from source for some reason. I installed palemoon, arc-darker theme, papirus icons and whisker menu. This took more than overnight
<CodeBitCookie[m]>
evils: I am on i686
<evils>
CodeBitCookie[m]: that's it, pkgsi686Linux.libuchardet fails to build
<CodeBitCookie[m]>
evils: so what should i do ☹️
<evils>
fix libuchardet :P
<CodeBitCookie[m]>
evils: how?
<evils>
next best is probably to disable running the tests for that package
<siraben>
CodeBitCookie: also please keep in mind this channel is bridged to IRC so editing past messages will not reflect for non-Matrix people
Izorkin has joined #nixos
<siraben>
it duplicates the message*
<{^_^}>
[nixpkgs] @primeos pushed to master « nixos/tests/chromium: Fix another potential race condition »: https://git.io/JtsnQ
<siraben>
CodeBitCookie: take a look at that link
<CodeBitCookie[m]>
thank you telling me this.
<CodeBitCookie[m]>
> CodeBitCookie: also please keep in mind this channel is bridged to IRC so editing past messages will not reflect for non-Matrix people
<{^_^}>
error: syntax error, unexpected IN, expecting ')', at (string):471:33
<siraben>
CodeBitCookie: also avoid replies :P
<siraben>
that's why the bot is saying "syntax error" after your reply
<CodeBitCookie[m]>
siraben: fingers crossed i have a pretty slow machine so please bare with me :)
<siraben>
no worries, though it will now have to rebuild mpv on your machine since the derivation (build recipe) has changed
<siraben>
evils: the good thing about overlays is that they compose, so you can combine different people's overlays in different orders
<siraben>
I like to think fo an overlay as a function that takes the entirety of nixpkgs and returns a new nixpkgs
<siraben>
s/fo/of
<evils>
so like a git commit? :P
<CodeBitCookie[m]>
siraben: does everything in nixos compile from source? if no then why does it say building cxx object ...
<siraben>
evils: git commits don't compose in the same way, that's why you get merge conflicts
<evils>
(my main reason for not having bothered learning overlays is that i contribute to nixpkgs, so having unmerged stuff just as a commit keeps things consistent)
<CodeBitCookie[m]>
siraben: so as i understand it, overlays just change some "use flags" like in gentoo?
<siraben>
Hm, I also contribute to nixpkgs
<siraben>
CodeBitCookie: are you familiar with gentoo overlays? I don't know gentoo
<CodeBitCookie[m]>
@siraben yup
<siraben>
CodeBitCookie: have you seen what a nix expression looks like?
<siraben>
let me link
<siraben>
evils: FWIW overlays are also really useful for stuff like getting wayland-compatible versions of packages
dom` has joined #nixos
dom` has left #nixos [#nixos]
<evils>
but if i can make it wayland compatible, that's a change that should be in nixpkgs
<CodeBitCookie[m]>
@siraben kind of i watched some videos and talks on nixos and nix expression and oput it on my main machine lol i have one main machine whchi is not capable of running virtual box so like yeah i just wipe everything and restart for distro hopping
<CodeBitCookie[m]>
@siraben thanks a lot now its crystal clear
<siraben>
ok, I guess what remains is what that nixpkgs.overlays is
<siraben>
the right hand side of nixpkgs.overlays has to be a list of functions
<siraben>
each of these functions takes two args, self and super, kind of like OOP
<siraben>
super refers to the original nixpkgs that you're trying to modify
<siraben>
self refers to the current, modified nixpkgs
<siraben>
the body of this function is an attribute set consisting of the changed packages
<siraben>
in this case we want to change libuchardet, so that's why we have it, and we reuse the original libuchardet expression by referring to it as super.libuchardet
<siraben>
so that's it
<siraben>
CodeBitCookie: is the build working?
<{^_^}>
[nixpkgs] @danieldk opened pull request #110580 → python3Packages.wasmer: make cargoHash invariant to the Python version → https://git.io/Jtscu
<CodeBitCookie[m]>
siraben: its happening
<siraben>
nice
garionion_ has joined #nixos
<siraben>
CodeBitCookie: hope my explanations helped :)
malook has quit [Quit: malook]
<CodeBitCookie[m]>
@siraben i screenshotted them for reference thank you so much for helping people for free
<attila_lendvai>
within an mkDerivation, how can i reference the output path (what is calld $out in the shell side)? i need to pass it to a substituteAll patches entry
<sterni>
attila_lendvai: but which is probably simple you can always use substituteInPlace in postPatch or something
<sterni>
there is also a shell function of the same name in stdenv
fendor_ is now known as fendor
<sterni>
oh yeah I guess it'd be kinda ugly in this case
<sterni>
didn't read the diff properly
<{^_^}>
[nixpkgs] @turboMaCk opened pull request #110598 → elmPackages.elm-json: fix darwin build → https://git.io/JtsB5
<sterni>
but you could try replacing the patch with substituteInPlace completely maybe?!
<attila_lendvai>
sterni, the latter seems simpler indeed, but the patches' substituteAll already replaces my @out@. how can i overcome that? i guess i should use a different variable name. but then how can i specify that so that it's available on the shell side?
<attila_lendvai>
sterni, i was advised previous to add a patch, so that it fails loud and clear when things change under me
<attila_lendvai>
*previously
<sterni>
I'll add a review with my suggestion(s) it'll take a minute though
acarrico has joined #nixos
<viric>
iperf3 doesn't allow setting the udp port. iperf, always a deception.
<blaggacao>
asymmetric: I was referring to `packages.${system}.deploy-rs` so if I'm not mistaken, this should be `deploy-rs.packages.${system}.deploy-rs` in your example
<asymmetric>
blaggacao++
<{^_^}>
blaggacao's karma got increased to 1
<asymmetric>
i was under the impression that i was alrady referring to the defaultPackage, but i was wrong
<blaggacao>
yeah, I thought so. this is a special value for nix build/run commands, only
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hiro98 has joined #nixos
rb2k has quit [Read error: Connection reset by peer]
<{^_^}>
[nix-pills] @Zebreus opened pull request #168 → Fixed minor typos in 04 → https://git.io/Jts0Q
<Yaniel>
maybe the host is meant to use systemd-boot and the managed machines use grub
zebrag has quit [Quit: Konversation terminated!]
<gchristensen>
nixops doesn't really take positions on how a system should be configured
<Yaniel>
would make sense given that linode is a cloud provider
zebrag has joined #nixos
<Yaniel>
(I mean, them being managed with nixops would make sense)
<kunrooted[m]>
hmm
<kunrooted[m]>
tho his dotfiles seemed like the only working flakes config on the Internet so
<gchristensen>
with nixops you do have to have the entire configuration of the host on the machine you're deploying from, though, that sometimes confuses people
<kunrooted[m]>
okay seems like the Windows booted instead of NixOS
<kunrooted[m]>
I love Dual Boot world
<Yaniel>
if it's UEFI you probably have to change the UEFI bootloader order in the BIOS
<Yaniel>
note that it's a separate setting from the boot DISK order
<Yaniel>
windows is very jealous of anyone who tries to change it
superherointj has joined #nixos
superherointj has quit [Client Quit]
<Yaniel>
ah okay, it's not using nixops it seems, but it has premade configs for various setups to be chosen at install time
<Yaniel>
and the linode config happens to use grub where others indeed don't
nvmr has joined #nixos
<dhess>
Given a NixOS configuration, is there a way to serialize it to text as a valid Nix expression?
teto has quit [Ping timeout: 265 seconds]
<Yaniel>
it is defined as such one in the first place?
eyenx has quit [Remote host closed the connection]
<dhess>
Yaniel: is that addressed to me?
<Yaniel>
yes
<dhess>
Yaniel: I don't know what you mean.
<kunrooted[m]>
The duck just happened
<Yaniel>
you can't really build a nixos configuration without having a valid expression of it
<kunrooted[m]>
NixOS booted after the restart but with Gnome
eyenx has joined #nixos
<kunrooted[m]>
lmao
<Yaniel>
unless you build it and then promptly delete your configuration.nix (like I Definitely Did Not Do The Other Week)
<dhess>
Yaniel: I don't see how that in any way answers my question.
<kunrooted[m]>
And, apperentky, it uses systemd-Boot now
<madonius[m]>
Hi, does anyone know an elegant way to extract ip. network, prefix from a cidr
<kunrooted[m]>
okay guys this is epic moment of fucking up NixOS config
<siraben>
dhess: do you mean that when you have a booted NixOS config, and say you accidentally delete configuration.nix and want to restore?
<dhess>
siraben: Let's assume I have a flake, and the flake defines one or more `nixosConfiguration`s
<Yaniel>
dhess: it doesn't but I don't know why you'd need to do that
<dhess>
siraben: I want to evaluate the configuration, then spit out evaluated configuration as an attrset to a text file, containing the Nix expression.
<dhess>
Yaniel: well that isn't helpful.
<Yaniel>
ah so you want to save the evaluated expression
<Yaniel>
not generate an expression of a running system
<tpw_rules>
is there a way to do something like a bash withPackages? i want to package a shell.nix so i can type a command and get a shell with everything set up that way
c3hou has joined #nixos
<sterni>
what do you mean with type a command?
WilliamHamilton has joined #nixos
<c3hou>
Isn't a bash with packages just a normal nix-shell?
<sterni>
nix-shell -p package1 package2 package3 is that
<tpw_rules>
sure, but i can't put that in environment.systemPackages or something
<sterni>
in shell.nix it's just (import <nixpkgs> {}).mkShell { buildInputs = [ package1 packag2 package3 ]; }
<tpw_rules>
i don't believe
<sterni>
tpw_rules: you want a command that starts a nix-shell with preset packages?
<tpw_rules>
oh, i wasn't sure if nix-shell could work like that
<tpw_rules>
would that solve the problem of the shell being liable for garbage collection? that's one of the reasons i want to do this
growpotkin has joined #nixos
<sterni>
i. e. let shell-start = pkgs.writeShellScriptBin "shell-start" "nix-shell -p foo bar baz $@" in environment.systemPackages [ shell-start ];
<sterni>
tpw_rules: you can add garbage collector roots for shells as well
<esac[m]>
<tpw_rules "would that solve the problem of "> If you don't want your shell to be gc'd, then Lorri or nix-direnv are good options
<esac[m]>
As mentioned above, you can manually add GC roots, but Lorri/nix-direnv make the whole thing so painless and transparent, that its basically set and forget
<c3hou>
I've found ~/.cache/nix contains a few GBs of files (seems to be caching some git checkouts?) Is there any way to clear that out / should it be left alone?
<tpw_rules>
i tried lorri but it really bugged me because i couldn't see how the build was going
<esac[m]>
<c3hou "I've found ~/.cache/nix contains"> nix optimise-store
<esac[m]>
<esac[m] "nix optimise-store"> Other options are garbage collection (I set to automatically remove entries older than 15 days)
<tpw_rules>
my ultimate goal is to nicely package this internal software system which consists of a large pile of utility programs and a python interpreter with some packages and a few other things, which i've put together and is working in a shell.nix. i'd really like a derivation i can just put in systemPackages that gives me a "system-shell" command to get into the shell and do the things i need
<c3hou>
esac[m]: oh, does that do something with ~/.cache/nix as well? I thought both optimise-store and nix-collect-garbage worked on /nix/store
<c3hou>
Actually, I have no idea what role ~/.cache/nix plays
<esac[m]>
<tpw_rules "i tried lorri but it really bugg"> Yeah, Lorri tends to hide some stuff. When I'm are making rapid changes to your shell/experimenting, then I usually keep a lorri shell open just to see how the build is going/completed
<esac[m]>
<c3hou "Actually, I have no idea what ro"> From what I understand ~/.cache/nix is user specific. I have limited understanding here, so would rather not comment. What does your ~/.cache/nix show as content?
<c3hou>
It appears to have some sqlite databases (binary-cache-v6, fetcher-cache-v6), flake-registry.json, package-search.json, tarballs, eval-cache-v2, gitv2 and gitv3
dnlkrgr has joined #nixos
<esac[m]>
<tpw_rules "my ultimate goal is to nicely pa"> Once your nix-shell is at satisfactory level, you usually don't make many changes to it, as dependencies change less frequently than your code.
zebrag has quit [Quit: Konversation terminated!]
<c3hou>
What's taking up space seems to be gitv2, which appears to be a collection of git directories
zebrag has joined #nixos
<ghasshee>
I have a question. when the program compiled successfully on 2003 failed to be comipled on 2009, how to refer to the program compiled on 2003 from 2009? I know the easiest way to do that is simply use shell alias. But I think nix-gc cannot detect such shell alias in my zshrc. Is there the way?
janneke_ has joined #nixos
<esac[m]>
<c3hou "What's taking up space seems to "> Interesting. There was a reddit discussion detailing this stuff, but I am not able to find it now.. How typical.
janneke has quit [Ping timeout: 264 seconds]
<c3hou>
Judging from the contents it appears to be checkouts of different pins of nixpkgs I've used in the past, interestingly
<tpw_rules>
esac[m]: i don't understand what you're saying. there's no one entry point to the system if you get what i'm saying
<c3hou>
esac[m]: Ah, that's a pity :/ I can't find any good hits searching for "~/.cache/nix" either
<esac[m]>
<ghasshee "I have a question. when the prog"> I do not understand. Nix-gc does not understand zsh alias?
<ghasshee>
I do not know whether it recognize or not. Is there a way to test it?
<esac[m]>
<c3hou "Judging from the contents it app"> Do you use niv by any chance? But niv stores nixpkgs checkout in same directory IIRC
<c3hou>
Nope, I've never used niv, but I do use flakes. I've been comparing the tags in them with inputs I've used in the past, but I haven't found matches for all of them yet
<c3hou>
They seem to correspond to past `fetchGit`s I've done in the past before starting to use flakes
<esac[m]>
<c3hou "Nope, I've never used niv, but I"> Okay.. I will also check my directory later today to confirm. I have multiple projects moved on tk flakes, but few still have old nix-shell.
<esac[m]>
<c3hou "They seem to correspond to past "> And flakes are all using global store?
<c3hou>
esac[m]: Yeah, I think so. I don't see my flake inputs appearing in ~/.cache/nix, at least.
virus_dave has quit [Quit: virus_dave]
<esac[m]>
<c3hou "esac: Yeah, I think so. I don't "> Good find. Something to learn for today. Thanks!
<Yaniel>
trying to generate a pipewire config file from the nixos module, how can I point to specific binaries?
<Yaniel>
I'm getting an error saying
<Yaniel>
error: the string '/nix/store/svwc5pprfl6j1pxm3ha2w90ir9s8za8f-pipewire-0.3.20/bin/pipewire-media-session' is not allowed to refer to a store path (such as '!out!/nix/store/sn8ib3h2g83r64k25xc3nfcmn7sjv0ni-pipewire-0.3.20.drv')
nvmr has joined #nixos
Jd007 has joined #nixos
genevino has quit [Remote host closed the connection]
<c3hou>
esac[m]: ooo, interesting. I've run `fetchGit` in `nix repl` and found corresponding new folders created in ~/.cache/nix/gitv2
genevino has joined #nixos
<c3hou>
Also seemed to find some mentions of `fetchGit` and ~/.cache/nix in a couple issues (e.g. https://github.com/NixOS/nix/issues/3271) so I guess it's safe to say that's the cache for `fetchGit` calls
<{^_^}>
nix#3271 (by ryan4729, 1 year ago, open): Nix git cache sometimes becomes corrupt
<c3hou>
Yaniel: you probably want something like ${pkgs.pipewire}/bin/pipewire-media-session in your string
<Yaniel>
I have exactly that
<c3hou>
Ah... No clue why that error occurs then, sorry
<sphalerite>
so, in an overlay I have… lx2k = self.lib.makeScope self.newScope (self: with self; { … }); — how can I override attrs of lx2k in a subsequent overlay?
ahmed_elgabri has joined #nixos
ahmedelgabri has quit [Ping timeout: 264 seconds]
nvmr has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<infinisil>
sphalerite: With .overrideScope' (self: super:
<infinisil>
(note the "'")
<c3hou>
esac[m]: Thanks for your help, I think I have a pretty good idea of what goes into ~/.cache/nix now. Seems to generally be caches of `fetchGit` et al, as well as temporary flake registry/binary cache caches.
<sphalerite>
infinisil: works nicely, thanks!
<esac[m]>
<c3hou "esac: Thanks for your help, I th"> I'm not sure about temp flake cache. But I'll play around when I get to my machine. Thank you as well!
<c3hou>
esac[m]: No, I don't think it caches flakes, but rather it does cache flake-registry.json
<esac[m]>
<c3hou "esac: No, I don't think it cache"> Ahh! Got it
TonyTheLion has joined #nixos
<c3hou>
esac[m]: Have fun playing around! Bye for now
c3hou has quit [Quit: Left to pet cats]
dnlkrgr has quit [Ping timeout: 240 seconds]
jluttine has quit [Quit: WeeChat 2.8]
jonringer has joined #nixos
Acou_Bass has quit [Read error: Connection reset by peer]
ahmed_elgabri has quit [Ping timeout: 264 seconds]
ahmed_elgabri has joined #nixos
oxalica1 has joined #nixos
oxalica has quit [Ping timeout: 264 seconds]
oxalica1 is now known as oxalica
<WilliamHamilton>
trying again: what could I do if I want the equivalent of an override but defined inline in my `configuration.nix`? What are the prerequisites for using the `override` function on a package?
<Yaniel>
WilliamHamilton: nixpkgs.config.packageOverrides = super: let self = super.pkgs; in { <override what you want> }
respawn_ has quit [Quit: Leaving]
<WilliamHamilton>
thanks Yaniel, and is there a way to do it without overrides, for a package that no other package depends on? like `environment.systemPackages = [packageA, modifiedPackageB ...]`?
<Yaniel>
you can use let...in to override it to a new name
<WilliamHamilton>
basically my intuition is that I would reach for overrides if I want the change to be used in another derivations, but there probably is a simpler way
<WilliamHamilton>
so `(let modifiedPackageB = packageB.override( ... ))`?
<Yaniel>
everything that isn't the default is an override
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 8 commits to master: https://git.io/Jts6p
<thibm>
I'm trying to cross compile a package using meson and I get: "ERROR: Pkg-config binary for machine MachineChoice.BUILD not found. Giving up."
<fuzzybear3965>
It was an OOM issue.
<fuzzybear3965>
For me.
<thibm>
If I look at the cross-compiled derivation's nativeBuildInputs, pkg-config seems to be the one for the target system which does not make sense to me.
<thibm>
pkg-config should go to nativeBuildInputs, right?
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 2 commits to master: https://git.io/JtsiJ
<thibm>
Sorry, the pkg-config is for the build system (although its name is aarch64-unknown-linux-gnu-pkg-config). But meson does not find it. I saw that there is a variable $PKG_CONFIG set. I'd guess meson or meson-in-Nix was aware of this environment variable
zebrag has quit [Read error: Connection reset by peer]
zebrag has joined #nixos
a63 has quit [Quit: Connection closed]
hiro98 has quit [Ping timeout: 246 seconds]
garionion has quit [Ping timeout: 240 seconds]
jluttine has quit [Quit: WeeChat 3.0]
shibboleth has joined #nixos
Kozova1 has quit [Quit: Leaving]
fuiltilt has joined #nixos
jluttine has joined #nixos
maier has joined #nixos
hnOsmium0001 has joined #nixos
dkjii has quit [Quit: Lost terminal]
<maier>
I'm trying to install NixOS on my new PC and booting from USB it seems to start just fine in UEFI mode, but then I get graphical "artefacts", that is, it gets unreadable and I get weird colored lines all over my screen. Tried with another screen and DVI instead of HDMI, but still the same. Any ideas? I can try and get a photograph, but it's not that easy.
<Yaniel>
what GPU and graphics driver?
<Yaniel>
mostly GPU if we are talking about UEFI and not the booted OS
<maier>
The shell itself seems to work as expected. I can press ENTER and see the blurriness move down, and I can type 'reboot'. The PC is a HP Pavilion Gaming TG01-1004ng, with a Geforce GTX 1660 SUPER.
<Yaniel>
might be just a matter of nouveau having trouble with that card
<maier>
CPU is an i7-10700F.
Dazey[m] has joined #nixos
<maier>
Yaniel: hum that sounds likely. Anything I can do on my own?
<sphalerite>
maier: try the nomodeset boot
<Yaniel>
it's been fairly useless with the more recent ones thanks to nvidia
<sphalerite>
should be one of the options in the boot menu
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 2 commits to master: https://git.io/JtsXy
<maier>
Yaniel: sphalerite: thanks, I'll try that. I wanted to try the other options right now while typing this anyway, but I got a windows update when restarting ><
ahmedelgabri has quit [Ping timeout: 265 seconds]
jluttine has quit [Ping timeout: 264 seconds]
<{^_^}>
[nixpkgs] @SuperSandro2000 merged pull request #110583 → simdjson: 0.7.0 -> 0.8.0; add support for pkgsStatic → https://git.io/JtsCK
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 3 commits to master: https://git.io/JtsXF
<JaakkoLuttinen[m>
Not sure if nixos issue or something else, but after upgrading on nixos-unstable, the following started to happen: Network manager just activates and deactivates my wired connection every about 5s. Just when it activates, it immediately deactivates. Then, after a few seconds it activates again just to deactivate immediately after that. And so it has been going on for a long time now
<JaakkoLuttinen[m>
Any ideas what could be wrong? I've been searching but haven't found anything helpful yet..
jluttine has joined #nixos
hyiltiz has quit [Ping timeout: 272 seconds]
sangoma has joined #nixos
<ar>
JaakkoLuttinen[m: sounds like standalone wpa_supplicant *and* networkmanager fighting for the steering wheel
<ar>
JaakkoLuttinen[m: or, maybe, wpa_supplicant and iwd running at the same time
<ar>
or two instances of NM
hiro98 has joined #nixos
maier has quit [Ping timeout: 265 seconds]
hyiltiz has joined #nixos
jluttine has quit [Ping timeout: 240 seconds]
<JaakkoLuttinen[m>
ar: With `ps ax | grep NetworkManager`, I see only one NetworkManager process. Similarly but grepping for `iwd` or `wpa` gave no results.. 😕
<ar>
oh, nvm, i misread the "wired" as wireless
<JaakkoLuttinen[m>
In systemctl unit list, I can see, for instance, `ModemManager.service`, `network-local-commands.service`, `network-setup.service`, `NetworkManager-dispatcher.service`, `NetworkManager-wait-online.service` and `NetworkManager.service`. But I suppose this is all ok, no conflicts..?
<JaakkoLuttinen[m>
Interestingly, logs in `journalctl` are silent. Just `Starting Network Manager...` and `Started Network Manager.`. Nothing after that.
jluttine has joined #nixos
<JaakkoLuttinen[m>
Hmm.. Now after 30min of doing this on-off jumping, it seems it may have suddenly started working.. 😮
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 3 commits to master: https://git.io/JtsMv
<JaakkoLuttinen[m>
That's just weird. I didn't do anything. I guess it'll do this all over again after the next boot... What could cause this kind of issues for about 30min after boot..??
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 2 commits to master: https://git.io/JtsM1
neiluj_ has joined #nixos
buddy2003 has joined #nixos
<{^_^}>
[nixpkgs] @jonringer opened pull request #110622 → python3{9,10}: add tzdata to config → https://git.io/JtsMb
zebrag has quit [Quit: Konversation terminated!]
vangelis369 has quit [Ping timeout: 256 seconds]
zebrag has joined #nixos
jolicoeur has joined #nixos
zakame has quit [Ping timeout: 258 seconds]
<buddy2003>
Hi All! I would appreciate some help like links to docs for my nixos noob question: When I install a package for a single user using `nix-env -i firefox` where is the information stored about which packages that user has installed? I ask because I would like to recreate those same installed packages on a different machine. I understand how to do
<buddy2003>
this for the system packages I have defined in /etc/nixos/configuration.nix, but I don't know how to do it for different user profiles. Thanks!
<dhess>
Cadey: alternatively, if you just need to disable it for some URIs, you can add them to the `allowed-uris` setting in the Hydra config.
Havvy has quit [Ping timeout: 260 seconds]
<dhess>
Cadey: for example, `allowed-uris = https://github.com/cadey` would disable restricted evaluation for fetches from any repo in cadey's account on GitHub
<Cadey>
i see, i'll try that
<Cadey>
thanks
<{^_^}>
[nixpkgs] @talyz opened pull request #110626 → updater-emacs: Add missing `pkgs` in path to `withPackages` → https://git.io/Jtsyv
<rmcgibbo[m]>
Does anyone understand how `nixpkgs-hammering` works well enough to know if it would be possible to add new overlays that specifically check buildPythonPackage's arguments rather than only stdenv.mkDerivation's argumentts?
ToxicFrog has quit [Remote host closed the connection]
<bbigras>
Anyone else has "Couldn't resolve host name" errors with cachix right now?
fendor has joined #nixos
citadelcore has joined #nixos
<srid>
Does anybody here use IPFS on nixos to do ... interesting things? Not sure what exactly -- but anything from hosting a static site to .... apps? Would be cool to look at your declaratively nix config.
lddless has joined #nixos
citadelcore has quit [Client Quit]
<{^_^}>
[nixpkgs] @markuskowa merged pull request #108983 → Use mpi attribute consistently to provide a default MPI implementation → https://git.io/JLj6e
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 2 commits to master: https://git.io/JtsHm
madmaurice has joined #nixos
<bbigras>
it seems like I can use `--option substitute false`
<{^_^}>
[nixpkgs] @SuperSandro2000 merged pull request #98124 → atom, atom-beta: fix not working file deletion → https://git.io/JURkg
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 2 commits to master: https://git.io/JtsH3
<bbigras>
hmm I'm having dns issue with ftpmirror.gnu.org now
<bbigras>
switching my dns to 8.8.8.8 fixed the problem. with cachix too.
ToxicFrog has joined #nixos
<{^_^}>
[nixpkgs] @yurrriq opened pull request #110634 → aws-azure-login: init at 3.2.2 → https://git.io/JtsHV
cole-h has joined #nixos
<colemickens>
The whole systemd-networkd not doing DHCP for all devices seems awkward. I have a laptop with a USB ethernet adapter, or rather multiple of them. Switching one out and then being entirely without networking would be bad.
<colemickens>
I guess I could do it by hand to get the network up and then redeploy it's configuration with the interface configured to do dhcp through networkd, but I guess I can kinda remember why I was wary of networkd.
<{^_^}>
[nixpkgs] @bobrik opened pull request #110639 → mc: move dependency pruning from post to pre fixup → https://git.io/JtsQX
Uma_ has joined #nixos
<Uma_>
Has anyone been successful in building an Android app with Gradle on NixOS? I tried getting myself a shell with gradle and the Android SDK, but I have trouble accepting the licenses, since files need to be written to the Android SDK directory, witch is read only
<Uma_>
(afaik config.android_sdk.accept_license only affects pkgs.androidenv.buildApp, which uses ant)
<{^_^}>
[nixpkgs] @marsam pushed 3 commits to release-20.09: https://git.io/Jts7X
g-w1 has left #nixos ["WeeChat 2.7.1"]
euandreh_ has quit [Ping timeout: 260 seconds]
dandart1 has joined #nixos
<jolicoeur>
Uma_, yes, I just had to add the openjdk11 and unstable.androidStudioPackages.beta packages then setup an emulator in android studio and it worked
<{^_^}>
[nixpkgs] @roberth merged pull request #109761 → nixos/nomad: add extraSettingsPaths option to nomad service → https://git.io/JtIAf
<{^_^}>
[nixpkgs] @roberth pushed commit from @cpcloud to master « nixos/nomad: add extraSettingsFiles option to nomad service (#109761) »: https://git.io/Jts5n
rb2k has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
K0kada_ has joined #nixos
K0kada has quit [Quit: Leaving]
K0kada_ is now known as K0kada
firelink[m] has joined #nixos
dnlkrgr has quit [Ping timeout: 240 seconds]
dnlkrgr has joined #nixos
TonyTheLion has quit [Ping timeout: 246 seconds]
TonyTheLion has joined #nixos
tinco has joined #nixos
WilliamHamilton has quit [Quit: Ping timeout (120 seconds)]
<tinco>
hey peeps, I haven't really tracked nixos development in 4 years or so, has anything significant happened to it in the past couple years? what's a good place to read up on developments?
buddy2003 has quit [Quit: Ping timeout (120 seconds)]
<bbigras>
tinco: maybe read the releases notes
<{^_^}>
[nixpkgs] @jtojnar pushed 126 commits to staging-next: https://git.io/Jtsdn
<bbigras>
maybe there's blog post or something for nix flakes
<{^_^}>
[nixpkgs] @AndersonTorres pushed 2 commits to master: https://git.io/JtsFj
KarlJoad has joined #nixos
K0kada has joined #nixos
oi has joined #nixos
<KarlJoad>
I'm working on moving dolfin out of a let-binding for a python package and moving it to the global namespace. What's the best way to handle it? Each library dependency needed by dolfin in its own place, or keep them all together? Because dolfin is used for ffc, which is a compiler.