<esotericnonsense>
it's insane being able to just store configuration.nix in a git repo and have all of my machines be essentially identical other than user data
<gchristensen>
I'm not sure what pills have to do with it, but I'm glad you like nix and nixos
<esotericnonsense>
the declarative language makes per-machine configuration far easier than having endless bash hacks
meh` has quit [Ping timeout: 260 seconds]
supersandro2000 has quit [Disconnected by services]
supersandro2000 has joined #nixos
justanotheruser has joined #nixos
<{^_^}>
[nixpkgs] @nickfraser opened pull request #107678 → [20.03] tremor: fix src link → https://git.io/JLMyV
<energizer>
what if nixpkgs is itself an endless bash hack </philosoraptor>
civodul has quit [Quit: ERC (IRC client for Emacs 27.1)]
grfn has quit [Read error: Connection reset by peer]
grfn has joined #nixos
buggymcbugfix has quit [Ping timeout: 272 seconds]
mitchellh has quit [Ping timeout: 272 seconds]
nh2 has quit [Read error: Connection reset by peer]
<esotericnonsense>
energizer: heh, touche
johs has quit [Read error: Connection reset by peer]
elvishjerricco has quit [Ping timeout: 264 seconds]
mitchellh has joined #nixos
buggymcbugfix has joined #nixos
nh2 has joined #nixos
johs has joined #nixos
elvishjerricco has joined #nixos
<{^_^}>
[nixpkgs] @Pacman99 opened pull request #107681 → calls: 0.1.5 -> 0.1.9 with init of callaudiod and feedbackd → https://git.io/JLMyp
<{^_^}>
[nixpkgs] @nickfraser opened pull request #107682 → [20.03] x265: Remove ARM patch which no longer exists, and causes builds to break → https://git.io/JLMyh
SomeoneSerge has quit [Ping timeout: 260 seconds]
belt has joined #nixos
<{^_^}>
[nixpkgs] @blitz opened pull request #107683 → kermit: use postPatch instead of patchPhase → https://git.io/JLMSI
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 2 commits to master: https://git.io/JLMSG
noudle has quit []
<{^_^}>
[nixpkgs] @SuperSandro2000 closed pull request #107682 → [20.03] x265: Remove ARM patch which no longer exists, and causes builds to break → https://git.io/JLMyh
<radvendii>
is there an easy way to use nix to compile a flatpak package? Like, if I already have a default.nix file that will produce files that get put in bin and share directories, is there a way to convert that into one that will just produce a flatpak?
CMCDragonkai2 has joined #nixos
Dotz0cat has joined #nixos
<moet>
this is kind of a silly question, but i've got a nixops network that's got a machine defined like this: `my-machine = args@{ pkgs, ... }: (import ./host-config.nix args) // { /* deployment attrs */ };` .. my question: i thought that the use of `//` would allow me to override things in the `./host-config.nix` because `//` is right biased, but instead i get a "conflicting definitions" error.. any idea how to
<moet>
fix this?
jb55 has quit [Remote host closed the connection]
jb55 has joined #nixos
D_ has quit [Remote host closed the connection]
<moet>
ok, it seems that `mkForce` and `mkDefault` (which are both calls to mkOverride in nixpkgs/lib/modules.nix ?) seems to be the answer, according to this stale issue https://github.com/NixOS/nixpkgs/issues/15747
<{^_^}>
#15747 (by danbst, 4 years ago, open): Error description for option conflicts
<esotericnonsense>
how do I bump a pull request for nixpkgs if the existing maintainers don't notice it?
<esotericnonsense>
really trivial change, just a search/replace update for a new package
<esotericnonsense>
package upgrade*
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}>
[nixpkgs] @flokli opened pull request #107689 → raspberrypi-tools: fix build on x86_64-linux → https://git.io/JLM5g
xcmw has joined #nixos
<infinisil>
esotericnonsense: Well you can't change their PR directly, but you can leave a comment, open your own PR, wait until it's merged and open your own PR with the update, or you could even open a PR against their PR branch
mvnetbiz_99 has joined #nixos
<esotericnonsense>
it's my PR; just wondering if I should do something like review something else and then link mine, or just pester someone, or ...
CMCDragonkai2 has quit [Ping timeout: 240 seconds]
<infinisil>
Ohh, I thought by maintainer you meant the PR maintainer. But I get it now
<{^_^}>
#54573 (by alyssais, 1 year ago, open): [WIP] libreoffice,libreoffice-fresh: fix build on Darwin
palo has quit [Ping timeout: 264 seconds]
palo1 is now known as palo
<iddt>
i'm a very very very recent convert to nixos. i think i got a little too carried away with the power of jumping around between configs and channels and managed to break my install. for some reason, i can still get an ip addr via dhcp, but it no longer assigns the nameservers.
<siraben>
qyliss: thank you, I will take a look
<iddt>
i'd love a helping hand. i was feeling invincible before and now very wobbly and nervous.
revtintin has joined #nixos
<iddt>
is the right idea that if you want to try a different version of nixos, you remove the current channel, add the one you want, name it "nixos", do a nix-channel --update, and then do your nixos-rebuild switch's?
ransom has quit [Ping timeout: 240 seconds]
<iddt>
the blessed approach for using networkmanager is to enable that and then do networking.useDHCP = false and then set useDHCP to true for each of the interfaces you want it on, ya?
ransom has joined #nixos
riksteri has joined #nixos
* iddt
watches a tumbleweed roll by... :)
zopieux has quit [Ping timeout: 268 seconds]
strikerlulu has quit [Ping timeout: 256 seconds]
zopieux has joined #nixos
<qyliss>
iddt: doesn't networkmanager handle the dhcp?
<iddt>
qyliss: it used to work just fine, and it still fetches the gateway and ip and all that just fine.
<iddt>
qyliss: but /etc/resolv.conf only has the option edns0 in it now, so i have to manually add in a nameserver for it to resolve names now
<iddt>
this is what makes me think i was doing something shabby and foolish in hopping between nixos channels/configs
stoile has quit [Ping timeout: 260 seconds]
<iddt>
qyliss: does my process for switching between channels/configs sound right to you?
<qyliss>
it's been a very long time since I used channels so I can't really say
<iddt>
qyliss: oh rly? is there another way?
<qyliss>
many! you can set NIX_PATH to load Nixpkgs from a URL or a local directory
<qyliss>
I use a git checkout
<qyliss>
makes it easier to work on nixpkgs
<iddt>
qyliss: so you git checkout the nixpkgs to a local dir and then point your NIX_PATH to that?
<siraben>
iddt: yeah I do that sometimes too, works great
<Kozova1>
Is it possible to easily configure a 404 page in services.nginx?
<Kozova1>
currently my config is something like this: location = /404.html { internal; } error_page 404 /404.html;
<siraben>
iddt: here's how to specify NIX_PATH to load from a URL; `NIX_PATH=nixpkgs=https://github.com/nixos/nixpkgs/archive/b428cee2bf.tar.gz nix-shell -p hello --run hello`
<siraben>
but for a system configuration I'm not sure how to set that beyond channels
<iddt>
siraben: but the approach i described sounds right to you? where you specify your channel, do an update, and then do your rebuild switch's?
<siraben>
It sounds right but sounds like more work than necessary
<siraben>
especially since you're mutating something in your environmwnt
<siraben>
btw nix-channels can be rolled back as well
<iddt>
siraben: this is all a little confusing. could you describe a short walkthrough of how you might switch from being on 20.09 to 19.03?
<iddt>
siraben: is there any significance to what you name your channel? that part confused me. it seemed to scream at me a couple of times if i didn't call it "nixos", but i might have been paralyzed w/ fear at the time
<siraben>
I'm not sure, I only have used nix-channels to update my system (but niv for home-manager)
<iddt>
siraben: home-manager?
<siraben>
iddt: to manage my user configuration
<siraben>
and packages etc
<siraben>
but someone else could answer re: changing system version
<iddt>
siraben: that's another question i had. for the value of being able to trivially migrate a system, there seemed to be value to putting all my installed packages in configuration.nix, so i could just move one file to the new system. should i be doing more user-based package mgmt?
<iddt>
siraben: i'm never on multi-user systems where they'd want to have different packages, so it didn't make intuitive sense to me.
<siraben>
iddt: i used to use solely configuration.nix then moved to using home-manager for packages and such, not because of needing other users but because I wanted to use Nix on macOS as well
<iddt>
siraben: oh wow, reading yer home.nix. this is fascinating.
xcmw has joined #nixos
stoile has joined #nixos
<iddt>
siraben: so does nixos ever go screwy for you like it has for me with this nameserver thing, or is generally bulletproof/pure/stateless as advertised?
<siraben>
What's your issue with the nameserver again?
strikerlulu has joined #nixos
<iddt>
siraben: i'm using networkmanager, and my interfaces (whether wired or wifi) still fetch the netmask, ip, gateway, etc, and i can ping about to my heart's content, but for some reason, it no longer fetches the nameserver.
<iddt>
so "ping reddit.com" fails but "ping 151.101.193.140" works fine
<siraben>
oh, is your DNS set up?
<iddt>
siraben: i thought networking.networkmanager.enable = true took care of that?
<iddt>
siraben: i have to manually insert a nameserver entry into /etc/resolv.conf to fix
<iddt>
siraben: if i touch an /etc file once, does nixos-rebuild live in fear of messing with it from then on or something?
<iddt>
siraben: i was under the impression it generated most of /etc from whatever you put in your configuraiton.nix file
<siraben>
Oh I'm not sure about touching /etc/resolv.conf, hm
<iddt>
siraben: huh. could it be because i added an openvpn config?
hmi has quit [Quit: WeeChat 3.0]
<siraben>
iddt: manually or via Nix?
hmi has joined #nixos
<siraben>
in general you should not be concerned or touch files in /etc/ IIRC, you could even remove the entire folder and your system would still boot
<iddt>
siraben: via nix only. trying to be super strict about keeping everything in configuration.nix, but i put my openvpn config file in /etc/nixos/yadda.conf. bad taste i imagine. where do /etc-ish things belong when /etc should be blow-away-able?
Mateon1 has quit [Remote host closed the connection]
<iddt>
siraben: i've noticed that nixos-rebuild switch never tells me i have to logout or reboot for changes to take effect, even if i'd clearly have to for changes to take effect. is knowing how far to back out and restart things something i should be on top of?
<siraben>
I usually relog after a switch
<siraben>
or do nixos-rebuild boot
<iddt>
siraben: oh interesting
<siraben>
not sure about /etc and friends, i'm only moderately proficient with standard linux FHS stuff
<iddt>
siraben: where do you store system-wide config files that you're fond of?
<iddt>
siraben: like something you're bringing to the party as opposed to fhs-y stuff
<iddt>
siraben: btw ty so much for your help :) :)
<iddt>
siraben: ya, that's how i modeled my openvpn line. that example puts the files in /root, which i could do i suppose. just not used to putting stuff in there.
<hyper_ch>
and with tha ...4ja it worked on my system... so is ofborg having problems?
<Mic92>
Kozova1: Bad habbit from using my IRC client for slack
<hyper_ch>
Kozova1: or use -j REJECT if you want to reject
growpotkin has joined #nixos
<hyper_ch>
Mic92: so why is ofborg complaining about sha256?
<Kozova1>
great, ty :)
<Kozova1>
does iptables support zones?
<Mic92>
hyper_ch: fetchpatch cannot be used with nix-prefetch-url
<hyper_ch>
Mic92: so I need to fix it to what ofborg says... will do so
<Mic92>
It normalizes the patch before computing the checksum
<Mic92>
Yes
<hyper_ch>
sounds like an odd behaviour
Mateon1 has joined #nixos
<hyper_ch>
thanks though
<qyliss>
hyper_ch: otherwise dynamically generated patches by e.g. GitHub change all the time
<hyper_ch>
github makes generates them dynamically? didn't know.. ok, then it makes sense
<hyper_ch>
Kozova1: for outgoing domain block I just like to add things to /etc/hosts :) --> networking.extraHosts = '' [break line] 0.0.0.0 domain.tld [break line]''
<Kozova1>
that's a nice trick
<hyper_ch>
Kozova1: you can also integrate lists from other source... e.g. prebuilt "ad blocking lists" by adding this ${builtins.readFile (builtins.fetchurl { name = "blocked_hosts.txt"; url = "https://domain.tld/path/to/ad-block-list.txt"; })} --> it just needs to be either 0.0.0.0 domain.tld (or less preferrably 127.0.0.1 domain.tld)
<Kozova1>
nah no need, no browsing on that system
<hyper_ch>
just add that to the extraHosts list as well
<Kozova1>
that's my home server lol
<hyper_ch>
well, no my notebook I do have that included
<hyper_ch>
just a lot of common ad/tracking domains
<Kozova1>
btw, any way to allow a port for only a few specific IP addresses?
<Kozova1>
for example, open port 22 for 192.168.1.225 and close for all others
<hyper_ch>
probably with two firewall rules --> first rule allow port for that single IP and second rule block port for all ips... but don't ask me... I know too little about iptables
<Kozova1>
all my firewall experience is with firewalld :(
<Kozova1>
it's really a shame that nixos doesn't seem to support it
<hyper_ch>
Kozova1: you'll get better help in #Netfilter
<Kozova1>
I think that should be pretty much my complete firewall config
<Kozova1>
I only need to open 443, 80, 25565 for all, 22 for my and my brother's computers and block that one specific IP
<hyper_ch>
don't add the port to firewall.allowedTCPPorts list... that would open it for everyone... I think jsut adding that iptables rule should be enough
<Kozova1>
yeah
<hyper_ch>
also, if you just use it for own traffic... you could setup a vpn that grants you according access
evernite has joined #nixos
lgcl has joined #nixos
evernite has quit [Client Quit]
<hyper_ch>
I really like wireguard as vpn meanwhile
<hyper_ch>
I only use openvpn for some sip hardphones
<eee13>
hi all, I have a problem with the firewall of my server after a reboot. It seems to not load correct. I have port forwarding to my virtual machines. But If I reboot, they dont work anymore. Only if you do a 'systemctl reload firewall' after reboot, everything works as expected.
<eee13>
Is it a configuration thing or a bug?
<eee13>
Or had anyone experienced a similar problem?
<{^_^}>
[nixos-search] @turboMaCk pushed to turboMaCk/fix-packages-with-miltiple-homepages « Fixes support for packages with multiple homepage entries. »: https://git.io/JLDHF
saschagrunert has quit [Remote host closed the connection]
<{^_^}>
[nixos-search] @turboMaCk opened pull request #255 → Fixes support for packages with multiple homepage entries. → https://git.io/JLDHb
tnias has joined #nixos
<{^_^}>
[nixos-search] @turboMaCk pushed to turboMaCk/fix-packages-with-miltiple-homepages « more consistent naming »: https://git.io/JLDQI
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 2 commits to master: https://git.io/JLDQ1
<{^_^}>
[nixos-search] @turboMaCk pushed to turboMaCk/add-request-package-link « Add package / request package link when no results »: https://git.io/JLDQM
<{^_^}>
[nixos-search] @turboMaCk opened pull request #256 → Add package / request package link when no results → https://git.io/JLDQy
Thra11 has joined #nixos
barm has quit [Ping timeout: 260 seconds]
vidbina has joined #nixos
barm has joined #nixos
<{^_^}>
[nixpkgs] @github-actions[bot] pushed 17 commits to staging-next: https://git.io/JLD7T
<{^_^}>
[nixpkgs] @github-actions[bot] pushed 18 commits to staging: https://git.io/JLD7k
<{^_^}>
[nixos-weekly] @SuperSandro2000 pushed 0 commits to ryantm-patch-1: https://git.io/JLD7w
<{^_^}>
[nixos-weekly] @SuperSandro2000 pushed 0 commits to ryantm-patch-2: https://git.io/JLD7o
<Duponin>
eee13: never heard about and looks to be a bug. As a workaround I'd advise you to create a systemd unit to run `systemctl reload firewall` a few seconds after server is powered on (not awesome but should help a bit)
tboston has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<octe>
is it supported to upgrade between multiple versions? i.e. directly from 18.09 to 20.09
<lukegb>
,tofu
<{^_^}>
To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000), then replace it with the correct hash Nix expected. For inserting 52 0's in vim: <esc>52i0<esc>
<Ke>
someone mentioned lib had some function that gives fake sha256
<leo60228>
clever: is there a reason not-os builds a squashfs instead of just putting everything in the initrd? how hard would it be to modify to do that?
<leo60228>
i'm curious about building gpioexpander-style rpiboot firmwares using nix
<leo60228>
which are just a bundle of an initrd, zImage, rpi-firmware, and device tree
troydm has quit [Quit: What is Hope? That all of your wishes and all of your dreams come true? To turn back time because things were not supposed to happen like that (C) Rau Le Creuset]
kraem has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
<supersandro2000>
hyper_ch: pong
kraem has left #nixos ["User left"]
arinov has quit [Read error: Connection reset by peer]
troydm has joined #nixos
arinov has joined #nixos
<supersandro2000>
hyper_ch: I have no clue about this patch and I don't want to break something
<hyper_ch>
supersandro2000: well, ok :) just because you replied :)
kraem has joined #nixos
<supersandro2000>
I just nitpicked the formatting :)
<hyper_ch>
that patch was accepted into the official util-linux source
<supersandro2000>
I don't know C and can't tell if we can just backport it or require something else to not break things
cole-h has joined #nixos
<hyper_ch>
problem is without having this patch applied, usermounts in kernel 5.10 have issues
kraem has left #nixos ["User left"]
<lordcirth__>
since it's a patch from 2.36.2 being applied to 2.36.1, it doesn't sound likely that it would break things. That's a small version gap.
xelxebar has quit [Quit: ZNC 1.7.2+deb3 - https://znc.in]
xelxebar_ has joined #nixos
arinov_ has joined #nixos
arinov has quit [Ping timeout: 240 seconds]
kraem has joined #nixos
nicoo has quit [Ping timeout: 240 seconds]
madalu has quit [Ping timeout: 240 seconds]
gxt has quit [Ping timeout: 240 seconds]
andreas303 has quit [Ping timeout: 240 seconds]
cantstanya has quit [Remote host closed the connection]
arinov_ has quit [Read error: Connection reset by peer]
<tpw_rules>
it might take a long time to do anything the first time you run it
<astylian>
tpw_rules, it takes some time to run, and the prints 'Killed' and stops
<tpw_rules>
you might not have enough memory
<tpw_rules>
the first time you run it after install it computes quite a lot of derivations. does dmesg say something about OOM killed?
<tpw_rules>
run dmesg | tail
fendor_ has joined #nixos
<astylian>
yes, you are right
<tpw_rules>
i don't know how to solve that except quit applications or install more ram/swap. maybe there is a way somebody else knows to compute less at once
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 2 commits to master: https://git.io/JLDpj
tboston__ has quit [Read error: Connection reset by peer]
domogled has joined #nixos
tboston has joined #nixos
<ornxka>
is it possible to sudo installPhase somehow...
<Yaniel>
that'd be besides the point of nix
<Yaniel>
why do you need to?
<Ke>
I think you need some activation script rather, do you have suid or something?
<ornxka>
the result of buildPhase is not working but i am hoping that successfully running installPhase will fix it somehow :p
<Yaniel>
poking in the dark isn't a wise idea then
sorki has joined #nixos
<Yaniel>
especially not poking with sudo
srk has quit [Ping timeout: 240 seconds]
lifestronaut has joined #nixos
sorki is now known as srk
<lifestronaut>
If I've used nix-prefetch-url to "notify" nixos of a file's existence, how do I properly refer to that file in a nix package? The file in quesiton is an executable .run file to install Maple
<lifestronaut>
I tried using --show-path with nix-prefetch-url to get the path of the file and run it directly, but i get a "permission denied" error. https://pastebin.com/fVH2vyVE
<{^_^}>
[nixpkgs] @Mic92 opened pull request #107733 → buildFhsUserenv: don't downgrade root user → https://git.io/JLDjJ
malook has joined #nixos
malook has quit [Client Quit]
redkahuna has joined #nixos
pushqrdx has joined #nixos
erictapen has joined #nixos
redkahuna has quit [Ping timeout: 240 seconds]
<ornxka>
is there something obvious to do when you package something and the resulting binary is linked against shared object files that it cant find?
<emilsp>
say, I have a configuration.nix that I want to pass to <nixpkgs/nixos/lib/make-disk-image.nix>, it seems like I have to do something extra to make it work, since my plain jane config file does not contain all the attributes that are expected.
<{^_^}>
[nixpkgs] @fabaff opened pull request #107737 → gau: init at 1.1.0 → https://git.io/JLyeN
nature has joined #nixos
<nature>
what is your usual workflow when cloning a new git repo and wanting to build it ? Let's say a simple C project for instance
gustavderdrache has joined #nixos
<nature>
do you directly create a shell.nix file or a default.nix ? Up until now I have only used software that are in nixpkgs and setup my own Golang projects, but not much more.
<simpson>
Probably autotools and default.nix. The main consideration is to always ensure that default.nix and shell.nix stay up-to-date; they have to be used as the main way of building things.
tboston has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<nature>
autotools ?
<nature>
Also would there be a way for instance to bootstrap repo like this with `nix flake init` ? Like you can define templates for C projects as well as Go projects ?
Jackneill has quit [Ping timeout: 240 seconds]
lordcirth__ has quit [Remote host closed the connection]
<simpson>
Like, GNU Autotools. There probably are ways to do templates, sure.
<simpson>
TBH one probably doesn't need to create new repositories *that* often, compared to the fact that a shell.nix is usually only around five lines and a .envrc only two lines.
erictapen has quit [Ping timeout: 260 seconds]
<nature>
Okok, thanks a lot simpson
<simpson>
But there might indeed be ways to customize how flakes are initialized. I don't know much about that, and hopefully somebody else does.
<drakonis>
hmm, i need some advice on how to create two separate instances of the same service, should i create another module just for the second instance?
<{^_^}>
[nixpkgs] @pacien opened pull request #107740 → i3-balance-workspace: init at 1.8.3 → https://git.io/JLyfK
<{^_^}>
[nixpkgs] @romildo opened pull request #107742 → xfce: update src to use new git repository → https://git.io/JLyfd
sangoma has joined #nixos
<ornxka>
Ke: i am pretty sure it is trying to dlopen the libs
mallox has quit [Ping timeout: 240 seconds]
ambro718 has quit [Quit: Konversation terminated!]
domogled has quit [Remote host closed the connection]
<ornxka>
its a firefox fork/patchset that im trying to compile, in regular firefox it sets LD_LIBRARY in the wrapper script, but i ran installPhase and fixupPhase and while one of those did indeed generate a wrapper script, it doesnt set LD_LIBRARY_PATH anywhere (even though i am using essentially the same build expression)
<immae>
Hey there, I’m looking for examples of flakes, are there some repositories with "state of the art" derivations? I followed the docs and ended up with https://tools.immae.eu/paste/fo8b but I’m not very satisfied with the result yet
gaccx has quit [Remote host closed the connection]
cosimone has joined #nixos
respawn_ has quit [Quit: Leaving]
zakame has quit [Ping timeout: 265 seconds]
collares has joined #nixos
Kozova1 has quit [Remote host closed the connection]
<nature>
Trying to understand the quirks of nixos, I recently cloned a repo and created a bsaic shell.nix, I added openssl to the build input and when I run ./configure I have this error: Checking for OpenSSL... ERROR: pkg-config not found
Kozova1 has joined #nixos
<nature>
So it I am missing a dependency, how do I add a dependency like this ? openssl is already in my `nativeBuildInput` array
slby[m] has joined #nixos
Lord_of_Life has quit [Ping timeout: 256 seconds]
<jtacoma>
you might just need to add [ pkgconfig ] to your buildInputs
<jtacoma>
pkgconfig would go in the buildInput array since it's only a built-time dependency.
Lord_of_Life has joined #nixos
<matthewcroughan>
When I `:l nixpkgs/nixos` into my nix repl, this somehow populates my `config.functions` with my /etc/nixos/configuration.nix values, how does this work? Anyone got an idea
<jtacoma>
nature: about your `nix init` idea, i'm not sure what all you had in mind, but niv might be a partial solution: `nix-env -iA nixpkgs.niv ; niv init`
<jtacoma>
matthewcroughan: no idea from me! i'm still pretty new to nix myself, but taking some time over the holidays to get in to it.
<nature>
Thanks jtacoma let me try the pkgconfig, and let me checkout niv :)
<nature>
pkgconfig worked! what does pkgconfig do ?
<jtacoma>
nature: pkgconfig put 'pkg-config' on $PATH, and `pkg-config --libs $LIB` or `pkg-config --cflags $LIB` can tell any build system what flags to pass to a linker or compiler (respectively) to use $LIB
<nature>
Perfect thank you so much!
<jtacoma>
glad i could help :)
h4ck3rm4n has joined #nixos
<nature>
And I just checked niv, it seems more an npm like tool for nix dependencies no ? I am not sure it's compatible with flakes nor what I was thinking about but thanks for the suggestion, I didn't know about niv
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 2 commits to master: https://git.io/JLyI2
erictapen has quit [Ping timeout: 246 seconds]
<jtacoma>
i've been trying to build a flutter app through a nix derivation. i've managed to update flutter in a local fork of the flutter & dart packages, so `nix-shell --pure --run 'flutter doctor'` works well enough and `nix-shell --run 'flutter build $TARGET'` also works (without --pure).
kalbasit has quit [Ping timeout: 256 seconds]
<jtacoma>
i think i'm in the home stretch, just got to figure out how to package the fonts, gradle wrapper, sky_engine, tools and sdks so that it doesn't need to try to download them at build time.
fcortesi has joined #nixos
erictapen has joined #nixos
<fcortesi>
Hello. I'm following the flakes tutorial on nixos wiki but can't get the ustable overlay to work. Can I ask where should I put the code described in the section "Importing packages from multiple channels"?
<{^_^}>
[nixpkgs] @ttuegel pushed 10 commits to staging-20.09: https://git.io/JLyLN
zakame has joined #nixos
orivej has quit [Ping timeout: 260 seconds]
sangoma has quit [Ping timeout: 256 seconds]
cognemo has quit [Quit: cognemo]
cognemo has joined #nixos
lifestronaut has quit [Quit: Leaving]
<fcortesi>
Thanks nature. I'm not shure how, I have been trying in many ways without result. I understand the basics of nix expressions but I'm not shure what's going on here.
<fcortesi>
Where `pkgs.unstable.package` should be placed?
orivej has joined #nixos
<nature>
So from my understanding `pkgs.unstable.package` is simply the reference to the package you want from the unstable overlay, otherwise you would access it with `pkgs.package`
<nature>
and if `unstable` here is your overlay, at some point you would need to do `nixpkgs.overlays = [ unstable ];`
mcbits[m] has joined #nixos
<nature>
I can't help much more as I've never done this actually, just giving you my understanding of the doc
<fcortesi>
Ok, thank you. I'll try the last one.
<nature>
Also quick advice, share pastbins instead of copying code that will span over multiple lines ;)
Heavy_Mettle has joined #nixos
<fcortesi>
Ok, thanks.
erictapen has quit [Quit: leaving]
erictapen has joined #nixos
carthia has joined #nixos
davidv7 has joined #nixos
zakame has quit [Ping timeout: 272 seconds]
<{^_^}>
[nixpkgs] @fabaff opened pull request #107752 → terrascan: init at 1.2.0 → https://git.io/JLyqJ
<buffet>
Hey, I'm getting problem with the SSL CA cert with multiple tools (git, cargo) in a certain nix shell. Any ideas?
gustavderdrache has joined #nixos
<jul1u5>
Hi, I want to set up GCC Emacs with emacs-overlay. The problem is that Nix builds Emacs from source even though I have configured nix-community binary cache. Is there a way I can find the latest binary cache for GCC Emacs uploaded to nix-community Cachix instance?
<aterius>
Are you installing from the nixos-unstable channel?
<aterius>
Also there is #nixos-emacs you might be interested in
<aterius>
jul1u5: ^
gxt has joined #nixos
<jul1u5>
asterius: I am on 20.09. I will look into #nixos-emacs, thanks.
leotaku has quit [Read error: Connection reset by peer]
leotaku has joined #nixos
<aterius>
jul1u5: You need to install the emacs-overlay from the nixos-unstable channel or you won't hit the binary cache
riksteri has quit [Quit: riksteri]
<{^_^}>
[nixpkgs] @r-burns closed pull request #105395 → ion: fix build on darwin → https://git.io/JkpPM
<carthia>
from the manual: Currently, NixOS containers are not perfectly isolated from the host system. This means that a user with root access to the container can do things that affect the host.
<carthia>
what exactly could such a user do? Just modify the nix-store or more?
<jul1u5>
aterius: Oh, but I am still unable to hit the cache. I am using Flakes, so would this work `inputs.emacs-overlay.inputs.nixpkgs.follows = "nixpkgs-unstable";`? nixpkgs-unstable is declared like so: `inputs.nixpkgs-unstable.url = "nixpkgs/nixos-unstable";`.
<Siyo>
is it expected behavior that custom firewall rules set with `networking.firewall.extraCommands` aren't cleared when `firewall.service` is restarted?
zakame has quit [Ping timeout: 246 seconds]
<Siyo>
ah, I should probably use the correct chain
<nf>
you might have to use extraStopCommands
<{^_^}>
[mobile-nixos] @samueldr opened pull request #262 → stage-0: Add ability to boot in generation kernel+initrd → https://git.io/JLyOF
davidv7 has quit [Remote host closed the connection]
<leo60228>
my project to build a firmware to use a pi zero as a custom usb dongle using nix can now generate a ~2M firmware that creates a (currently useless) USB ethernet adapter in ~5s: https://github.com/leo60228/nix-rpiboot
<leo60228>
(the result of building that is a folder that can be passed to `rpiboot -d`)
nicoo has quit [Remote host closed the connection]
<{^_^}>
[mobile-nixos] @samueldr merged pull request #261 → razer-cheryl2: Workaround made more descriptive → https://git.io/JLyOZ
<{^_^}>
[mobile-nixos] @samueldr pushed 2 commits to master: https://git.io/JLysu
zakame_ has quit [Ping timeout: 265 seconds]
nicoo has joined #nixos
<asbachb>
I wonder if this service should be loaded since it's in example package? /nix/store/n572k0545dyc18vbzczqbrhh7h7rn4x1-systemd-247.2/example/systemd/system/systemd-udev-trigger.service ?
<{^_^}>
[nixpkgs] @sternenseemann opened pull request #107766 → nixos/spacecookie: add extraConfig, openFirewall and package options → https://git.io/JLyZM
<clever>
veleiro: and what error does it print when you run nix-shell on that?
<nasirhm>
I would like to use avr-gcc, is it available in Nixpkgs
<veleiro>
it does the same build process as nix-build /nix/store/*-linux-headers-5.9.8.drv
<veleiro>
and fails
stu_[m] has joined #nixos
<stu_[m]>
How can I edit the system resource limits like the the maximum locked memory? Usually you would do that in /etc/security/limits.conf but that file doesn't exist and even if I link it using `environment.etc`, it doesn't set the llimit
_rvl has joined #nixos
wnklmnn has joined #nixos
_rvl has quit [Client Quit]
<clever>
99 security = {
<clever>
100 pam = {
<clever>
101 loginLimits = [
<clever>
stu_[m]: check this in the nixos docs
<stu_[m]>
ohh okay, thanks
<nasirhm>
<nasirhm "I would like to use avr-gcc, is "> for NixOS*
<clever>
nasirhm: check the default.nix in github.com/cleverca22/thermostat_firmware
red[evilred] has joined #nixos
<red[evilred]>
nasirhm: can I give you some advice?
<red[evilred]>
Sec, switching computers
<nasirhm>
<red[evilred] "nasirhm: can I give you some adv"> Sure, what is it ?
<nasirhm>
<clever "nasirhm: check the default.nix i"> Ah, using a past version of Nixpkgs, sounds cool :D
<red[evilred]>
that's how qmk sets up its compile enmvironment
<red[evilred]>
so, to get it to compile you just clone the repo, cd qmk_firmware, nix-shell, make
<red[evilred]>
and it all just works - all the dependencies - everything
<red[evilred]>
I found it a great example / foundation for building avr projects
<nasirhm>
Thank you for sharing it, It looks interesting, I'm actually trying to work on some Embedded rust, everything seems to be good in my `shell.nix` except for the avr-gcc to compile C :D