<nextos>
hi, nixos beginner (but I've already contributed a few packages). There's a horrible piece of software I only want to use once, and it would require too much patching to build. How can I build it as in other distros? Using FHS? Or perhaps inside a systemd-nspawn with a regular distro?
<tilpner>
nextos - nix-shell, steam-run, docker
<tilpner>
(vm)
mizu_no__ has quit [Quit: Computer has gone to sleep.]
<tilpner>
Oh, and if you're really desperate... fsc-run c.c
<clever>
jack[m]: the biggest benefit of that method, is that you can audit your expressions, by confirming they build with NIX_PATH unset, then you know that you dont care what the value is in the future
KingOfThePirates has quit [Ping timeout: 260 seconds]
KingOfThePirates has joined #nixos
<petersjt014[m]>
has anybody gotten the nix Intellij plugin working?
<KingOfThePirates>
How do you spell your name again?
coot__ has quit [Remote host closed the connection]
<jack[m]>
clever; thanks!
<petersjt014[m]>
I'm looking to test it out and I'm not sure it's doing anything
coot has joined #nixos
<nextos>
how can i avoid hardening in manual calls to gcc inside a nix-shell? I.e. disabling the CFLAG -Werror=format-security?
<clever>
nextos: one min
erasmas has quit [Quit: leaving]
<KingOfThePirates>
Bump
<clever>
nextos: disableHardening has to be set to a special string
<clever>
github search is being derpy and finding all but the most important reference to it
fyuuri has quit [Ping timeout: 240 seconds]
<nextos>
ok
<clever>
nextos: oh, because its called hardeningDisable, lol
<ldlework>
collision between ‘/nix/store/7l2s98i180w8mp4srpsgnc241qmladry-aspell-dict-en-2016.06.26-0/lib/aspell/american-variant_0.alias’ and ‘/nix/store/4qjsid0j7ic0cvwkw6dfznzlswsryjl5-home-manager-path/lib/aspell/american-variant_0.alias’; use ‘nix-env --set-flag priority NUMBER PKGNAME’ to change the priority of one of the conflicting packages
<ldlework>
I think I have manually installed an aspell package with nix-env and installed one with home-manager, and now home-manager refuses to build
<acowley>
South-West NJ; Marlton is the name of the town.
<johnw>
ah
<johnw>
I once lived in Caldwell, upper-middle
xcmw has joined #nixos
andersk has quit [Remote host closed the connection]
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
andersk has joined #nixos
xcmw has joined #nixos
digitalmentat has quit [Ping timeout: 246 seconds]
mizu_no_oto has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] pjan opened pull request #34405: Adds modifier option to developPackage (master...developPackage-modifier) https://git.io/vN9Rm
NixOS_GitHub has left #nixos [#nixos]
<dhess>
Currently I have a .travis.yml in most of my projects, which is hooked into Travis-CI via GitHub for automatic builds.
<dhess>
But given how slow those are relative to my Hydra builds, I'd like to set up the Hydra so that only after a build is successful does it kick off a Travis build. Anyone doing something like that?
spacefrogg has quit [Remote host closed the connection]
aw has quit [Remote host closed the connection]
aw has joined #nixos
<dhess>
These are Haskell projects. I would just drop the Travis stuff, but it's still useful for testing with vanilla Cabal and Stack.
spacefrogg has joined #nixos
slyfox has quit [Ping timeout: 256 seconds]
slyfox has joined #nixos
srdqty has quit [Ping timeout: 260 seconds]
magnetophon has quit [Ping timeout: 260 seconds]
magnetop` has joined #nixos
srdqty has joined #nixos
nuncanada has quit [Ping timeout: 268 seconds]
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
srdqty has quit [Ping timeout: 248 seconds]
leat has quit [Ping timeout: 268 seconds]
srdqty has joined #nixos
nuncanada has joined #nixos
spear2 has joined #nixos
leat has joined #nixos
magnetop` has quit [Ping timeout: 240 seconds]
mizu_no_oto has quit [Quit: Computer has gone to sleep.]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] jonafato opened pull request #34406: gnome-shell-extension-clipboard-indicator: init at v30 (master...gnome-shell-extension-clipboard-indicator-v30) https://git.io/vN9EN
NixOS_GitHub has left #nixos [#nixos]
srdqty has quit [Quit: WeeChat 1.9.1]
marusich has joined #nixos
Fannar has joined #nixos
hamishmack has quit [Quit: hamishmack]
hamishmack has joined #nixos
hamishmack has quit [Client Quit]
orivej has quit [Ping timeout: 256 seconds]
ericsagnes has joined #nixos
schoppenhauer has quit [Ping timeout: 252 seconds]
schoppenhauer has joined #nixos
bfrog has joined #nixos
Fannar has quit [Ping timeout: 240 seconds]
bfrog has quit [Ping timeout: 240 seconds]
lopsided98 has quit [Ping timeout: 246 seconds]
lopsided98 has joined #nixos
ericsagnes has quit [Ping timeout: 240 seconds]
hamishmack has joined #nixos
raynold has joined #nixos
babyflakes has quit [Quit: Connection closed for inactivity]
stephenjudkins has quit [Remote host closed the connection]
stephenjudkins has joined #nixos
srdqty has joined #nixos
srdqty has quit [Client Quit]
<adisbladis>
throwboy: I guess the best way right now is to use nixUnstable
<adisbladis>
Which has "nix search"
stephenjudkins has quit [Remote host closed the connection]
stephenjudkins has joined #nixos
stephenjudkins has quit [Remote host closed the connection]
kitemikaze has joined #nixos
stephenjudkins has joined #nixos
<srhb>
throwboy: I like to grep through the package set. And there's also nix index, or what it's called.
rauno has quit [Ping timeout: 240 seconds]
nz has quit [Ping timeout: 265 seconds]
reinzelmann has joined #nixos
nz has joined #nixos
<throwboy>
adisbladis oh this exists? I did not know about that, thank you
jeaye has quit [Quit: WeeChat 1.9.1]
jeaye has joined #nixos
Arcaelyx has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rauno has joined #nixos
<fearlessKim[m]>
throwboy or "nox <PKG_NAME>"
aanderse has quit [Ping timeout: 240 seconds]
<fearlessKim[m]>
well PKG_NAME is more like PART_OF_THE_NAME
hyper_ch2 has joined #nixos
<fearlessKim[m]>
how can I prevent nox from picking up my user overlays ? or nix-index ? it ends up triggering all sorts for error as nox for instance mix my overlay with nixpkgs stable while I write them for unstable.
asuryawanshi has joined #nixos
goibhniu has joined #nixos
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<sphalerite>
fearlessKim: maybe make the overlay conditional on the nixpkgs version?
<fearlessKim[m]>
Linus: I would rather completely disable it for some operations. 1/ I use it as a scratch nixpkgs, it's badly written, relies on local sources etc. and when I run $ nox-review, it's impure. I want to run nox against nixpkgs only, to check that I don't submit errors (which could be hidden by my overlay).
<sphalerite>
fearlessKim: in that case I'd probably go with only using explicitly when you need it. Something like nix-env -f '<nixpkgs>' --arg overlays '[ ~/hacky-overlay.nix ]' -iA hackyoverlaystuff
Neo-- has joined #nixos
<fearlessKim[m]>
I tried `$ export NIXPKGS_OVERLAYS="" nox-review` but it didn't seem to succeed
<fearlessKim[m]>
Linus: I need it more than I don't need it so I would favor disabling over enabling. Thanks for the suggestion though.
Itkovian has joined #nixos
freeman42x[NixOS has joined #nixos
rardiol1 has joined #nixos
asuryawanshi has quit [Remote host closed the connection]
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
throwboy has quit [Remote host closed the connection]
zzamboni has joined #nixos
Tucky has joined #nixos
Myrl-saki has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] steveeJ opened pull request #34409: qemu-vm: fix script syntax and VM args (master...steveej-qemu-vm-fixes) https://git.io/vN9K4
NixOS_GitHub has left #nixos [#nixos]
<fearlessKim[m]>
Linus: trying `nix-shell -p nox --arg overlays '[]'` Hope that works :)
<sphalerite>
I doubt it
<sphalerite>
I think your best bet is to patch nox
<sphalerite>
to change the nix command it uses
<sphalerite>
shouldn't be too hard
asuryawanshi has joined #nixos
<rauno>
Has anyone experience using network disk in nixos filesystem mount ?
<rauno>
when mounting with regular mount cmd, it works but when i define it in configuration.nix is fails
<adisbladis>
rauno: Hmm.. That should probably be a new fsType :)
<sphalerite>
adisbladis: I don't think so since it's a block device that has a regular partition on it
zzamboni has joined #nixos
<adisbladis>
sphalerite: Ahh check.
<sphalerite>
s/partition/filesystem/
ottidmes has joined #nixos
ThatDocsLady has joined #nixos
zzamboni has quit [Ping timeout: 248 seconds]
zzamboni has joined #nixos
babyflakes has joined #nixos
aarvar has quit [Ping timeout: 256 seconds]
zzamboni has quit [Ping timeout: 248 seconds]
dbe_ has joined #nixos
<steveeJ>
I'm trying to use fetchgit to clone a local repository and use a specific branch but fetchgit doesn't recognize the git repo as such. does it only support bare repos?
rogue_koder has quit [Quit: Konversation terminated!]
ssmike has quit [Remote host closed the connection]
<rauno>
added alias wand wantedby multi-user.target seemed to do the trick
hotfuzz has joined #nixos
sigmundv_ has joined #nixos
hotfuzz_ has quit [Ping timeout: 248 seconds]
MP2E has quit [Remote host closed the connection]
fyuuri has joined #nixos
astsmtl- has joined #nixos
astsmtl has quit [Read error: Connection reset by peer]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh pushed 1 new commit to master: https://git.io/vN9Xq
<NixOS_GitHub>
nixpkgs/master 6c744fc Stefan Frijters: pyprof2calltree: init at 1.4.3 (#34379)
NixOS_GitHub has left #nixos [#nixos]
Itkovian has joined #nixos
binh_ has quit [Remote host closed the connection]
binh_ has joined #nixos
ssmike has joined #nixos
Itkovian_ has joined #nixos
ericsagnes has joined #nixos
ckauhaus has joined #nixos
Itkovian has quit [Ping timeout: 256 seconds]
<steveeJ>
I have hardcoded hydra as a cache in my configuration.nix and have installed nixUnstable. now I'm stuck with 'error: 'https://hydra.nixos.org' does not appear to be a binary cache' :-D
lonokhov has quit [Remote host closed the connection]
<LnL>
hydra has not had a cache since years
<steveeJ>
my config might be a couple years old
pie___ has quit [Ping timeout: 256 seconds]
lonokhov has joined #nixos
asuryawanshi has quit [Remote host closed the connection]
<ij>
Why would ruby gems contain references to gcc?
aanderse has joined #nixos
<Biappi>
ij: knowing nothing of ruby, but something of other similar runtimes, you might have ruby libraries that wrap c libraries
<Biappi>
one example that coems to mind, UI libraries
<ij>
Uhm, not in the nix code, but in the final compiled files.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 closed pull request #34381: nixos/less configure less with module (master...less) https://git.io/vNyyp
NixOS_GitHub has left #nixos [#nixos]
<ij>
Yeah, compilation does happen, in nokogiri that's for xml, for example.
<ertes-w>
i'm currently building docker containers via nix (using dockerTools.buildImage), but some of them get quite massive, and i understand that right now reducing closure sizes is unrealistic… is there a way to build images that don't contain any files from the store? the idea is to just bind-mount the host's store
binh_ has quit [Ping timeout: 256 seconds]
<ij>
ertes-w: Just curious, what do you have in the container and how big is it? This ruby container that I made's around 500M.
<ij>
gcc's included. /o/ yay
<ertes-w>
ij: i have the sensu-client in there and lots of additional software for the actual checks
<ertes-w>
the container is at 1.3 GiB right now, and i expect it to grow further
<ertes-w>
which means that the painful iteration times are only going to get worse
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vN97b
<ij>
I don't think you can omit copying the store (that you want to save on by mounting it from the system) with the nixpkgs as it is. You'll have to write code to do it then.
<ij>
Code's in pkgs/build-support/docker/default.nix above and below 477, as you might've found already.
<ij>
Then you'll also have to figure out how to manage the nix store that you want to mount, that sounds like a big hassle still.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dezgeg force-pushed unstable-aarch64 from 7f7f4f2 to c361a8b: https://git.io/vSSlm
<NixOS_GitHub>
nixpkgs/unstable-aarch64 d9ef70c Tuomas Tynkkynen: nixos/qemu: Deduplicate QEMU serialDevice into qemu-flags.nix
<NixOS_GitHub>
nixpkgs/unstable-aarch64 b2d4eb7 Tuomas Tynkkynen: nixos/tests: Drop unnecessary qemu-flags.nix include...
<NixOS_GitHub>
nixpkgs/unstable-aarch64 2225f43 Tuomas Tynkkynen: nixos/qemu-flags: Take a 'pkgs' parameter...
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dezgeg pushed 1 new commit to master: https://git.io/vN9dq
<NixOS_GitHub>
nixpkgs/master ab5357b Tuomas Tynkkynen: eternal-terminal: init at 4.1.2
NixOS_GitHub has left #nixos [#nixos]
ssmike has quit [Remote host closed the connection]
ssmike has joined #nixos
KingOfThePirates has joined #nixos
dbe_ has quit [Ping timeout: 240 seconds]
a6a3uh has quit [Quit: Bye]
<KingOfThePirates>
how might one register their freenode webchat name so it's not temporary each time?
<vegai>
KingOfThePirates: /msg nickserv help
<KingOfThePirates>
vegai: ty
KingOfThePirates has quit [Client Quit]
<vegai>
I don't know if that .... applies to .... oh
pirateking has joined #nixos
<vegai>
yeah so I don't know if the freenode webchat works differently
<vegai>
but I guess it shouldn't
Guest73602 has quit [Changing host]
Guest73602 has joined #nixos
Guest73602 is now known as TweyII
<TweyII>
vegai: NickServ is just a bot running on the Freenode server, your client is irrelevant
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dezgeg pushed 1 new commit to master: https://git.io/vN9Ft
<NixOS_GitHub>
nixpkgs/master af38f1a Tuomas Tynkkynen: seturgent: Move out from linuxPackages_*...
NixOS_GitHub has left #nixos [#nixos]
<vegai>
TweyII: yeah...
<TweyII>
But I doubt the webchat will log you in automatically
fyuuri has joined #nixos
<pirateking>
pirateking is already registered!? how dare they
<pirateking>
can i rename without relogging? I'm not seeing it in the list of commands. maybe ghost but that doesn't sound familiar
<TweyII>
pirateking: /nick <nickname>
<pirateking>
TweyII: ty
<TweyII>
pirateking: Choosing your nickname is up to your client, NickServ just enforces which ones you're allowed
<pirateking>
yeah but i want it to be official
<TweyII>
ghost forcibly boots someone (usually an old connection of yours, hence the name) off a nickname you own
<TweyII>
pirateking: Right, but I mean that's why you set your nickname with a client command rather than by talking to NickServ
<pirateking>
oh. then how might i do a client command?
<TweyII>
pirateking: /nick <nickname>
simukis has joined #nixos
<LnL>
everything starting with a / is a command :)
<TweyII>
(usually; it depends on the client, but that syntax is conventional)
pirateking is now known as rogerg
steshaw has joined #nixos
ssmike has quit [Remote host closed the connection]
ssmike has joined #nixos
vidbina has joined #nixos
<rogerg>
perfect thanks guys
<domenkozar>
huh
<domenkozar>
no audio on my headphones since last nixos 17.09 bump
<domenkozar>
please send help
knupfer has joined #nixos
<aminechikhaoui>
:D
<aminechikhaoui>
just revert ?
<Yaniel>
pulse/plasma occasionally forgets my audio output assignments, maybe that happened to you too?
freeman42x[NixOS has joined #nixos
<etu>
If you use pulseaudio, try checking pavucontrol which card it uses
<rogerg>
i know system.autoUpgrade.enable = true; keeps the packages up to date.. but does anyone know how to keep the programs inside the packages up to date? i find many of the time the package has a lower version than the latest stable. i.e. rustup, or firefox
<domenkozar>
etu: hmm where does it show the card?
<adamt>
Hiya. Did anybody make some sort of integration from Hydra to Slack, e.g. for posting when builds fail? My Google-foo fails me (too many projects named hydra..).
<etu>
domenkozar: output devices and configuration is relevant tabs for which cards you have (for playback) and then under playback you can choose what program uses which card
<adisbladis>
domenkozar: You can also do it from the command line using pacmd:
<adisbladis>
"$ pacmd list-sink-inputs" to list all current streams
<adisbladis>
"$ pacmd list-cards" to list all cards
<adisbladis>
And then to move to the correct card: "$ pacmd move-sink-input 154 alsa_output.pci-0000_00_1f.3.analog-stereo"
<adisbladis>
Yaniel: Actually plasma has a nice gui to manage pulseaudio :) It's just a bit hidden
lopsided98 has quit [Read error: Connection reset by peer]
<sphalerite>
adisbladis: Is it the one in the sound settings?
<sphalerite>
Because I always find myself using pavucontrol anyway because that one's so hard to get to, and iirc not as nice to use iether
<adisbladis>
sphalerite: The volume control. You can take an application in the volume control widget and drop it on the desired device
<sphalerite>
oh huh
<sphalerite>
discoverability A++
<etu>
wow
<etu>
amazing
lopsided98 has joined #nixos
<adisbladis>
Hard to find but when you know it its pretty nice :)
Itkovian_ has joined #nixos
Itkovian has quit [Ping timeout: 240 seconds]
<Yaniel>
adisbladis: yes, that's what I'm using
<etu>
That sounds as discoverable as dropping your CD-Icon in the bin to eject it </joke>
<Yaniel>
at least said icon changes into an eject icon when you start dragging a cd or other image
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vanzef opened pull request #34416: ibus-kkc engine support (master...kkc) https://git.io/vN9hG
NixOS_GitHub has left #nixos [#nixos]
pie___ has joined #nixos
orbekk has joined #nixos
peacememories has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
asuryawanshi has quit [Ping timeout: 240 seconds]
peacememories has joined #nixos
fyuuri has quit [Ping timeout: 260 seconds]
xcmw has joined #nixos
peacememories has quit [Client Quit]
Mateon3 has joined #nixos
Mateon1 has quit [Ping timeout: 248 seconds]
Mateon3 is now known as Mateon1
rogerg has joined #nixos
rogerg has quit [Client Quit]
ssmike has quit [Remote host closed the connection]
ssmike has joined #nixos
orivej has joined #nixos
civodul has joined #nixos
zzamboni has quit [Quit: Leaving.]
thblt has joined #nixos
zzamboni has joined #nixos
pie___ is now known as pie_
johnw has quit [Ping timeout: 240 seconds]
<goibhniu>
etu: lol
vidbina has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dywedir opened pull request #34417: dunst: 1.3.0 -> 1.3.1 (master...dunst) https://git.io/vNHv3
NixOS_GitHub has left #nixos [#nixos]
oida has joined #nixos
vidbina_ has quit [Remote host closed the connection]
Rusty1 has joined #nixos
ssmike has quit [Remote host closed the connection]
a6a3uh has quit [Quit: Bye]
pkill9 has joined #nixos
a6a3uh has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] jyp opened pull request #34418: Tensorflow: revert to wheel-based build and update to 1.5.0 (master...tensorflow-1.5) https://git.io/vNHfk
NixOS_GitHub has left #nixos [#nixos]
ssmike has joined #nixos
asuryawanshi has joined #nixos
hyper_ch2_ has joined #nixos
<ij>
What was that annoying little file I had to touch in order to get nix-repl history working
<ij>
?
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hyper_ch2_ has quit [Ping timeout: 260 seconds]
hyper_ch2 has quit [Ping timeout: 260 seconds]
xcmw has joined #nixos
iyzsong has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
nixpkgs/master 89d66b8 Gabriel Ebner: pythonPackages.xdot: 0.7 -> 0.9
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
[nixpkgs] gebner pushed 1 new commit to master: https://git.io/vNHU3
a6a3uh has quit [Quit: Bye]
<TweyII>
ij: ~/.nix-repl-history?
<ij>
I thought so, but it still doesn't work. Does that make it work in your end?
a6a3uh has joined #nixos
FRidh has joined #nixos
vidbina has quit [Quit: Lost terminal]
vidbina has joined #nixos
alexteves_ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] zimbatm pushed 1 new commit to master: https://git.io/vNHTx
<NixOS_GitHub>
nix/master f93e890 Ben Gamari: configure: Use $CPP instead of cpp directly...
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nix] shlevy closed pull request #1824: configure: Use $CPP instead of cpp directly (master...patch-2) https://git.io/vNDFu
NixOS_GitHub has left #nixos [#nixos]
reinzelmann has quit [Quit: Leaving]
<sudoreboot[m]>
Anyone using Plasma 5 and/or Nvidia drivers and have trouble with severe frame drops?
infinisil has quit [Client Quit]
<Yaniel>
I do see occasional freezes but that goes beyond what I would call frame drops
ssmike has joined #nixos
infinisil has joined #nixos
<sudoreboot[m]>
Recently I can't really play games and if I am watching even just simple videos my FPS drop significantly. In 3D applications it actually drops below 15 most of the time
<sudoreboot[m]>
I tried both unstable and 17.09
<Yaniel>
oh, framerate drops
<Yaniel>
haven't really noticed
ssmike has quit [Remote host closed the connection]
magnetop` has joined #nixos
ssmike has joined #nixos
ryanartecona has joined #nixos
magnetop` is now known as magnetophon
<thblt>
Hi! I've just upgraded to Firefox 58 (using the Mozilla overlay) and the UI font (Roboto Condensed, for GTK2 and 3) has been replaced with some monospace font. No other application have this issue (but maybe Firefox is my only GTK2 app?).
<thblt>
I've installed pcmanx-gtk2 (the only other GTK2 app I could find, and it displays perfectly)
<schoppenhauer>
hi. is anyone using cryptocat on nixos?
xcmw has quit [Ping timeout: 265 seconds]
xcmw has joined #nixos
<Leo`>
I have derivations that stick around in the nix-store after a GC while I thought they should be deleted, is there a way to trace a derivation back to its root?
<LnL>
nix-store -q --roots <path>
<Leo`>
Cool.
<Leo`>
Thanks.
<Leo`>
/run/booted_system
<Leo`>
u___u
<Leo`>
-*
TweyII has quit [Ping timeout: 248 seconds]
<tokudan[m]>
is someone working on the security update firefox 58.0.1?
MercurialAlchemi has quit [Ping timeout: 256 seconds]
kreisys has quit [Read error: Connection reset by peer]
erasmas has joined #nixos
swayf_ has quit [Remote host closed the connection]
swayf_ has joined #nixos
swayf_ has quit [Remote host closed the connection]
<niksnut>
thblt: I had a similar problem caused by the existence of ~/.gtkrc-2.0
<thblt>
niksnut: thanks, but removing this file doesn't seem to change anything.
<thblt>
or maybe
<thblt>
There's an improvement. ~/.config/gtk-3.0/settings.ini seems to have an effect on Firefox font.
<thblt>
OK, so Firefox is now using GTK3, and here lies the issue. Yet, it's still not a GTK issue, Emacs is perfectly happy with using Roboto Condensed.
vidbina has quit [Ping timeout: 240 seconds]
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<__monty__>
Is there a way to make an equivalent of a package-git in nixpkgs? I was pointed at overlays yesterday but realized today that they don't actually solve my problem.
<wacke>
has someone any hints how to configure postfix/rspamd/dovecot/sieve? postfix is working, rspamd also, dovecot is working, sieve is not working
<fpletz>
and in dovecot: unix_listener /run/dovecot2/lmtp-postfix { /* user and group stuff */ }
<wacke>
hmmmm
* fpletz
should PR lots of his mail stuff to nixos-mailserver soon \o/
<wacke>
hmm, ok, i see, my postfix delivers the mails via local(8) instead of dovecot-lmtp, any idea what can be wrong?
<fearlessKim[m]>
seems like there is nix-stuff for the server aspect but I would like to see some config generator for the client stuff, like alot/astroid/offlineimap/notmuch. The config are often similar yet I have to reinput my ids for every program. Boring.
<__monty__>
If you install a package with an optional dependency this way, will nix-env -u do the right thing?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dezgeg pushed 5 new commits to master: https://git.io/vNHgP
<NixOS_GitHub>
nixpkgs/master 8e83158 Tuomas Tynkkynen: nixos/qemu: Deduplicate QEMU serialDevice into qemu-flags.nix
<NixOS_GitHub>
nixpkgs/master 3be9d46 Tuomas Tynkkynen: nixos/tests: Drop unnecessary qemu-flags.nix include...
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/master 1ce1380 Tuomas Tynkkynen: nixos/qemu-flags: Take a 'pkgs' parameter...
vidbina has quit [Remote host closed the connection]
<LnL>
depends how you override it
<TweyII>
__monty__: nix-env -u installs from all-packages.nix, which is where (combined with any config.nix overrides you may have) arguments get passed
<TweyII>
__monty__: So nix-env has no say in what happens here, conventionally (you *could* have something in all-packages.nix that takes an argument and then use --arg with nix-env, but nobody does that AFAIK)
raynold has joined #nixos
<__monty__>
TweyII: Even with -iA?
<LnL>
yes, if you don't remove your config/overlay it gets applied to all user operations
digitalmentat has quit [Quit: Leaving]
<LnL>
even if the package is not installed, you just won't notice it in that case :)
<__monty__>
So the only way to deviate from the default flag values is an overlay/override?
Arcaelyx has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hotfuzz_ has joined #nixos
duckwho has joined #nixos
duckwho has quit [Client Quit]
<__monty__>
file is an optional dependency and less is used as a fallback.
hotfuzz has quit [Ping timeout: 265 seconds]
digitus has joined #nixos
duckwho has joined #nixos
<TweyII>
__monty__: I'm guessing because less is patched everywhere to refer to the Nix store path of less, but file is not — so it needs to be in path for the package to work
<TweyII>
Why file isn't also patched in, I don't know — maybe it was just harder to patch
xcmw has joined #nixos
<TweyII>
Probably there are more occurrences of ‘file’ in the codebase
<__monty__>
What's generally the prefered method? Patching or propagating?
stepcut has quit [Remote host closed the connection]
duckwho has quit [Client Quit]
<magnetophon>
I'm trying to build a pkg without optimisation, to work around a bug, so I put in 'NIX_CFLAGS_COMPILE = "";'. Is that correct? (still getting the bug, so I'm not sure.)
<TweyII>
__monty__: I'd say patching
stepcut has joined #nixos
<TweyII>
Propagating pollutes the build environment of any dependents
thblt` is now known as thblt
<__monty__>
What should upstream do to make patching as painless as possible?
lexwho has joined #nixos
<TweyII>
Ideally, patching shouldn't be required — there shouldn't be hardcoded paths to things in the source. If upstream makes the paths of programs configurable or looks them up at build time (though I'm not sure how advisible that is), we just have to flag them
<TweyII>
If there are paths in source it sure helps if they're only mentioned in one place in a variable or something
<lexwho>
excuse me, gentlemen, i'm making pkgs.buildFHSUserEnv ... with pkgs ... how can I tell in to install packages only prebuilt binaries? because they are compiling from source. is that even possible?
<TweyII>
Note that AFAIK NixOS adheres to the FHS, so anything that doesn't build on NixOS because it assumes the path of something is technically violating that standard
<__monty__>
TweyII: ranger uses a couple commands like 'echo', some fallbacks 'less' and 'vim' and has some optional deps like 'file'. I don't think any of the paths are hardcoded.
<TweyII>
__monty__: Sorry, by ‘hardcoded’ I included looking up the paths in PATH at runtime
stepcut has quit [Ping timeout: 240 seconds]
civodul has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
<TweyII>
‘echo’ is a shell builtin in bash
coot has joined #nixos
<__monty__>
TweyII: At some point ranger used /bin/echo but that's not important. Is there a way ranger can fallback to less and vim without requiring even default configuration?
<ij>
Can I use nix-build get a path to build's output only if it's been built already?
<symphorien>
I think -j0 does that
xcmw has quit [Ping timeout: 248 seconds]
<lexwho>
excuse me, gentlemen, i'm making pkgs.buildFHSUserEnv ... with pkgs ... how can I tell in to install packages only prebuilt binaries? because they are compiling from source. is that even possible?
Arcaelyx has joined #nixos
<symphorien>
If they compile from source this is usually that prebuilt ones are not available
aarvar has joined #nixos
<infinisil>
TweyII: NixOS certainly does *not* adhere to FHS? Or was that a typo?
<lexwho>
let me explain : I have lets say 'nix-index' package in my host system. it is installed from prebuild binary with nix-env -iAb "" and i'm happy. but when I add nix-index to my buildFHSUserEnv, it is building from source. how to avoid last, and force usage of binary?
<infinisil>
lexwho: it depends on the nix expressions used to build the FHS stuff, which could be completely different than the installed one
oida has joined #nixos
<simpson>
lexwho: There might not be a suitable binary. After all, binaries are only *cached* copies of builds that you would have done yourself.
<ij>
symphorien: It seems to be working. I tested with just «runCommand "x" {} "echo x > $out"» and it actually works. I'm amazed.
<TweyII>
infinisil: I believe it does
<TweyII>
infinisil: The FHS is quite minimal
<simpson>
TweyII: NixOS does *not* conform to FHS.
<gchristensen>
infinisil: I think it is probably contention in github's bot causing it to not be able to become the right nickname
<infinisil>
it should really just stay joined instead
randomstrangerb has quit [Ping timeout: 256 seconds]
<infinisil>
but i guess that requires a machine being connected constantly, which github probably doesn't want to do, but still
<gchristensen>
Irc accounts can only be in so many channels at once
randomstrangerb has joined #nixos
rihards has quit [Quit: rihards]
glenn_ has quit [Remote host closed the connection]
glenn_ has joined #nixos
<samueldr>
♥ nix, nixos and y'all devs, if you didn't know; again nix saves the day at work by making something hard much more trivial (sorry I can't be more specific)
<fpletz>
nix makes easy problems hard and hard problems easy :3
<gchristensen>
I prefer my easy problem to be hard than my hard problems to be ehard
glenn_ has quit [Ping timeout: 276 seconds]
FRidh has joined #nixos
stepcut has joined #nixos
<ottidmes>
Does it make sense security wise to try and use openssh in the initrd rather than dropbear? I would guess it could increase the attack vector (larger project, more configuration that could be misconfigured) or decrease it (dropbear might be susceptible to certain attacks openssh is not).
<fpletz>
ottidmes: I would also prefer openssh but it will probably make the initrd much bigger, but that doesn't matter on a server
<fpletz>
dropbear is ~500k and openssh is ~3M
<ottidmes>
fpletz: Right, that was what I was thinking as well, the space requirements is a non-issue for me
<Yaniel>
the smaller one makes more sense if you are going to audit it at least
<Yaniel>
since there is less to inspect
mkoenig has quit [Ping timeout: 268 seconds]
ryanartecona has joined #nixos
ma27 has joined #nixos
ssmike has quit [Remote host closed the connection]
ssmike has joined #nixos
mkoenig has joined #nixos
glenn_ has quit [Ping timeout: 252 seconds]
ma27 has quit [Client Quit]
stepcut has quit [Remote host closed the connection]
<infinisil>
Nooo, why is haskell-ide-engine marked as broken in master :(
stepcut has joined #nixos
tmaekawa has joined #nixos
stepcut_ has joined #nixos
periklis has quit [Ping timeout: 240 seconds]
stepcut has quit [Read error: Connection reset by peer]
<tmplt>
is it possible to override a package so that a command is run before starting the program within? This is for idea-community on bspwm, which I do `wmname LG3D` before starting.
marusich has joined #nixos
Czen has quit [Quit: Tumbling down]
<ottidmes>
I have already tried to replace dropbear with openssh, but I am not quite sure how to fix the privilage seperation error message. I did add the sshd user to /etc/passwd, but I probably missed some other stuff
<tmplt>
ottidmes: I do this currently, but since I only need to do this for Idea I figured I could Nix-ify it if possible
<infinisil>
simpson: you don't happen to be @peti on github?
<simpson>
infinisil: No?
glenn_ has quit [Remote host closed the connection]
<infinisil>
never mind then
glenn_ has joined #nixos
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rardiol1 has quit [Remote host closed the connection]
jb55 has quit [Read error: Connection reset by peer]
<ottidmes>
tmplt: I just put my bspwmrc in my NixOS configuration git repo, I do not really see the value in lifting it to the Nix language
rardiol1 has joined #nixos
vrederv has quit [Quit: leaving]
bfrog has joined #nixos
<FRidh>
funny, nix-instantiate and nix eval keep certain containers (lists, sets) as CODE, whereas integers and strings at similar location are represented properly
xcmw has joined #nixos
<infinisil>
FRidh: what else would you expect?
<contrapumpkin>
if you have integer literals and string literals and such they're not going to be thunks
stepcut_ has quit [Remote host closed the connection]
<FRidh>
I would each to be serialized to json
<contrapumpkin>
--strict
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
nixpkgs/staging e851d53 Vladimír Čunát: docbook-xsl-ns: "revert" after parent commit...
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
[nixpkgs] vcunat pushed 1 new commit to staging: https://git.io/vNHQs
<magnetophon>
When I build a pkg with NIX_CFLAGS_COMPILE = "-Ofoo"; it fails, as expected, but when I use NIX_CFLAGS_COMPILE = "-O0"; it still builds with -O3 What's going on?
<magnetophon>
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vcunat pushed 1 new commit to staging: https://git.io/vNHQ8
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/staging c9171e5 Vladimír Čunát: Merge branch 'master' into staging...
<FRidh>
contrapumpkin: thank you!
<FRidh>
I should have asked this before...ugh
<contrapumpkin>
:)
<hyper_ch>
hey Mic92, are you there?
ssmike has quit [Remote host closed the connection]
<symphorien>
magnetophon: that's due to hardening
<lexwho>
hello, so i'm trying to write code in NIX, i made file default.nix with contents : with builtins; [(elem 2 [1 2 3])] ; when i call nix-repl default.nix it compains: error: value is a list while a set was expected . how to fix?
nonethejewels has quit [Quit: Lost terminal]
ssmike has joined #nixos
<symphorien>
-DFORTIFYSOURCE requires -O2
<magnetophon>
symphorien: so how do I build without -O3 ?
knupfer has joined #nixos
<symphorien>
Can't remember exactly but something like disableHardening=all
vcunat has joined #nixos
<magnetophon>
symphorien: thanks!
<symphorien>
To do more fine grained things, best is to read the code of gcc-wrapper
<contrapumpkin>
lexwho: nix-repl doesn't want a file with a top-level list
<contrapumpkin>
why do you have a top-level list?
<contrapumpkin>
it normally treats its argument as the attrset to bring into scope within the repl session
<magnetophon>
symphorien: I have hardeningDisable = [ "all" ]; and NIX_CFLAGS_COMPILE = "-O0"; but I still get -O3... :/
<lexwho>
just want to write code in file , to print output for various expressions
<infinisil>
lexwho: you just open nix-repl (without arguments), then write `import default.nix` and press enter
<infinisil>
lexwho: you can also do (on the command line): `nix-instantiate --eval` which does what you wanted (eval's the file default.nix`
<infinisil>
which is equivalent to `nix-instantiate --eval default.nix`
ryanartecona has quit [Quit: ryanartecona]
ryanartecona has joined #nixos
swayf has quit [Remote host closed the connection]
swayf has joined #nixos
coot has quit [Quit: coot]
<lexwho>
sounds nice) when i open nix-repl and type import defaut.nix it says undefined variable. when nix-instantiate --eval default.nix , the output is [ <CODE> ]. like literrally, without result of evaluation
stepcut has joined #nixos
rauno has joined #nixos
<symphorien>
Maybe import ./default.nix
<tmplt>
I tried `services.xserver.displayManager.slim.theme = pkgs.slimThemes.flat;` instead of copying the `pkgs.fetchurl` call from `slim/themes.nix` in nixpkgs. This compiled but display-manager failed to start, unable to find `/nix/store/...-slim-theme/default/slim.theme`. Is this not supposed to work?
<lexwho>
well, that did a job! thanks!
<tmplt>
Copying the fetchurl call works, as per the example value, but since it passed through Nix I figured it would work.
swayf has quit [Ping timeout: 265 seconds]
jb55 has joined #nixos
<lexwho>
interesting notice : when i change code in default.nix and import it again, repl output last (probably cached) result and don't re-evaluate code changes. in order to re-evaluate code changes in default.nix, i had to restart nix-repl
rauno has quit [Ping timeout: 240 seconds]
coot has joined #nixos
<lexwho>
at least it works some how :)
swayf has joined #nixos
<srhb>
tmplt: I think it's just that the path is not what you expect. It appears to be in share/slim/themes/flat-testing
verite has joined #nixos
<tmplt>
srhb: Ah, I see
<tmplt>
Specifying that should probably work then
hiroshi has quit [Ping timeout: 240 seconds]
<srhb>
tmplt: Well, perhaps. It seems to make more assumptions about what the path actually is.
pSub has joined #nixos
pSub has quit [Changing host]
pSub has joined #nixos
winem_ has joined #nixos
<infinisil>
lexwho: ah right, sorry yeah, paths need to have a "/" in them to be paths, so ./default.nix instead of default.nix, and since default.nix is the default (duh), you can also use ./. instead of ./default.nix
stephenjudkins has joined #nixos
<srhb>
tmplt: Yeah, it calls unpackFile on the theme.
<infinisil>
lexwho: and yeah, my mistake, nix-instantiate --eval doesn't evaluate everything strictly, you need to use nix-instantiate --eval --strict for that
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<lejonet>
So now I've only got one question (I guess 2) why didn't it add a [Install] section even tho I've specified wantedBy and how do I create targets, I guess in a similar way as I did services but systemd.targets instead of systemd.services?
<__monty__>
srhb: Feel you on the modules.
<hodapp>
grr, synergy is running, and client can ping the server, but despite me adding 24800 to allowedTCPPorts, that port still has seemingly nothing running on it when I try to hit it from the client
<srhb>
__monty__: Maybe backpack to the rescue :-)
FareTower has quit [Ping timeout: 256 seconds]
<hodapp>
is there something else magical I must do to actually have synergy answer?
<tmplt>
I'm trying to use `physlock` as user but am unable. Are users to allowed to run it by default?
<__monty__>
srhb: I have a feeling it's more complex and less powerful though.
<lejonet>
infinisil: the whole mkMerge ( map nested ugliness? Yeah, I definitively could (and should!)
<srhb>
tmplt: Unable how? Is it a suid thing?
<srhb>
__monty__: That's my first feeling too, but I didn't look into it much.
<tmplt>
srhb: "physlock: Must be root!" is the only thing I get, and a 1 return value
<lejonet>
just wanted to ensure the function worked as intended for the actual service :)
<srhb>
hodapp: Does it listen on the address you expect?
<srhb>
hodapp: (Well, obviously not, but does it maybe listen on localhost?)
<srhb>
tmplt: Are you on NixOS? Maybe security.wrappers can help you
<hodapp>
srhb: hm, 'netstat' seems to suggest it's not listening at all
<tmplt>
srhb: I am; and I'll check that out
<srhb>
hodapp: Perhaps if you specify an address for it?
<srhb>
tmplt: For reference I'm using slock, which needs setuid root, so: security.wrappers.slock = { source = "{pkgs.slock.out}/bin/slock"; user = "root"; };
<srhb>
tmplt: I then get a /run/wrappers/bin/slock which has setuid root
<hodapp>
srhb: hm, I guess I'll try hard-coding an IP here
<srhb>
hodapp: Worth a try!
<infinisil>
tmplt: also running physlock daemon but not able to use it, i'll try messing around with it
<srhb>
hodapp: I don't know the service, so I'm just guessing
<hodapp>
hrmph, netstat still shows nothing listening on that port
<hodapp>
srhb: me neither, because it's not really documented much
<srhb>
infinisil: That would probably be quite acceptable :)
<infinisil>
srhb: which would be disabled by default, and have a description with info regarding security
* srhb
nods
tmaekawa has quit [Quit: tmaekawa]
* infinisil
thinks about PRing that
<tmplt>
infinisil: I'm putting my vote behind an explicit option, if it counts for anything
<ottidmes>
I have been using physlock for a while, without the user = "root"; bit, I do have the problem right now that I do not see any screens, but I can still unlock it with my password. I just thought that was because I was using kernel 4.4, I will see if user = "root" fixes this
magnetop` is now known as magnetophon`
<srhb>
hodapp: Errr.
<infinisil>
ottidmes: how do you invoke it?
magnetophon has quit [Ping timeout: 248 seconds]
<ottidmes>
infinisil: I believe I just use services.physlock.enable = true; and then it just works when I suspend or hibernate with systemctl
<hodapp>
maybe something like x2x will work.
<ottidmes>
But I do have security.wrappers.physlock.source = "${pkgs.physlock}/bin/physlock";
<infinisil>
ah well duh
<infinisil>
systemctl stuff works too for me since always
<infinisil>
just calling physlock without the security wrapper thing didn't work
duckwho has joined #nixos
ryanartecona has joined #nixos
MP2E has joined #nixos
<infinisil>
tmplt: wait, you don't get the "must be root" error anymore when running `physlock`? because i do, even with the security wrapper thing added
<srhb>
infinisil: which physlock?
<srhb>
infinisil: You need the one from /run/wrappers/bin specifically
<tmplt>
infinisil: I do not, no.
magnetophon` is now known as magnetophon
<ottidmes>
infinisil: did you include user = "root"?
<infinisil>
srhb: oh, hold on
<infinisil>
yeah that works srhb
<srhb>
Great :)
glenn_ has quit [Ping timeout: 252 seconds]
<srhb>
It might be confusing to have the original in systemPackages at the same time anyway. I don't recall the normal PATH order
<srhb>
(I *think* it should be first though)
<infinisil>
yeah that's what's bothering me
glenn_ has joined #nixos
<lejonet>
infinisil: Hmm, I now have a conundrum when refactoring, it works like a charm except for one daemon type that has need to know the id of itself in the extraServiceConfig, which I send in from outside the function
<lexwho>
guys, i'm in nix-repl, how i can explore whats inside stdenv package\module? internal functons like stdenv.something?
<tmplt>
srhb: wait, should /run/wrappers/bin be specified somewhere?
<srhb>
lexwho: Tab completion :)
alanz has joined #nixos
<srhb>
tmplt: I think it's on $PATH by default?
<infinisil>
srhb: tmplt: ottidmes: Oh I see, I had to relog
<lejonet>
infinisil: I'm thinking of maybe just adding a if then else statement in the function might work to have it to have all info, but was wondering if there maybe was a nifty way to do it otherwise?
a6a3uh has joined #nixos
<lexwho>
srhb not so simple, should i write "import stdenv" or "with stdenv" or what and how?
<srhb>
lexwho: Oh, you probably want to start the repl with nix-repl '<nixpkgs>'
qu3u3 has quit []
<srhb>
lexwho: Then, you can tab complete pkgs.stdenv.<TAB>
<srhb>
lexwho: Mind, stdenv is *probably* not what you want to explore if you're just learning the language. Perhaps builtins.<TAB> and lib.<TAB> are more useful.
<infinisil>
lejonet: what id are you talking about?
<lejonet>
infinisil: the one in the daemons list, the one that is given to the generateServiceFile function by the map function
<srhb>
lexwho: Did you try the interactive tutorial, by the way?
<lejonet>
I guess there isn't really a way to get delayed processing of a ${} in a string sent into a function? Logically it resolves all those when it calls the function (unless I maybe could escape the $ ?)
fragamus has joined #nixos
<lexwho>
srhb , which interactive tutorial you mean? plz share the link
<infinisil>
lejonet: maybe you just want to have that service more separate, since it's actually a bit more different
<infinisil>
lejonet: everything is delayed in nix, it's called laziness
<tmplt>
I'm trying out `nixos-rebuild build-vm` (great feature, by the by) but I can't get mouse input to work. qemu doens't even display one. Must it be enabled? Keyboard input works.
<lexwho>
srhb oh, I see it first time, looks great, I want to try it, thanks for sharing.
xcmw has joined #nixos
* lexwho
bookmarked
<srhb>
lexwho: :)
<infinisil>
lejonet: can you link to a commits specific line of where the id thing still works maybe? I'm still not sure what you mean
<lejonet>
infinisil: yeah I know that nix is lazy, But I was thinking of maybe if you could make it even lazier xD
<lejonet>
infinisil: sure, let me find it
<infinisil>
it's the laziest it can get, since it only evaluates stuff when it really needs it
<lejonet>
Well thats the thing tho, I was thinking that maybe I could escape the ${} that is sent into the first function, so that it doesn't get evaluated until its sent into the second function, where the ${daemon} actually is in scope, which it isn't in the first function call
coot has quit [Quit: coot]
<__monty__>
lejonet: Just wrap it in a function.
<srhb>
tmplt: Hmm, I'm not sure what might cause that. I have mouse in my build-vm
<lejonet>
__monty__: wrap what in a function? the string?
hiroshi has joined #nixos
<lejonet>
I guess I could make a generateExtraServiceConfig function that generates all that
<lejonet>
That might be the cleanest solution honestly
<__monty__>
lejonet: Yeah {var}: "something about ${var}"
civodul has joined #nixos
<infinisil>
lejonet: make sure to not abstract stuff that only gets used once
<infinisil>
abstraction is useless in such a scenario
<infinisil>
and makes the code just harder to read
<infinisil>
so maybe you should just separate that single service that's different from the others
<infinisil>
a bit more
<lejonet>
infinisil: well, this would technically just create a function that is an attr set, that returns a different attrset depending on value input, it would be used only in 1 place, but that function would be the generateDaemonList function, so it would be called 4 times at the most (and 0 times at the least)
<tmplt>
Another issue I'm trying to fix: should `programs.command-not-found.enable = true` create an /etc/zshrc? It does that for bash, and what it looks like in nixpkgs, it should for zsh.
srdqty has quit [Quit: WeeChat 1.9.1]
erictapen has quit [Remote host closed the connection]
erictapen has joined #nixos
<tmplt>
But it is absent, so the helper function is never sourced
<tmplt>
command_not_found_handle(), that is
<srhb>
tmplt: It does set programs.zsh.interactiveShellInit
<lejonet>
infinisil: you mean like creating a specific generateDaemonList for that service?
simendsjo has quit [Ping timeout: 240 seconds]
<srhb>
tmplt: iff programs.zsh.enable = true
<srhb>
tmplt: Maybe you don't have that? :)
ThatDocsLady has quit [Ping timeout: 248 seconds]
<tmplt>
srhb: that was the option I was missing, yes; thanks thrice-fold
<srhb>
I'm on a roll! \o/
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<lejonet>
it would be the easiest solution, but maybe not the most correct one
<lejonet>
Because that string needs the daemonId variable, that is in scope at that line
<lejonet>
Sure, its in scope at L13 too, but it seems like it would be messy to add it there
<lejonet>
(in L13 its called daemon instead)
vidbina has joined #nixos
nuncanada has quit [Ping timeout: 256 seconds]
<infinisil>
lejonet: it seems you've got a pretty good feel for the language now :)
<lejonet>
infinisil: My latent programming brain cells seem to start to wake up a bit atleast :P
<lejonet>
all 3 of em!
<infinisil>
heh
fragamus has joined #nixos
ckauhaus has quit [Quit: Leaving.]
ssmike has joined #nixos
<lejonet>
Jokes aside, I think it would be best to put it at L38 as an optionalAttrs (daemonType == "osd") { thingy }; Mainly due to the fact that its a ExecStartPre directive, so not just a "simple" key valuepair like more or less all the other serviceConfig stuff is
asuryawanshi has quit [Read error: Connection reset by peer]
<infinisil>
seems reasonnable
<lejonet>
That will also make the code at L278-281 cleaner, because it won't have a looooong string value that destroys the otherwise nice lineup
fragamus has quit [Ping timeout: 252 seconds]
* infinisil
is kinda tired and will therefore just nod in agreement to lejonet's future code refactorings
<lejonet>
haha, no worries ^^ I appreciate the input regardless, you can just yell at me in the PR if something goes horribly wrong
alex`` has quit [Remote host closed the connection]
Isorkin has joined #nixos
alex`` has joined #nixos
<lejonet>
Yay, its working as intended, now to create the appropriate targets too
<lejonet>
Still don't understand why no [Install] section is generated for the services :/
<lejonet>
But it seems to be a nixos/nix thing so probably all is nice and dandy
fragamus has joined #nixos
<lexwho>
will be happy to clarify few details, I understood structure: " { ar, gu, ments }: #\n and then body of function " , but what "..." and " {} " does mean in { ..., pkgs ? import <nixpkgs> {} }:
stepcut has quit [Remote host closed the connection]
jb55 has joined #nixos
digitus has quit [Quit: digitus]
aarvar has joined #nixos
acertain has joined #nixos
coot has joined #nixos
<lejonet>
lol, I think my most common commit message so far is something involving adding/removing ; xD
duckwho has quit [Ping timeout: 260 seconds]
duckwho has joined #nixos
kreetx has quit [Ping timeout: 268 seconds]
digitus has joined #nixos
<samueldr>
aren't most commit either adding, removing or a combination of both?
<lejonet>
I'm meaning that I have a whole bunch of commits that only add, move or remove semicolons in different places :P
vcunat has quit [Quit: Leaving.]
a6a3uh has quit [Quit: Bye]
<lejonet>
infinisil,srhb: now I've added the targets and tmpfiles, I would deem the module ready for testing now :D
<lejonet>
Because now it can successfully generate ceph.conf, all of the services for the different daemons, the different targets and adds the appropriate rule in tmpfiles.d
<infinisil>
lejonet: I actually have no need for ceph at all, so not sure if I'll be actually testing it
<infinisil>
well i can run it i guess, but that's about it
<lejonet>
infinisil: yeah, I know that, was more as a fyi/status update :)
hamishmack has joined #nixos
<lejonet>
But now its time for me to actually setup my cluster and ensure it works, now that I can conf it completely through a fancy nix expression :D
<infinisil>
\o/
asuryawanshi has quit [Remote host closed the connection]
asuryawanshi has joined #nixos
<infinisil>
Damn, is there no way to generate a random value in nix?
<lejonet>
Is going to be very interesting to see how the performance differs on baremetal as opposed to fully virtualised (I've done some labtests with all the daemons virtualised and such)
<infinisil>
I guess IFD would work, but meh
<lejonet>
infinisil: generate it the debian way?
<lejonet>
Aka set it to 4, as decided by a fair dice roll
<infinisil>
heh
<infinisil>
I guess a prng could work, with builtins.currentTime as a seed hmmmmmmmmmm
<infinisil>
interesting
<lejonet>
Whatcha need a random value for? Seeings as randomness is a wide topic I'm not surprised that nix doesn't really have a function for it
randomstrangerb has quit [Ping timeout: 248 seconds]
<infinisil>
lejonet: i thought about generating a random configuration.nix for testing or an example
<lejonet>
Interesting thought
randomstrangerb has joined #nixos
<infinisil>
currently looking for a simple prng
asuryawanshi has quit [Ping timeout: 264 seconds]
<lexwho>
https://0x0.st/sb_O.nix omfg, what have I done, I'm makin progress, wasn't beleived it is possible, but soon will be able to write better expressions
<lejonet>
fetching values from /dev/random or urandom isn't a possibility?
<lejonet>
lexwho: awesome domain name
ryanartecona has quit [Quit: ryanartecona]
<infinisil>
lejonet: that would require IFD which is really slow, especially if it would be used for each random value anew
<lejonet>
infinisil: ah, what is IFD?
<lejonet>
But yeah, anything that forces a context switch from nix is a bad thing, because it'll add a significant amount of latency
<infinisil>
import-from-derivation, essentially something like `import (pkgs.runCommand "foo" {} "echo 10 > $out")` which will evaluate to 10
<infinisil>
where you import nix code from a resulting build
<infinisil>
this means builds need to run during nix evaluation
<lejonet>
Essentially running a subshell child process?
<infinisil>
not really
<infinisil>
you declare a derivation and how it gets built, and then import nix code from that
<infinisil>
which means the nix code doesn't even exist when you start evaluating
<infinisil>
and it needs to construct it by doing a nix-build first
<infinisil>
then import it
hiratara has quit [Ping timeout: 252 seconds]
<lejonet>
ah, I see, yeah, that adds a looot of overhead
<infinisil>
but actually that won't work for random values
<infinisil>
oh, maybe it does, *thinks*
<infinisil>
it does! maybe not even half-bad
<lexwho>
i'f i'm in nix-repl, how I can see something line in python> help(object.function) to see documentation, API, possible artguments and return value?
<lexwho>
*like in python
hiratara has joined #nixos
<infinisil>
lexwho: you can't
<lexwho>
sorry for mistyping, sleepy (1 a.m.)
<infinisil>
lexwho: the only thing that has docs associated with it are nixos options
jb55 has quit [Ping timeout: 240 seconds]
<infinisil>
You'll have to view the source of nixpkgs/lib to see the library docs
<lexwho>
let's say I want to see API refference\doc about lib.id , how could I?
<lejonet>
You guys good with nixops? Is there anyway to create ad-hoc tasks that is run just once? I'm thinking like the creating the ceph cluster, I'm going to have to do a one time initialization per disk and such, create some directories for the different daemons and such
<infinisil>
lejonet: i think that's usually done with an ExecPre
<lejonet>
infinisil: but it should be a permanent directory/mountpoint... in the /var path too, so I don't really see why it should have to be checked each startup of the service, just feels... iffy to me :P
Fare has joined #nixos
<lexwho>
or I want to see doc for builtins.head , is that impossible?
<infinisil>
lexwho: and when the user removes the directory and starts the service again it should fail?
<lexwho>
my bad)
babyflakes has quit [Quit: Connection closed for inactivity]
<infinisil>
sorry that was to lejonet
<lexwho>
np mate
<infinisil>
lejonet: it kinda makes sense to have a directory check before the service starts
<lejonet>
infinisil: well, seeing as atleast for the osd daemontype, they are mountpoints, starting the service without the appropriate disk mounted on the mountpoint is reallly bad
<lejonet>
I can buy it a bit more for the other daemontypes, but not the osd daemontype
coot has quit [Quit: coot]
<lejonet>
(mainly because other than osd daemons, the other daemons "just" need a directory to store some metadata in, whereas the osd daemon is the actual object backing part of ceph)
jb55 has quit [Ping timeout: 256 seconds]
jensens has quit [Ping timeout: 248 seconds]
<lejonet>
and the annoying part with having a ExecPre is that even tho the default location is quite simple, its completely user configurable to where each daemon looks for its stuff :/
<lexwho>
damn, bros, dat feeling when you lurking youtube for nix language lecture but instead tube spams you with creepy asian animations, I will not share link to this harmful stuff in order to save sanity and mental health
hiratara has joined #nixos
<infinisil>
lexwho: is this sarcasm?? GIVE ME THE LINK
coot has joined #nixos
* lexwho
full of irony and puns
<lexwho>
stay safe, oyasumi
lexwho has quit []
steshaw has joined #nixos
jb55 has quit [Ping timeout: 240 seconds]
vidbina has quit [Ping timeout: 268 seconds]
<Ralith>
ooh, nix-bundle looks neat
<Ralith>
I wonder why it has slow startup
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tertleeltret has joined #nixos
Itkovian_ has quit [Ping timeout: 256 seconds]
<joepie91>
Ralith: presumably because it's a self-extracting archive that needs to extract first or something?
__monty__ has left #nixos [#nixos]
<Ralith>
ah, of course
<Ralith>
I guess it needs to be refactored to use some sort of compressed filesystem instead
vidbina has joined #nixos
matthewbauer has joined #nixos
<hodapp>
"Chix Nix Bundle-O-Stix: A Feminist Critique of the Disaggregation of Property" no, search engine, not *that* nix-bundle
<dtz>
(and of course no one wants to break things that aren't tested yet :))
<dtz>
magnetophon: changing the default has greatest impact on Darwin, which also is rather under-powered re:builders so understandably such big changes can take time unless motivated by a bug or something
<LnL>
I'm going to try to look at it properly this week
<dtz>
\o/
<magnetophon>
dtz: ok, thanks. Then I guess I made the right choice to have my pkg PR depend on 5.
<dtz>
(and since Linux has no "real" pressing reason to bump, splitting the default didn't seem warranted :))
<dtz>
magnetophon: esp with 6 around the corner! :)
Itkovian_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aminechikhaoui has quit [Quit: leaving]
Fare has joined #nixos
matthewbauer has joined #nixos
alexteves_ has quit [Ping timeout: 252 seconds]
aminechikhaoui has joined #nixos
mizu_no_oto has joined #nixos
aminechikhaoui has quit [Quit: leaving]
civodul has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
aminechikhaoui has joined #nixos
Sonarpulse has quit [Ping timeout: 248 seconds]
aminechikhaoui has quit [Client Quit]
verite has quit [Ping timeout: 256 seconds]
aminechikhaoui has joined #nixos
alex`` has quit [Ping timeout: 252 seconds]
freeman42x[NixOS has quit [Ping timeout: 276 seconds]
stephenjudkins has quit [Remote host closed the connection]
stephenjudkins has joined #nixos
jono has joined #nixos
stephenjudkins has quit [Remote host closed the connection]
stephenjudkins has joined #nixos
binh_ has joined #nixos
glenn_ has joined #nixos
<Lisanna>
Hey guys, for some reason my NixOS module is failing with infinite recursion if I reference "config" from inside config at all. I have something like this: { config, lib, pkgs, ... }: let cfgBase = config; in { options.services.blah = ...; config = ... lib.traceSeqN 1 cfgBase ...; }
fyuuri has joined #nixos
<Lisanna>
is this a frequently encountered problem that has an understood likely fix?
<fpletz>
Lisanna: are you setting an option in the config attrset that you're refering to with cfgBase?
<Lisanna>
I mean, yeah, isn't that the point?
<Lisanna>
but, I do actually have other references to it that work
<fpletz>
i mean the exact same option
bsima has joined #nixos
stepcut has quit [Remote host closed the connection]
<Lisanna>
all the options in config = ..; just create systemd services