<{^_^}>
[nixpkgs] @romildo opened pull request #41006 → openbox: fix wrapping of openbox-xdg-autostart → https://git.io/vhkkC
jtojnar has quit [Read error: Connection reset by peer]
mounty has quit [Ping timeout: 260 seconds]
mounty has joined #nixos
c0ffee152 has joined #nixos
jtojnar has joined #nixos
worldofpeace has joined #nixos
woodson has joined #nixos
adamt has quit [Ping timeout: 245 seconds]
pjan has quit [Remote host closed the connection]
thc202 has quit [Read error: Connection reset by peer]
jtojnar has quit [Read error: Connection reset by peer]
codelurker has joined #nixos
jtojnar has joined #nixos
worldofpeace has quit [Ping timeout: 245 seconds]
nur0n0 has joined #nixos
sigmundv_ has joined #nixos
sigmundv__ has quit [Ping timeout: 245 seconds]
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
steell has joined #nixos
johnw has quit [Ping timeout: 245 seconds]
ericsagnes has joined #nixos
tzemanovic has quit [Ping timeout: 256 seconds]
sary has quit [Remote host closed the connection]
johnw has joined #nixos
asuryawanshi has joined #nixos
Synthetica has quit [Quit: Connection closed for inactivity]
silver has quit [Read error: Connection reset by peer]
olto has joined #nixos
oltoAltn has quit [Ping timeout: 245 seconds]
tzemanovic has joined #nixos
jperras has joined #nixos
mbrgm has quit [Ping timeout: 245 seconds]
PCChris has quit [Quit: Leaving]
PCChris has joined #nixos
mbrgm has joined #nixos
<samueldr>
adelbertc: just a heads up, I updated the PR regarding the docker issue, if you want to test, my previous fix did remove the error, but did not work properly, https://github.com/NixOS/nixpkgs/pull/40947 for details
PCChris has quit [Client Quit]
<gchristensen>
the problem with kitty is you can't really google about it
<gchristensen>
or ddg)
<samueldr>
gchristensen: there's another (older) kitty terminal even
<{^_^}>
→ 8f3a541a by @samueldr: nixos/grub: Updates `splashImage` description to match reality.
<{^_^}>
→ 0ccfe14e by @samueldr: nixos/grub: Implements use of file format for splashImage.
<{^_^}>
→ 290505bf by @grahamc: Merge pull request #40462 from samueldr/fix/grub-background
<ikitat>
Can anyone help with the above error?
<ikitat>
I feel like this happened due to switching ~/.nix-defexpr from a local copy of nixpkgs back to using channels.
<fresheyeball>
ikitat: looks like cabal says there is a syntax error
<ikitat>
Why would cabal read a .drv file?
<fresheyeball>
ikitat: you very much have a point
TonyTheLion has quit [Ping timeout: 245 seconds]
<ikitat>
cabal is configured to use nix-shell, nix-build works... I've seen this error before, but it's quite a dead-end giving no real clue to debug the problem
<ldlework>
Does anyone have any reliable information about how to write a configuration that forces proprietary NVidia support in the case there is side-by-side intel & nvidia?
<iqubic>
Home-Manager seems like just another way to manage packages? What is the appeal of it?
<ldlework>
I want to only ever use nvidia for things, and I want to completely disable nouveu or whatever and use the propretary thing
<ldlework>
iqubic: it can manage files in your home directory
<ldlework>
which nix cannot
<iqubic>
Interesting.
<{^_^}>
[nixpkgs] @globin pushed to staging « ghc: disable format hardening »: https://git.io/vhkqu
<ldlework>
iqubic: with home-manager you basically describe a huge nix package that contains all the files that should be in your home-directory, nix can do that much, then home-manager symlinks those files from your latest package build into your home directory
<iqubic>
Do you use home-manager?
TonyTheLion has joined #nixos
<ldlework>
iqubic: yeah I did on OSX. I just got a new laptop I'm in the thick of setting it up right now
<iqubic>
Nice. Do you use home-manager to manage packages?
<ldlework>
I did on OSX, but I'm not sure where the proper division is when actually using NixOS
<ldlework>
I'm thinking that I might use configuration.nix to reflect the physical host's properties, and then rely on home-manager for everything else.
<ldlework>
Not sure though.
<iqubic>
Home-Manager seems like it has much of the same functionality as system.enviromentPackages. Not sure what the right way to divide this is.
<ldlework>
iqubic, consider that with home-manager different users could have different packages available
<ldlework>
mostly I will probably install software with home-manager, because for the software that has related dotfiles, I want to keep the provisioning of the configuration and the package installation together.
tmobile has joined #nixos
steell has quit [Ping timeout: 245 seconds]
srl295 has quit [Quit: Connection closed for inactivity]
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
<tmobile>
Hey all. Anyone had any luck populating an HTTP binary cache with the new 'nix copy' command?
<tmobile>
Trying to move over to it and I think I'm going nuts.
Supersonic112 is now known as Supersonic
<iqubic>
ldlework: Yeah, I feel you. But my .emacs is a long file.
klntsky_ has quit [Remote host closed the connection]
<tmobile>
It's kinda spooky. There are a few paths in my cache where, if I run 'nix verify -n1 <this-bad-path> --store https://<my-private-cache>', all of my hosts report the path as "verified" _except_ this one Ubuntu machine.
<tmobile>
They're all running the same nix, /nix/store/vdvla43ppjf6gfsi8nx1zmac7rwq72yd-nix-2.0.2/bin/nix.
<tmobile>
All the hosts's /etc/nix/nix.conf have the same trusted-public-keys.
<ldlework>
iqubic: what's that have to do with anything?
<ldlework>
I have a sizable emacs configuration myself
<iqubic>
How do you make home-manager manage that?
<{^_^}>
[nixpkgs] @dezgeg merged pull request #40817 → Unify some shell init logic with Nix's nix-profile.sh.in → https://git.io/vphM0
<ldlework>
Can someome help me get that version installed on NixOS?
<{^_^}>
[nixpkgs] @matthewbauer pushed to master « zookeeper_mt: add version »: https://git.io/vhk3E
<ldlework>
Do I need to change my channel to unstable or something?
blankhart has joined #nixos
sbdchd has quit [Remote host closed the connection]
codelurker has quit [Quit: Leaving]
tzemanovic has joined #nixos
<ldlework>
cool that worked
asuryawanshi has quit [Remote host closed the connection]
asuryawanshi has joined #nixos
<jasongrossman>
\o/
olto has quit [Read error: Connection reset by peer]
steell has quit [Ping timeout: 252 seconds]
<jasongrossman>
ldlework: One of the biggest advantages of Nix IMO. Not only is it really easy to change to unstable, also, unlike any other package manager I can think of (except Guix, I guess), it's really easy to change back again.
olto has joined #nixos
<jasongrossman>
I often change to unstable for some single piece of work and then pop back and forth.
asuryawanshi has quit [Ping timeout: 245 seconds]
<ldlework>
jasongrossman: do you know how to make it so that inside of configuration.nix you can use some packages from unstable?
<jasongrossman>
ldlework: One thing to add is that if you use that method then the tarball is cached for some amount of time (I believe - haven't tested this).
sbdchd has quit [Remote host closed the connection]
Lisanna has joined #nixos
drakonis has quit [Read error: Connection reset by peer]
Ross has quit [Ping timeout: 245 seconds]
c0ffee152 has quit [Quit: Lost terminal]
Ross has joined #nixos
rauno has quit [Ping timeout: 252 seconds]
Sonarpulse has joined #nixos
asuryawanshi has joined #nixos
ryantm has joined #nixos
reinzelmann has joined #nixos
johnw has quit [Ping timeout: 240 seconds]
MP2E has joined #nixos
palo has quit [Quit: leaving]
reinzelmann has quit [Quit: Leaving]
<elvishjerricco>
Why would `nix copy --all --from file:///foo` throw `error: path '/nix/store/4dq4g85hhf6rc1risqf9ljxmbx4yhp9z-mirrors-list.drv' is not valid`?
fragamus has joined #nixos
<elvishjerricco>
`nix copy --all --from --no-check-sigs file:///foo`, that is
Rusty1_ has quit [Quit: Konversation terminated!]
spear2 has quit [Quit: Leaving]
<{^_^}>
[nixpkgs] @matthewbauer opened pull request #41009 → Name normalization → https://git.io/vhkZr
<iqubic>
How does one decide what to manage with configuration.nix vs home-manager?
endformationage has quit [Quit: WeeChat 1.9.1]
jperras has joined #nixos
jperras has quit [Ping timeout: 252 seconds]
jasongrossman has quit [Ping timeout: 264 seconds]
qewzee has quit [Ping timeout: 256 seconds]
robstr has joined #nixos
<iqubic>
Is NixOS considered a rolling release distro?
palo has joined #nixos
palo has quit [Changing host]
palo has joined #nixos
<elvishjerricco>
iqubic: What exactly do you mean by "rolling release distro"?
<elvishjerricco>
I usually only use home-manager for things I simply can't use configuration.nix for
<iqubic>
What sort of things would those be?
<elvishjerricco>
Mainly the placement of files in the home directory. I guess it's technically possible to do this with configuration.nix, but it's certainly not as nice
rauno has joined #nixos
<iqubic>
Is your home-manager config available online?
<elvishjerricco>
iqubic: No, sorry
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<iqubic>
That's fine.
ldlework has quit [Quit: Page closed]
uralbash has joined #nixos
ldlework has joined #nixos
<ldlework>
Woo I'm in NixOS!
jperras has joined #nixos
semilattice has joined #nixos
<iqubic>
Nice.
<uralbash>
Hello all, Who knows what option is required to change the keyboard layout shortcut?
<palo>
uralbash: I think that depends on your windowManager/desktopManager
<elvishjerricco>
uralbash: Not sure. Maybe search `man configuration.nix` for it?
<uralbash>
ah I found it xkbOptions = "grp:caps_toggle";
jperras has quit [Ping timeout: 245 seconds]
<{^_^}>
[nixpkgs] @vcunat pushed 40 commits to release-18.03: https://git.io/vhkc9
<{^_^}>
→ b1068951 by @sjau: sqlite: Raising max variable number and max expr depth values
<{^_^}>
→ f0ee54f7 by @volth: sqlite: 3.21.0 -> 3.22.0
<{^_^}>
→ df178dee by @oxij: firefoxPackages: add a patch to fix pulseaudio initialization bug
rummik has quit [Quit: WeeChat 2.0.1]
rummik has joined #nixos
Kim has quit [Quit: WeeChat 2.1]
rummik has quit [Client Quit]
Kim has joined #nixos
cheshircat has quit [Ping timeout: 260 seconds]
<{^_^}>
[nixpkgs] @peterhoeg opened pull request #41010 → nixos mysql: make start-up more robust → https://git.io/vhkCm
cheshircat has joined #nixos
ldlework has quit [Quit: WeeChat 2.0]
hyper_ch2 has joined #nixos
blankhart has quit [Ping timeout: 264 seconds]
jasongrossman has joined #nixos
jperras has joined #nixos
myshoe has joined #nixos
Khetzal has joined #nixos
griff_ has joined #nixos
griff_ has quit [Client Quit]
jperras has quit [Ping timeout: 264 seconds]
palo_ has joined #nixos
palo_ has quit [Changing host]
palo_ has joined #nixos
palo has quit [Ping timeout: 260 seconds]
<{^_^}>
[nixpkgs] @andir merged pull request #41005 → zziplib: gdraheim/zziplib#27 is not an issue anymore → https://git.io/vhkU0
<{^_^}>
[nixpkgs] @yegortimoshenko pushed 2 commits to master: https://git.io/vhk0U
<{^_^}>
→ 06e750cc by @dywedir: yarn: 1.6.0 -> 1.7.0
<{^_^}>
→ 1c39035c by @yegortimoshenko: Merge pull request #41011 from dywedir/yarn
jasongrossman has quit [Ping timeout: 240 seconds]
reinzelmann has quit [Quit: Leaving]
xAFFE has left #nixos ["Error from remote client"]
jasongro` has quit [Client Quit]
jasongrossman has joined #nixos
reinzelmann has joined #nixos
ThatDocsLady has joined #nixos
jperras has joined #nixos
thc202 has joined #nixos
jperras has quit [Ping timeout: 245 seconds]
muzzy has joined #nixos
blankhart has joined #nixos
alex`` has quit [Quit: WeeChat 2.1]
smallville7123 has joined #nixos
tzemanovic has quit [Remote host closed the connection]
alex`` has joined #nixos
jasongrossman has quit [Remote host closed the connection]
knupfer has joined #nixos
lonokhov has joined #nixos
semilattice has quit [Remote host closed the connection]
<steveeJ>
I can't figure out if the cli tool gdbus is packages somewhere. any hints?
<sphalerite>
steveeJ: glib.dev
Joeyo133 has quit [Ping timeout: 260 seconds]
<steveeJ>
sphalerite: how did you find this?
johnw has joined #nixos
<sphalerite>
nix-locate gdbus
<sphalerite>
(nix-locate is in nix-index)
<steveeJ>
aha, thanks a lot!
<{^_^}>
[nixpkgs] @dotlambda opened pull request #41013 → nixos/borgbackup: make extraArgs a shell variable → https://git.io/vhkav
sydney has joined #nixos
<sydney>
Hiho, quick question: At the beginning of package files (for example, thunar.nix in the nixpkgs repository), there is this line containing { option1, option2, option3 ? default }. How do I set, say, option3 to true? Specifically, I want to enable tumbler for thunar.
ThatDocsLady has quit [Remote host closed the connection]
<etu>
sydney: The first one with emacs in systemPackages
ThatDocsLady has joined #nixos
periklis has quit [Ping timeout: 240 seconds]
jasongrossman has joined #nixos
spyke has joined #nixos
<spyke>
Hello, what is the difference betweem `builtins.fetchurl` and `pkgs.fetchurl`?
<sydney>
etu: Hmm, so I just plugged in [ pkgs.xfce.tumbler ] for the option thunarPlugins right there. Rebuilt the configuration and nothing changed so far.
<spyke>
Hello, what is the difference between `builtins.fetchurl` and `pkgs.fetchurl`?
athan has quit [Ping timeout: 240 seconds]
Guanin has joined #nixos
<etu>
sydney: Since you're on xfce (i guess), there's probably some place else that depends on thunar (possibly without plugins). You may want to do an overlay where you define your own thunar package with that plugin. Then it will happen in all the places.
<jasongrossman>
spyke: I believe they take different arguments, don't they?
athan has joined #nixos
<jasongrossman>
spyke: From memory, I think one requires a checksum and the other one has an optional checksum.
<sydney>
etu: I actually only use thunar as a standalone with i3.
<etu>
sydney: I see, then you shouldn't need an overlay.
<jasongrossman>
spyke: In case you're wondering why they're different: I'm not absolutely sure, but I think the maintainers were unsure at some point about whether to make checksums compulsory in the Nix core.
atondwal has joined #nixos
medvid has quit [Ping timeout: 245 seconds]
Biappi has quit [Ping timeout: 245 seconds]
<jasongrossman>
So they'll probably make both functions the same at some point in the future, or else deprecate one or the other.
jonge has quit [Ping timeout: 264 seconds]
liori has quit [Ping timeout: 240 seconds]
globin has quit [Ping timeout: 245 seconds]
fpletz has quit [Ping timeout: 240 seconds]
exi has quit [Ping timeout: 240 seconds]
azazel has quit [Ping timeout: 276 seconds]
yorick has quit [Ping timeout: 265 seconds]
hiberno has quit [Ping timeout: 256 seconds]
SOO7 has quit [Ping timeout: 264 seconds]
ok2`` has quit [Ping timeout: 240 seconds]
sphalerite has quit [Ping timeout: 240 seconds]
migy has quit [Ping timeout: 256 seconds]
phry has quit [Ping timeout: 256 seconds]
bara has quit [Ping timeout: 240 seconds]
dejanr has quit [Ping timeout: 276 seconds]
jeschli has quit [Ping timeout: 276 seconds]
oida has quit [Ping timeout: 250 seconds]
tilpner has quit [Ping timeout: 260 seconds]
Baughn has quit [Ping timeout: 276 seconds]
johbo has quit [Ping timeout: 276 seconds]
kosmikus has quit [Ping timeout: 276 seconds]
uwap has quit [Ping timeout: 276 seconds]
dispanser has quit [Remote host closed the connection]
sydney has quit [Quit: Leaving]
Guest55737 has quit [Ping timeout: 245 seconds]
<{^_^}>
[nixos-homepage] @edolstra merged pull request #201 → Include haskellPackages and rPackages in the generated package index. → https://git.io/vxKBw
<{^_^}>
[nixos-homepage] @edolstra pushed 2 commits to master: https://git.io/vhkok
<{^_^}>
→ 4c5bcc13 by @peti: Include haskellPackages and rPackages in the generated package index.
<{^_^}>
→ 62b57b6e by @edolstra: Merge pull request #201 from peti/master
muzzy has joined #nixos
ldlework has joined #nixos
<ldlework>
How can I make it so the login screen is just the tty-like text console login?
<ldlework>
I mean I want to login to my normal desktop environment but I wanna be leet and have the login be the terminal business
Guest55737 has joined #nixos
grumble has quit [Ping timeout: 608 seconds]
Swant has quit [Ping timeout: 633 seconds]
<jasongrossman>
I'm not sure exactly what you mean ...
hyper_ch2 has quit [*.net *.split]
rshiny has quit [*.net *.split]
<ldlework>
like you know when you switch to a random tty
<ldlework>
and it is just text, and you login and you're in a tty session?
<jasongrossman>
There's the login MANAGER, which runs before the desktop environment and the window manager. Is that the thing you want tobe a tty?
<ldlework>
how do I get a text only login manager?
<ldlework>
yeah, exactly
<jasongrossman>
Cool idea but I have no idea - sorry.
<ldlework>
you got me
<ldlework>
oh hah ok
uwap has joined #nixos
<jasongrossman>
All the ones that already have Nix packages are graphical.
<jasongrossman>
Actually I'm pretty sure you can configure grub to do what you want. And grub can run as the login manager. I don't know how though - could look up web pages on grub.
<ldlework>
I picked slim I think, and it is kind of ugly
<jasongrossman>
Yeah.
atondwal has quit [Quit: atondwal]
dejanr has joined #nixos
atondwal has joined #nixos
<jasongrossman>
IMO lightdm is nice, and so is gdm.
johbo has joined #nixos
<jasongrossman>
Lightdm defaults to a Nix theme. :-)
kosmikus has joined #nixos
<jD91mZM2>
Just disable all login managers? It'll fallback to a normal TTY
dispanser has joined #nixos
yorick has joined #nixos
<jasongrossman>
Oh cool!
tilpner has joined #nixos
<jasongrossman>
No but wait.
<jasongrossman>
No but don't wait.
Swant has joined #nixos
<jasongrossman>
Of course that's perfect. And in fact I sometimes do that myself so I don't know why I didn't think of it!
SOO7 has joined #nixos
fpletz has joined #nixos
* jasongrossman
facepalms
muzzy has quit [Read error: Connection reset by peer]
<jD91mZM2>
The best solution to a problem is usually the easiest one :-)
<ldlework>
Hmm, are we sure that will actually work?
<jasongrossman>
Yes!
<ldlework>
lol
<jasongrossman>
Yes I am sure. Often do it.
jtojnar has quit [Quit: jtojnar]
x1n4u has joined #nixos
<ldlework>
So do I just not specify a displayManager or do I have to turn some default off?
<jasongrossman>
And some of the NixOS installers have been set up that way too.
<Lears>
You'll be able to log in, but I'm not so sure you'll get an X session when you do ..
<jD91mZM2>
Oh wait ldlework you still want a graphical interface for once you're logged in?
<jasongrossman>
Or use sudo systemctl start display-manager
<krav_>
beware when using startx that your original tty remains active and logged in, even with a screen locker an attacker can switch to it
<jasongrossman>
But the Arch wiki is WONDERFUL!
<jD91mZM2>
krav_: Doesn't startx open on the same TTY by default? Or is that only because I followed Arch's guide back when I used xinit?
<jasongrossman>
I don't remember how I turn the display manager off (sorry), but when I do I start the display manager manually with systemctl and it's all fine.
<etu>
jD91mZM2: nah
<jasongrossman>
Sorry - I start the WINDOW manager with systemctl.
<jasongrossman>
I am all apologies today.
<etu>
jD91mZM2: maybe recently. not in the past.
<krav_>
jD91mZM2: maybe with the framebuffer driver, try ctrl-alt-f1 for instance to get out of x
logzet has joined #nixos
<ldlework>
I don't want to type in a command each time, and the idea seems contentious now lol so maybe more trouble than it is worth.
<goibhniu>
jD91mZM2: that's not quite so easy on NixOS AFAIK
Izorkin has quit [Read error: Connection reset by peer]
<jD91mZM2>
I wonder if you could make a weechat module for home-manager
<sphalerite>
tilpner: no very important data, but it's stuff that's frustrating to lose…
<tilpner>
sphalerite - And the reset deleted/corrupted your profile?
<sphalerite>
no, but it meant that the arrangement of my channels and stuff got lost. I suppose it's my fault for relying on RAM for stuff that I want to keep :p
<sphalerite>
I guess what I need is some sort of autosave
<tilpner>
Oh
<tilpner>
I can give you what I have, but I don't think you'll be very happy with it
<tilpner>
For which you'll also need tx0.co/makeBubblewrap and tx0.co/bubbleWrapPresets
<jD91mZM2>
By the way, how do you guys handle your own programs? I know I've been asking similar questions way too much in this channel, but I still feel like I'm doing it wrong. I have packages for my own programs but I want to use the absolutely latest versions so I can notice immediately when I break something. Currently I'm just having scripts in ~/bin/ that run `nix-shell -p <dependencies> "/path/to/binary $@"`, but
<hyper_ch2>
poor weechat....
<jD91mZM2>
that feels hacky
<sphalerite>
I'll see what I can make of that, thanks tilpner
simukis has joined #nixos
ldlework has quit [Quit: WeeChat 2.0]
jperras has joined #nixos
<maurer>
jD91mZM2: I uh, just install them via nix-env like anything else?
<maurer>
Assuming that you have a default.nix for a project, you can just do nix-env -f path/to/proj -i
<maurer>
and then it'll get added to your path and installed properly
<jD91mZM2>
Oh so you have a default.nix for each thing, right
tzemanovic has quit [Remote host closed the connection]
<maurer>
Yeah, in the source dir, right next to the makefile/cargo manifest/cabal file etc.
<maurer>
They're usually pretty short
<tilpner>
sphalerite - It was an experiment (see if I can get away with it), but you lose interactive configuration (fset), which makes it somewhat annoying to use
ldlework has joined #nixos
<jD91mZM2>
maurer: I only have my default.nix in nixpkgs, and that one uses the latest release, not the latest git
<maurer>
Uh, you misunderstand then probably
<ldlework>
Is it possible that the problem is that my configuration.nix is a symlink now? That can't be it right?
<tilpner>
sphalerite - If your goal is not to have a weechat config in Nix, autosave and backups would probably be better for you. unison sync for profiles may also be an option, depending on how many devices you want to run weechat in parallel
<sphalerite>
I use almost completely default weechat settings, I think the only things I've set up are servers to connect to and channels to autojoin
<maurer>
Not the big default.nix from nixpkgs
<sphalerite>
I only run weechat on one machine
<maurer>
instead something that imports nixpkgs, and then evaluates to a package for the local project
<sphalerite>
and ssh into it from others
<sphalerite>
ldlework: no, that can't be it
<sphalerite>
95% certain
jperras has quit [Ping timeout: 245 seconds]
<jD91mZM2>
maurer: Aha. If you do have a version in nixpkgs though, doesn't it feel redundant to have both?
<maurer>
default.nix is not a system definition, it is "If you are in this directory, this is the default file to load for most tools"
<ldlework>
anything here that would be broken? I mean I'm running on a build very similar to this
<ldlework>
Is there anyway to recover the configuration.nix that went into a specific generation?
<jD91mZM2>
maurer: I mean if you have both a default.nix in each program's folder and then also one in nixpkgs because you publish stuff there, wouldn't it feel better if you could merge them into one somehow?
<ldlework>
like the one I booted?
<maurer>
jD91mZM2: The one in nixpkgs is pointed at my actual release repositories, the one in my dev environment is pointed at the current folder
<maurer>
they do different things
grumblr has joined #nixos
<ldlework>
pls
<maurer>
(I'll also note that the thing you're doing with nix-shell -p deps path/to/bin will _break_ when you update nixpkgs and gc
<{^_^}>
[nixpkgs] @peterhoeg opened pull request #41017 → [WIP] nixos: make several modules not run as root → https://git.io/vhkX7
<nyanloutre[m]>
Hello,
<jD91mZM2>
maurer: But if you add a C dependency to the project you need to add it to buildInputs in both files, yeah?
<maurer>
jD91mZM2: So, if I add a C dependency, I add it only in the deps for the dev project
<jD91mZM2>
ldlework: I don't think you can unless you set system.copySystemConfiguration
<maurer>
then, when I cut a new release, I copy the changes into nixpkgs and bump the release number
<nyanloutre[m]>
Does anyone know how to use some modules from unstable while running 18.03 ?
<nyanloutre[m]>
I know how to install some packages from unstable but I can't figure out for modules
<jD91mZM2>
maurer: And that's my point, doesn't it feel redundant to copy things over?
<{^_^}>
[nixpkgs] @ghuntley opened pull request #41018 → [k8] fix: connect the --bind-address arg to the cfg.apiserver.address option → https://git.io/vhk1t
<srhb>
nyanloutre[m]: imports = [ (import (nixos-unstable-src + "/nixos/modules/...")) ] while blacklisting the same modules
<nyanloutre[m]>
I didn't know you could use path inside the braquets
<maurer>
In any case, the nix-shell -p deps path/to/bin thing you were describing will break, so you should probably install that properly at some point
<srhb>
That's what angle brackets are for in their entirety :)
<sphalerite>
nyanloutre[m]: <> is for lookup on NIX_PATH
<srhb>
If you don't avoid NIX_PATH with a vengeance...
<nyanloutre[m]>
nice
<ldlework>
jD91mZM2: sphalerite does anything look wrong with my config?
<ldlework>
nixos-rebuild build works..
<jD91mZM2>
ldlework: What specifically?
<ldlework>
I don't know! When I do nixos-rebuild test, I crash to tty login
<sphalerite>
anything relevant in the journal?
<ldlework>
What is that?
<jD91mZM2>
maybe you're missing `enable = true` in xserver?
<ldlework>
I'll look.
<ldlework>
lol that would be funny
<sphalerite>
Also, out of curiosity, what's the sessreg stuff for?
<ldlework>
oh man it doese look like I'm missing enable = true in xserver
<ldlework>
lmao
<ldlework>
sphalerite: no idea
<ldlework>
copy pasta from the internets
<sphalerite>
well, that would explain it I guess lol
<sphalerite>
although I don't know why that wouldn't already have caused trouble for you
<sphalerite>
did you remove it by accident?
grumble has quit [Ping timeout: 606 seconds]
grumblr is now known as grumble
<ldlework>
nice that was it
<ldlework>
yeah I refactoed my original config into a bunch of files using imports = [];
<sphalerite>
aah right
<ldlework>
so it must of got lost in the shuffle
<ldlework>
thank you so much guys
<ldlework>
or gals,w/e
<jD91mZM2>
I idenify as a ceiling fan
<ldlework>
some of my best friends are ceiling fans
<jD91mZM2>
^ put the above code in ~/.config/nixpkgs/overlays/whatever.nix
<jD91mZM2>
and then install nixos.my-package which you just defined
<hyper_ch2>
hmmmm, anyone knows about setting up a dns server?
<joehh>
jD91mZM2: thanks for that, I'll give it a go
griff_ has joined #nixos
<joehh>
will that be picked up by other things that depend on it (ie the opencv python package?)
<joehh>
or will I need to overlay/override it too?
<sphalerite>
,ask hyper_ch2
<{^_^}>
hyper_ch2: Just ask your question. It's the best way to know if anybody can help.
<hyper_ch2>
sphalerite: hmmmm, anyone knows about setting up a dns server?
<hyper_ch2>
:)
<sphalerite>
Yes.
<etu>
I'm sure someone does
<sphalerite>
Since there are DNS servers in the world, somebody must know about setting them up.
<etu>
I sure hope so, unless they are set up by the unicorns.
<sphalerite>
Another satisfied customer. Next!
ericsagnes has joined #nixos
<sphalerite>
etu: I'm pretty sure a unicorn counts as somebody.
<srhb>
etu: What. Unicorns are great. I'd trust them to set up DNS.
<hyper_ch2>
you're really sure they know what they're doing and didn't just accidentally set it up correctly? :)
blonkhart has joined #nixos
<etu>
I was hoping that someone would say: "Which unicorns?" so I could say: "Exactly!" :D
<jD91mZM2>
what
<etu>
srhb: Yeah, I know. So do I :)
<hyper_ch2>
etu: the white ones
<{^_^}>
[nixpkgs] @ghuntley opened pull request #41019 → [k8] housekeeping: corrected 404 links to k8 documentation → https://git.io/vhk5q
<gchristensen>
sphalerite: the nixos community has not just people who configured them, but people who wrote them
<hyper_ch2>
gchristensen: the nixos community has people who wrote unicorns?
<sphalerite>
gchristensen: wow so there's even someone in the nixos community who knows about it!
<hyper_ch2>
ah right.. kresd IIRC
<Myrl-saki>
Uhh..
<srhb>
hyper_ch2: By the way, the point of ,ask is to encourage people to ask their _actual_ question (eg. their particular issue with setting up DNS in this case :P)
<Myrl-saki>
Wouldn't calling unicorns somebody be anthromorphism?
asuryawa_ has quit [Remote host closed the connection]
<hyper_ch2>
srhb: I do like to point out !metaquestion to others... I don't like it being pointed out to me :)
<{^_^}>
Just ask your question. It's the best way to know if anybody can help.
asuryawanshi has joined #nixos
<hyper_ch2>
what's the meaning of nixos, the universe and everything else?
<hyper_ch2>
well, I'm not sure what dns server to use... I'd like to setup a recurisive caching dns server but also host a few custom zone files on it.. from what I gathered, unbound would be pretty great but can't host custom dns
<sphalerite>
srhb: nice
steell has joined #nixos
<Myrl-saki>
Hmmm
<srhb>
sphalerite: Gloryhammer is excellent. :3
logzet has quit [Remote host closed the connection]
<Myrl-saki>
What git web frontend is the one with a huge-ass red git symbol?
<Myrl-saki>
You know the MIT logo? Think of that, but is Git.
Guest89694 has quit [Ping timeout: 268 seconds]
<Myrl-saki>
cgit?
jasongrossman has quit [Remote host closed the connection]
<srhb>
Gitlab has a red fox or something...
<Myrl-saki>
Apparently, I'm stupid. cgit's logo is configurable.
<etu>
Myrl-saki: gogs?
<Myrl-saki>
But yeah, cgit was what I was thinking.
<samueldr>
Myrl-saki: redmine isn't strictly a git frontend, but has a red logo
<tobiasBora>
I don't understand why, I just did "nix-env -i nixpkgs.geogebra", after a few seconds I come back to the prompt, but nothing is written at all (not even error), and "nix-env -q" does not return anything for geogebra
<srhb>
jD91mZM2: Yes, it's the function builtins.attrNames applied to builtins itself. :)
<jD91mZM2>
that's what I did first and was told that that's a horrible way to do it
<hyper_ch2>
well, I'm not sure what dns server to use... I'd like to setup a recurisive caching dns server but also host a few custom zone files on it.. from what I gathered, unbound would be pretty great but can't host custom dns zone/entries
<jD91mZM2>
(also I forgot --run)
Maxdamantus has joined #nixos
<tilpner>
jD91mZM2 - Write a new script, #! /usr/bin/env nix-shell \n #! nix-shell -p libsixel \n exec /path/to/termplay "$@"
<tilpner>
:/
<tilpner>
Hmm, may be missing -i sh
<jD91mZM2>
tilpner: ooooooooooo
<jD91mZM2>
Well okay I just wasted my entire day :D
<tilpner>
It's more useful when downloading interpreters. E.g. executing tx0.co/Y will download the Racket runtime, then continue to execute the rest of the script with the new runtime
<tilpner>
But it also works for libraries, of course
steell has joined #nixos
<jD91mZM2>
Wait, so \n is a new line here?
<jD91mZM2>
Because running that just puts me in nix-shell now
<infinisil>
tilpner: Damn these tx0.co links, my url opener doesn't recognize them as urls without the http prefix..
<infinisil>
Luckily they're super easy to type manually though :)
rauno has quit [Ping timeout: 268 seconds]
* tilpner
doesn't have a url opener, so never noticed that
<infinisil>
You just type every url you see here manually into the browser??
<tilpner>
No, I double-click it, then pres super+w
<jD91mZM2>
Ah, I needed `-i sh`
<tilpner>
Which is problematic if links are too long to fit on one line
peacememories has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<gchristensen>
if you have weechat, alt-l
<nyanloutre[m]>
tilpner: what are you using to create those links ?
* etu
just rightclick links to open them in the browser, but that only works with protocol in front.
* jD91mZM2
copy pastes them with tmux lol
<etu>
gchristensen: What is the default binding of alt-l in weechat? I run weechat but due to dvorak-based layout alt-l goes to window 20.
<tilpner>
nyanloutre[m] - Can you rephrase that question please? What part are you curious about?
<gchristensen>
etu: /window bare
<tilpner>
gchristensen - I do, but that's annoying. Luckily, people don't often paste links that long :)
<nyanloutre[m]>
It's about tx0
<etu>
gchristensen: ooooh, nice
<gchristensen>
:)
<jD91mZM2>
wait so how does alt+l help me open links
<tilpner>
nyanloutre[m] - Yes, but what part of that? This is offtopic for #nixos, let's move to PM or #nixos-chat
<gchristensen>
it disables ncurses and just shows unwrapped messages, letting your terminal emulator do the wrapping
<etu>
jD91mZM2: Wider window so long links doesn't break unless they are really long
<jD91mZM2>
oh
<nyanloutre[m]>
tilpner: it seems to be some selfhosted pastebin, so I am curious about it 😃
<gchristensen>
etu: even on long URLs it doesn't break, because there is no \n
<etu>
gchristensen: I have my weechat in a tmux that is split both horizontally and vertically :D
<gchristensen>
you poor thing
<etu>
So it will break :D
<etu>
But maybe I can change that now when I know that I can have a use for that change.
<{^_^}>
[nixpkgs] @globin pushed commit from @nlewo to master « skopeo: 0.1.29 -> 0.1.30 »: https://git.io/vhIfA
blonkhart has quit [Quit: WeeChat 1.9.1]
<dx_>
i meant, `hash -r` which can be turned on/off via `set -h` or `set +h`
seafood has quit [Quit: seafood]
<dx_>
it has to be disabled to avoid complications, correct?
<Dezgeg>
it's disabled by default, yes
tzemanovic has quit []
Myrl-saki has quit [Quit: WeeChat 1.6]
<sphalerite>
dx_: it's not strongly required, but enabling it can cause confusing issues, not just on nixos.
<elvishjerricco>
sphalerite: What kind of issues?
peacememories has joined #nixos
<sphalerite>
elvishjerricco: when the program is installed into different places, it can cause two shells to invoke a different one even though they have the same PATH, based on the state of their hash
rauno has joined #nixos
ramses_ has joined #nixos
jasongrossman has joined #nixos
reinzelmann has quit [Quit: Leaving]
Myrl-saki has joined #nixos
Myrl-saki has quit [Client Quit]
Guest89694 has quit [Ping timeout: 260 seconds]
Myrl-saki has joined #nixos
<{^_^}>
[nixpkgs] @lblasc opened pull request #41023 → lua packages: add init.lua to modules search path → https://git.io/vhIT1
<dx_>
i need a way to do cut&paste, i have fluxbox. Need some tip
<sphalerite>
cryp2nomicon: it depends on the applications you're using, but typically selecting text will copy it into the PRIMARY buffer which you can paste using a middle click.
<{^_^}>
→ 2e41891e by @globin: python.pkgs.openid: init at 2.2.5/3.1.0
<{^_^}>
→ 6b29b2c3 by @globin: python.pkgs.django-allauth: init at 0.36.0
<{^_^}>
→ e2439932 by @globin: python.pkgs.django-gravatar2: init at 1.4.2
<{^_^}>
[nixpkgs] @xeji merged pull request #41010 → nixos mysql: make start-up more robust → https://git.io/vhkCm
<{^_^}>
[nixpkgs] @xeji pushed commit from @peterhoeg to master « nixos mysql: make start-up more robust (#41010) »: https://git.io/vhIYq
ihar has joined #nixos
ixxie has joined #nixos
aminechikhaoui has quit [Ping timeout: 245 seconds]
jasongrossman has joined #nixos
chessai has joined #nixos
hyper_ch2 has quit [Quit: Page closed]
Sonarpulse has quit [Ping timeout: 252 seconds]
<manveru>
(also shift+insert)
Lisanna has quit [Quit: Lisanna]
Ariakenom has quit [Ping timeout: 240 seconds]
ikitat has joined #nixos
griff_ has quit [Ping timeout: 240 seconds]
<sphalerite>
manveru: isn't that for CLIPBOARD though?
<sphalerite>
And copying to CLIPBOARD is more application-dependent
endformationage has joined #nixos
<{^_^}>
[nixpkgs] @globin pushed commit from @ciil to master « confluence: 6.6.1 -> 6.8.0 »: https://git.io/vhIZt
nixosuser1 has joined #nixos
<nixosuser1>
I'm on 18.03 and would like to see the fixed firefox icon displaying. I've run nixos-rebuild switch, but haven't seen it. Any ideas of what nix command I need to run to get this updated?
<__monty__>
I'm assuming you updated your channel?
<{^_^}>
[nixops] @AmineChikhaoui merged pull request #933 → Add labelling for newly created GCP disks and snapshots → https://git.io/vp3OF
<{^_^}>
[nixops] @AmineChikhaoui pushed 6 commits to master: https://git.io/vhI2a
<{^_^}>
→ 5aab7f3f by Memni Aymen: Add labelling for newly created GCE volumes and snapshots
<{^_^}>
→ 55473604 by Memni Aymen: Fix indentation and add function wait_for_snapshot_initiated()
<{^_^}>
→ 617b2a1e by Memni Aymen: Better use libcloud function ex_get_snapshot() to retrieve a snapshot
leat has quit [Ping timeout: 260 seconds]
<NYXT>
hey there - new to Nix, trying to work out the best way to package https://github.com/jakeday/linux-surface - unfortunately I need it which adds a complication to learning Nix. Trying to work out how I'd go about making a package that has a kernel with the patches, and a package with the firmware it includes. Any thoughts?
<ixxie>
but I am unsure how to proceed in packaging this
<tilpner>
Hey, anyone else on a laptop with libinput? Could you verify that X crashes when you repeatedly left-swipe with >= 3 fingers?
<ixxie>
tilpner: left swipe the screen?
<tilpner>
No, the touchpad
<symphorien>
tilpner: no nothing happens for me
<tilpner>
Try it a few times, it doesn't seem that reliable
<clever>
tilpner: absolutely nothing happens on my laptop when i swipe with 3 fingers in any direction, any number of times
<tilpner>
(Or maybe your touchpad doesn't support that many fingers? I don't know much about touchpads)
<tilpner>
Huh
<symphorien>
like clever said
<ixxie>
same here but I donno if I have libinput
<clever>
2 finger swipe does "mouse wheel" scrolling
Suncatcher has joined #nixos
<tilpner>
It even works on slock, so I guess that's another good reason against auto-login
_rvl has quit [Ping timeout: 256 seconds]
FRidh has joined #nixos
_rvl has joined #nixos
Neo-- has quit [Ping timeout: 256 seconds]
humanoyd has quit [Quit: WeeChat 2.1]
Suncatcher has quit [Client Quit]
<ixxie>
FRidh: got a moment to give a little advice on packaging a jupyter widget?
<FRidh>
ixxie: maybe, it's just a Python package? :)
<ixxie>
FRidh: well, this one is not 'just' a python package.... its a python package plus a jupyterlab/notebook extensions (=npm package) plus some other stuff
<ixxie>
do I pretty much have to port that install scrip to Nix or what?
leat has joined #nixos
tmaekawa has joined #nixos
<FRidh>
ixxie: probably. Some parts look like would work just fine, but it all depends where it tries too write. Because you can set --prefix I suppose you can point that to $out, and that way have a separate "package" that has all of this. Where are jupyter extensions normally installed to?
<ixxie>
FRidh: don't know.... where are npm packages normally installed to?
<{^_^}>
→ b4b3892b by @seppeljordan: nixos/kubernetes: Update kube-dns and kube-dashbashboard docker image derivations to new pullImage function signature
<{^_^}>
→ 2ce9d4f6 by @peti: Merge pull request #41043 from obsidiansystems/fix-nix-env-meta
dispanser has quit [Ping timeout: 268 seconds]
<clever>
krey: nix-prefetch-url is probably faster then -git
FRidh has quit [Quit: Konversation terminated!]
ilyaigpetrov has quit [Quit: Connection closed for inactivity]
<krey>
clever: also, I actually want to have these channels in my NIX_PATH
phry has joined #nixos
logzet has quit [Ping timeout: 245 seconds]
<krey>
so I can use them from nix-shell
<symphorien>
-I supports urls, maybe NIX_PATH as well
<clever>
NIX_PATH does support url's
ajs124 has joined #nixos
<tilpner>
krey - Does it have to be standard (there isn't anything AFAIK), or do you just want something that works? (I have something like that)
reinzelmann has quit [Quit: Leaving]
<krey>
o/ tilpner
<krey>
yeah, I'm looking specifically for something standard
<krey>
I'm sure other users have the same issue...
awygle is now known as aygle
<tilpner>
nix-channel is the standard solution, although edolstra wanted to replace it with something else for Nix 2 (IINM)
aminechikhaoui has quit [Ping timeout: 252 seconds]
<tilpner>
I just keep JSON files around that describe fetchTarball arguments. Those files can be easily updated with a shell script, and can be kept in git
aminechikhaoui has joined #nixos
logzet has joined #nixos
<tilpner>
But... my logs say I already told you that
<{^_^}>
→ 60737bd3 by @samueldr: dockerTools: fixes extraCommands for mkRootLayer.
<{^_^}>
→ 902b0593 by @samueldr: tests/docker-tools: Adds regression test for #34779
ldlework has joined #nixos
<{^_^}>
→ 2e98e0c0 by @nlewo: Merge pull request #40947 from samueldr/fix/34779
tazjin has quit []
tazjin has joined #nixos
<ldlework>
I just tried it out, I only set my window manager, and slim was used to login.
<ldlework>
no desktop manager set
<symphorien>
ldlework: "it doesn't seem to do anything anyway" << it will prompt you nicely when you plug a monitor for example
<symphorien>
with slim, use F1 to navigate from none+i3 (for example) to xfce+i3
etu has quit [Quit: WeeChat 2.1]
p_l has quit []
rodarmor has quit []
p_l has joined #nixos
Izorkin has joined #nixos
<fragamus>
I am trying to install cabal and ghc and whichever one I install first works and then when installing the other I get something like use ‘nix-env --set-flag priority NUMBER PKGNAME’ to change the priority of one of the conflicting packages
rodarmor has joined #nixos
<fragamus>
can someone give me some thoughts
etu has joined #nixos
p_l has quit [Client Quit]
p_l has joined #nixos
Notkea has quit [Remote host closed the connection]
dbe has joined #nixos
Notkea has joined #nixos
ramses_ has quit [Ping timeout: 260 seconds]
earldouglas has quit [Quit: leaving]
ikitat has quit [Ping timeout: 260 seconds]
p_l has quit []
edef is now known as Guest22643
_habnabit is now known as Guest67145
afics is now known as Guest71029
Shados is now known as Guest16682
ocharles is now known as Guest27988
ij is now known as Guest39430
bitonic is now known as Guest21076
flugsio is now known as Guest707
mkaito is now known as Guest73467
{^_^} is now known as Guest93247
sc_ is now known as Guest38570
benley is now known as Guest78700
Georgyo is now known as Guest7739
stqism is now known as Guest49421
shapr is now known as Guest63770
sjourdois is now known as Guest31311
savanni is now known as Guest96806
kaychaks is now known as Guest84464
joepie91 is now known as Guest25804
philipcristiano is now known as Guest93575
Unode is now known as Guest64915
swistak35 is now known as Guest50286
stew is now known as Guest87130
BombStrike is now known as Guest36547
vil is now known as Guest19749
spion is now known as Guest58558
balaji is now known as Guest51752
Sigma is now known as Guest6248
r0bby is now known as Guest42461
jbetz is now known as Guest7427
benny is now known as Guest63762
systmkor is now known as Guest81514
thor is now known as Guest68528
garbas is now known as Guest55520
tg is now known as Guest84083
xorkle is now known as Guest44137
p_l has joined #nixos
ldlework has quit [Changing host]
ldlework has joined #nixos
<Guest50191>
poor freenode
<ldlework>
lol
Guest22643 is now known as edef
Guest63770 is now known as shapr
ThatOtherGuy has quit [Quit: ZNC 1.6.5+deb1 - http://znc.in]
LogicAside has quit [Quit: ZNC 1.6.5+deb1 - http://znc.in]
Guest93575 is now known as philipcristiano
Guest25804 is now known as joepie91
<samueldr>
WELL
<adamt>
What happened? Not anetsplit, and didn't look like the usual "omg the matrix-irc bridge died... again"
ThatOtherGuy has joined #nixos
<samueldr>
no
<samueldr>
[15:07:31] [tomaw] [Global Notice] Hi all. We need to take services (NickServ, ChanServ and their friends) offline for a few minutes for maintenance. Downtime's expected to be less than 30 minutes.
<samueldr>
it was announced, then they uh, did something wrong
<samueldr>
[15:18:38] [tomaw] [Global Notice] NickServ, ChanServ and their friends are back up and running as normal now!
<samueldr>
[15:27:09] [mquin] :[Global Notice] Seems that was premature. There are ongoing issues with services that are being looked into - please bear with us
<samueldr>
(sorry for the low level spam)
<gchristensen>
Services broke, and then broke more
LogicAside has joined #nixos
<samueldr>
and a new notice just now :/
Guest7739 is now known as georgyo
georgyo has quit [Changing host]
georgyo has joined #nixos
georgyo has joined #nixos
<gchristensen>
all the renames to GuestNNNN were because of nick protection
etu has quit [Quit: WeeChat 2.1]
etu has joined #nixos
<samueldr>
exactly, looks like for some users 1) their client does not auto-login or 2) their session wasn't kept by the services
<joepie91>
samueldr: auto-login wouldn't have saved you in this instance
<joepie91>
at least not how clients normally implement it
<joepie91>
(namely, on connect only)
<joepie91>
"forcibly getting logged out due to a destructive mishap by network opers" is not an edge case that IRC client developers typically design their authentication mechanisms around :D
<srhb>
argh.
chessai has quit [Remote host closed the connection]
<gchristensen>
poor Guest93247
<samueldr>
uuuh, joepie91 autologin on the "This nickname is registered." message does :)
<samueldr>
(that's how my client handled it even!)
<gchristensen>
well lookee you, fancy!
* samueldr
doesn't actually know in the pile of hack where it was handled
reinzelmann has joined #nixos
<samueldr>
quassel connects through znc to the irc servers
reinzelmann has quit [Read error: Connection reset by peer]
<gchristensen>
samueldr: while true; do pm(nickserv, "identify <password>"); sleep 25; done
<adamt>
gchristensen: "identify <username> <password>" to account for getting a guest nick
<gchristensen>
oh sure
<samueldr>
now, don't connect on a hostile server with a rogue nickserv user
<tilpner>
gchristensen - Knowing your second-last IRC "bot", I'd believe you if you said that's your strategy c.c
<joepie91>
samueldr: most clients don't do that though :P
<adamt>
i really should get my client to send my password on connect as server passwd instead of msg'ing nickserv..
<joepie91>
samueldr: the common implementation is "if end of MOTD, then message nickserv"
<ldlework>
adamt: weechat makes that very easy
<adamt>
It's like mquin is following #nixos and repeating my suggestion as a notice! That big copycat :>
<adamt>
ldlework: Sure does. I just haven't come around to it.
<srhb>
I'm starting to feel my name isn't protected at all...
<gchristensen>
srhb: go enable nick protection
<samueldr>
now, I'm happy my bot was victim of a netsplit and used an unregistered derivative nick :)
makefu has quit [Quit: WeeChat 1.9.1]
<adamt>
srhb: You're still new on freenode, so can't blame you. :P
<gchristensen>
srhb: I didn't, and someone crashed my client, then took my nick and sent everybody spam as me
<adamt>
at least the new vim is called neovim, not neo..
liori has joined #nixos
<joepie91>
er, somewhere
<joepie91>
sec
<tilpner>
adamt - It's worse. Try searching for "matrix neo", and see how many GitHub results you get
srhb_ is now known as srhb
<adamt>
tilpner: I didn't even think about Mr. Anderson. :P
<__monty__>
I'm waiting on RIIR vim before I switch.
<srhb>
Have you guys ever tried to search for that thing called nix? Something thought it would be hilarious to name a whole suite of things something that's usually used for something related but entirely different.
Guest93247 has quit [Remote host closed the connection]
{^_^} has joined #nixos
ArdaXi1 has quit [Changing host]
ArdaXi1 has joined #nixos
ArdaXi1 has joined #nixos
<gchristensen>
!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.
civodul has joined #nixos
tazjin has quit []
tazjin has joined #nixos
<{^_^}>
[nixpkgs] @thpham opened pull request #41050 → fix: kubernetes addons (dashboard/dns) with proper imageDigest → https://git.io/vhIbk
<hodapp>
blaaargh, why does bitbake assume perl is in /usr/bin/perl?
<hodapp>
what are my options besides "run crap in Docker" and "make an ugly symlink"?
<inquisitiv3>
Thanks! But there can I find the link?
<symphorien>
what do you mean ?
<inquisitiv3>
Ooh, found it
<Ralith_>
Sonarpulse: yeah, on consideration I'm pretty sure clang's compiler-rt use is totally independent of C++ stdlib
<Sonarpulse>
Ralith_: absolutely
<Sonarpulse>
so early on I thought kindof we were punning on that
<inquisitiv3>
I miss remembered. I thought they where linked from the Nix's page, but they are linked from NixOS's page. :)
<Sonarpulse>
like like libgcc + libstdcxx or compiler-rt + libcxx
<Sonarpulse>
Ralith_: in reality both use libgcc, full stop
* Ralith_
nod
<Sonarpulse>
so both need compiler-rt *only* for santizers
<Sonarpulse>
of course, with it there, one could pass -rtlib=compiler-rt
<Sonarpulse>
but that's not the default
<Garry`>
I'm trying to write a simple haskell servant web API and I wanted to supplement the shell.nix that cabal2nix made with system deps such as pg_config. My question is - is that the "correct" way to think about developing with nix?
<Sonarpulse>
Ralith_: I don't have time for nixpkgs programming today
<srhb>
Garry`: You absolutely can.
<Ralith_>
and rtlib selection may not be important to expose in the way that stdlib selection is
<{^_^}>
[nixpkgs] @xeji pushed to master « perlPackages.DateManip: disable tests on i686 »: https://git.io/vhIAO
<srhb>
Garry`: I've seen (and authored) a few different servant skeleton nix infras. There's space for variety.
<Sonarpulse>
Ralith_: yeah
<Ralith_>
I can try to make a fix PR against staging, if that would help
<Sonarpulse>
so feel free to make the test conditional
<Sonarpulse>
yeah
<Sonarpulse>
beat me to it :)
<Ralith_>
er, you mean remove the test conditional?
<Sonarpulse>
yeah
<Ralith_>
right
<Sonarpulse>
and do the compiler-rt fixup in both wrappers
<Sonarpulse>
(-resource-dir=....)
* Ralith_
nod
<srhb>
Garry`: I prefer to keep my shell.nix very minimal, essentially just calling the default.nix for dependencies.
<srhb>
Garry`: But I suppose that depends on your project, too :)
<Ralith_>
my favorite thing about WFH is spinning up all these llvm/clang builds on a computer that's miles away instead of in front of me :D
<Garry`>
Ah that sounds probably more what I need to do. I'll look up the docs for calling one nix expression from another file. Thanks!
<Sonarpulse>
Ralith_: haha
vaninwagen has quit [Quit: WeeChat 2.1]
<Garry`>
srhb - "project" is probably a grand term. I'm just hacking together a DnD web service to kick the tyres on Servant and Nix
<srhb>
Garry`: Awesome. :)
<ldlework>
Dungeons and Dragons?!
<Garry`>
ldlework, yes
asuryawanshi has quit [Ping timeout: 252 seconds]
<infinisil>
ldlework: But it does that already?
daveo has quit [Remote host closed the connection]
<infinisil>
The config is just so stateful that I can't create a nix module for it
<ldlework>
infinisil: I'm saying different paths for read and write.
<ldlework>
So you can read from your home-manager produced read-only symlinks, and write to your git repo containing your nix content.
Garry` has quit [Quit: Thanks for the help folks, nice meeting you]
<ldlework>
Configuration wont be present if you restart weechat, of course, until you produce a new nix generation.
adamt has quit [Quit: WeeChat 2.0]
<ldlework>
I can't think of any other sensible way for programs with stateful configuration to work with things like Nix
<ldlework>
But I've only been thinking about it for 20 minutes so.
<ajs124>
Hey, I'm trying to cross-compile something for arm on nixos right now, but can't manage to get a arm-linux-gnueabihf-gcc, etc. into my environment. Any ideas how to do this?
<infinisil>
ldlework: But that means the settings you apply would not be read as you set them
atu has joined #nixos
atu has quit [Changing host]
atu has joined #nixos
atu is now known as adamt
<ldlework>
infinisil: I highly doubt that when you set a setting in weechat, it first write to a file then rereads the configuration
<ldlework>
in fact I know it does not do that
<infinisil>
ldlework: So you think weechat should only read the file once on startup and not ever again, only rely on the in-memory instance of the settings?
<ldlework>
I mean you could do /reload
<infinisil>
ldlework: There's a settings file for every plugin iirc
<ldlework>
and that would replace the in-memory settings from the current symlink content
<infinisil>
Hmm..
<ldlework>
this is a general problem for software that manages its own configuration state
<ldlework>
not just weechat
<ldlework>
in face of reproducable systems like Nix/Guix
<infinisil>
Yeah such a read-to-A, write-to-B might work, but I bet it's gonna be wonky, because nobody expects to read something different than they just wrote
<{^_^}>
[nixpkgs] @xeji pushed commit from @ThomasMader to release-18.03 « Merge pull request #40228 from ThomasMader/dlang-update (#41008) »: https://git.io/vhIxG
<ldlework>
infinisil: yes, but this is a real problem for any software that behaves this way for users of operating systems like NixOS
<ldlework>
there is going to be *something* unfamiliar with the solution whatever it is
<{^_^}>
[nixpkgs] @srhb closed pull request #41050 → kubernetes-addons: fix dashboard & dns with proper imageDigest → https://git.io/vhIbk
<infinisil>
Hmm.. What if..
rauno has joined #nixos
<infinisil>
NixOS had some stateful read-writable thing, maybe git, that records a state for each generation
<infinisil>
Activating a generating does a `git checkout`
<infinisil>
So you can do changes to whatever generation you're currently in
<infinisil>
It's writable. And you can move changes you do to the current generation to others, by just git cherry-pick, or git stash
<srhb>
No, just make more generations. :P
<srhb>
Generations are cheap.
<infinisil>
Not sure how that solves the problem
<ldlework>
Not sure how your solution solves the problem either.
<etu>
srhb: Unless you approach maxint ;)
<srhb>
Not sure it's a problem!
<ldlework>
The state that weechat needs to write isn't just some random state.
<ldlework>
Its the configuration for weechat itself.
<srhb>
etu: I think we need to optimize nix a bit for that to happen, ever :P
<ldlework>
Which you probably have in some dotfiles repo.
<infinisil>
ldlework: Yeah, but that can be recorded as a git submodule or so
<ldlework>
Weechat needs to save to your record-of-truth
<ldlework>
hrm, maybe
<infinisil>
But what if you check out generation 1 where your weechat config sucks
<infinisil>
So it read from gen 1, your config sucks, but you do one change, and your generation 100 should get overridden with the slightly-less-shittier config?
<sphalerite>
infinisil: what I was planning to do at some point is wrap nixos-rebuild so it automatically makes a commit on a separate branch in my config repo, and puts the generation number and nixpkgs rev in the commit message
<ldlework>
You lost me.
myshoe has quit [Remote host closed the connection]
<sphalerite>
oh right no that's orthogonal to what you're saying. Mostly.
<infinisil>
ldlework: The point of generations and immutability is that you can roll back to any previous one and get everything how it was at that point
<infinisil>
Which is the major point of immutability for nixos
<sphalerite>
infinisil: so what you're saying is like… zfs snapshot on rebuild? :p
<infinisil>
ldlework: With your solution (writing to the config directly), that would lead to weird behaviour when you check out older generations
vidbina has quit [Ping timeout: 240 seconds]
<infinisil>
sphalerite: Yeah, zfs might be better for this!
<ldlework>
What would be wierd about it?
shabius has quit [Quit: Leaving]
<infinisil>
sphalerite: And zfs clone on rollback (because you don't want to lose the old state but still be able to modify it)
<ldlework>
You'd check out the older generation, the symlink would contain whatever was in the config at that generation, and when you start weechat, it reads whatever is in the file.
<sphalerite>
yeah
<ldlework>
No magic, just exactly what's supposed to happen.
<infinisil>
ldlework: Yeah reading is not the problem
<ldlework>
infinisil: oh then you change something?
<infinisil>
ldlework: Writing is, because once you do a single config change, your latest actual config would get overridden
<ldlework>
I think weechat should write to your source git repo
<ldlework>
So if you switch to an old nix generation
<ldlework>
Nothing changed about your git repo
<ldlework>
If you make a change in weechat, save
<ldlework>
then in your git repo you'll see exactly what happened
<infinisil>
Hmm I guess it's not that terrible
<infinisil>
Yeah
<infinisil>
The idea of writing to one place but reading from another just sounds like it would cause a lot of problems down the line
<ldlework>
"Oh fuck, I saved while on an old nix generation and the diff want to change everything back to weechat config from ages ago"
ikitat has joined #nixos
<ldlework>
then you just don't merge that, and undo it
amir has quit [Ping timeout: 265 seconds]
<ldlework>
maybe even cherry pick the exact changes that you made live in weechat, into your HEAD config, discarding all the garbage in the diff that came from using an old nix generation
<ldlework>
then rebuild new generation
<ldlework>
voila weechat is running with your modern config and the new mutation, whatever it was
<infinisil>
Doing the generation checkouts with a git checkout and applying the diff to your actual config sounds like a much saner solution
<infinisil>
Then you have to deal with merge conflicts, which is how it should be
amir has joined #nixos
<ldlework>
Honestly
<ldlework>
If I could tell home-manager where on my disk my configuration git repo was
<ldlework>
Then I could just have home manager make ~/.weechat a symlink to the writable git repo
<ldlework>
and skip the whole part where we put ~/.weechat into a nix derrivation
<ldlework>
get me?
rihards has quit [Quit: rihards]
<infinisil>
Um, you can do that?
<ldlework>
Yeah, but what do you think about that?
<infinisil>
Just have `ln -s ~/actual/config/weechat ~/.weechat` in the activation phase
<ldlework>
yep
<infinisil>
That's just a symlink, no config saving going on
<infinisil>
your nix build will not contain the config, you can't roll back
<{^_^}>
→ 19f768a9 by @vbgl: ocamlPackages.earley_ocaml: init at 1.0.2
<{^_^}>
→ 8d1eddea by @srhb: Merge pull request #40884 from vbgl/ocaml-earley-ocaml
mightybyte has quit [Quit: leaving]
fragamus has joined #nixos
<ldlework>
infinisil: what do you mean
<infinisil>
ldlework: having a weechat config submodule, and including that in your system with "${./path/to/submodule}", which will put the full .git directory and all commits into every nixos-rebuild you're gonna run in the future
<infinisil>
But it means that you can check out older versions by nixos-rebuild --rollback
<infinisil>
I think
<elvishjerricco>
pikajude: Look at build logs and find error messages :P
<ldlework>
infinisil: I'm still a bit unclear on how to bootstrap a nixos system. Do you have a git repo with your configuration.nix and your home.nix and you write that to the partition before running nixos-install ?
<pikajude>
elvishjerricco: ok!
<clever>
ldlework: yeah
<ldlework>
Do you somehow invoke the home-manager build in your nixos-rebuild?
<clever>
ldlework: i dont use home-manager
<ldlework>
clever: how do you manage?
<ikitat>
What's a good workflow for fixing/testing a PR against nixpkgs-unstable? I've messed around with ~/.nix-defexpr and $NIX_PATH before but it was pretty confusing and long winded. Wondering how others go about it.
<elvishjerricco>
pikajude: If it helps, you can do `nix log /nix/store/...-failing-build.drv` to see the log of a build you've already tried
puercowork has joined #nixos
<clever>
ldlework: i just have nixos configure most things properly, system wide
<ldlework>
clever: but somethings must go into your home directory
<srhb>
ikitat: -f, -I and maybe just learning how to build directly in your checkout.
fragamus has quit [Client Quit]
<srhb>
ikitat: Like, nix-build . -A hello
<tilpner>
ldlework - weechat config doesn't have to go into your home though
<clever>
ldlework: it starts with an empty home
<ldlework>
clever: and you manage your home directory manually then?
<clever>
ldlework: yeah
<{^_^}>
[nixpkgs] @Mic92 pushed 2 commits to release-18.03: https://git.io/vhLeG
<{^_^}>
→ 48b3da99 by @tazjin: nixos/dd-agent: fix runtime errors by adding gohai to $PATH
<{^_^}>
→ 6e7d5cf6 by @tazjin: gohai: init at 2018-05-23
xorkle has joined #nixos
<ldlework>
infinisil: can you show me how you make home-manager happen on nixos-rebuild
<ldlework>
I don't exactly mind doing them separately but I'm curious.
<puercowork>
Hi, so I've read nix-pills but know I want to learn about the language specific 'helpers'(?) (ej. bundix) come with Nix. I'm having trouble googling documentation on them. Is there a somewhere where they are documented? I'm mostly interested in Ruby and Javascript.
shabius has joined #nixos
<ldlework>
infinisil: fascinating. does the home-manager switch happen each nixos-rebuild?
<infinisil>
ldlework: Yeah, it's a systemd service that gets run
pikajude has quit [Remote host closed the connection]
<Peaker>
I couldn't find this in the faq, so: Why does Nix use a weird language of its own? Why not a library for an existing language/ecosystem?
pikajude has joined #nixos
<Peaker>
(and such a weird one at that, the top imports section seems quite redundant?)
<srhb>
Peaker: The top imports section? Do you mean the argument set?
<puercowork>
infinisil: Thanks. I see there is a chapter on Ruby there.
<ldlework>
Peaker: the nix expression language is actually very cleverly and well-designed
<srhb>
Peaker: I think you'd probably need to read the paper to find a real answer :)
<Peaker>
srhb, perhaps ;) I don't understand the Nix language yet
<srhb>
I also don't find it very weird...
<ldlework>
you will realize that its design is absolutely perfect for describing a system configuration
<elvishjerricco>
Peaker: What other language has the level of purity, along with path literals and pure file IO operations Nix has?
<srhb>
Peaker: Then I think your question might be a bit premature. :D
<ldlework>
srhb: name another language like it
<ldlework>
nix expression language is very strange in that there are basically no other languages like it
<srhb>
ldlework: Haskell springs to mind.
<srhb>
ldlework: Sans types, sadly.
<ldlework>
Haskell can do things.
<elvishjerricco>
srhb: It'd be really hard to adapt haskell to be suitable for Nix
coot has quit [Quit: coot]
<ldlework>
nix is a language who's only function is to describe a data structure
<srhb>
elvishjerricco: How so?
<tertle||eltret>
it can? i thought it was just unnecessarily complicated for the sake of terseness
<ldlework>
because of what I just said
Notkea has quit [Remote host closed the connection]
<infinisil>
srhb: I can't see a way of making the module system work well in a typed fashion
<Peaker>
ldlework, why do I have to repeat all my dependency names on the top of my nix file? I guess that's the argument set?
<ldlework>
the syntax of nixlang is all about composing a merged data structure, which is then used by nix to do things
Notkea has joined #nixos
<ldlework>
nixlang doesn't do anything itself
<ldlework>
it only produces a data structure
<srhb>
Peaker: It's the inputs to your function. You've got to get the inputs from somewhere.
<elvishjerricco>
srhb: Well, being able to import other people's code relies on eval-time code importing
<srhb>
Peaker: Your package being "the body" of the function
<elvishjerricco>
Can't really do that in Haskell without some serious absurdities
<Peaker>
srhb, couldn't it infer the inputs?
<srhb>
elvishjerricco: This is true.
<etu>
Peaker: Also, remember nix is not new in itself. It's been around for 15 years. And I think the language is about as old. There wasn't the same hype back then to roll your own thing and such.
<ldlework>
The larger point is that in using Haskell, the syntax is not a DSL for describing the end result.
<srhb>
Peaker: Sure, and you can sort of do that, but that'd be quite implicit.
<__monty__>
ldlework: Dhall?
<ldlework>
You would need abstractions that build the data object
<Peaker>
srhb, explicit - since you explicitly refer to the input. Now it's more than explicit, it's verbose
<elvishjerricco>
srhb: The implicit translation between path literals, derivations, etc is quite important and Haskell wouldn't have that
<ldlework>
Rather than literalizing the data object partials
sbdchd has joined #nixos
chessai has quit [Remote host closed the connection]
<srhb>
Peaker: For instance, you could just require pkgs as the only item in the set. But that would give you worse errors.
<ldlework>
elvishjerricco: other good points
<ldlework>
__monty__: I'll take your word for it, but I think that makes my point haha :)
<elvishjerricco>
srhb: Types make nixpkgs-style code absurdly hard. This could probably be worked around, but it's hard for me to imagine a type-safe concept of `overlays`
<srhb>
elvishjerricco: Surely we could do interpolation in a number of ways that are not too inconvenient
<infinisil>
Peaker: It's like defining a haskell function `foo a b c` and using a b c within your function, just that nix can know what these argument names are and uses it to determine which dependencies to pass
<srhb>
I'm not talking about a verbatim translation here.
<ldlework>
More inconvinent than nixlang
<srhb>
I was mainly just thinking "lazy" and "pure"
<srhb>
It did not seem at all that weird to me from those perspectives.
<ldlework>
Yes, haskell and nixlang share those, but that's about all they share really
<elvishjerricco>
srhb: Of course not, but these do seem to be really important for the extensibility of Nix, and it's hard to imagine how to do that with Hsakell
<srhb>
Those are both a big deal to me and helped me immensely feel that the language was not that weird to get into
<infinisil>
But tbh, I'm pretty sure the argument list for packages at the top can be avoided, multiple ways in nix 2.0
<srhb>
Honestly most of the things you've mentioned now were curious implementation details to me for a long time
<ldlework>
they are certainly way to relate
jperras has quit [Ping timeout: 252 seconds]
<__monty__>
ldlework: Dhall has a dhall-to-nix compiler, hence why I suggested.
<srhb>
elvishjerricco: I do think extensibility is key, agreed.
<ldlework>
__monty__: neat
<srhb>
elvishjerricco: And that is definitely tricky.
<clever>
__monty__: link?
<elvishjerricco>
srhb: The dynamic importing thing is the main thing to me
<ldlework>
I think the fact that Nixlang is a syntactic DSL for merging structural partials can't be understated.
<srhb>
elvishjerricco: Can you elaborate on what you mean by dynamic importing?
<elvishjerricco>
I just can't figure a way to rely on a library at eval time without requiring a build system for your build system :P
<ldlework>
It is precisely the need of the package system.
<srhb>
Ah
<srhb>
No, indeed.
<srhb>
Even Nix sometimes falls short there.
<clever>
__monty__: that looks useful
<srhb>
cf. nix-in-nix...
<elvishjerricco>
IFD is good enough IMO, but yea it can be annoying
mkoenig has quit [Remote host closed the connection]
<srhb>
It's sloooow
<srhb>
It ruins Hydra.
<srhb>
:(
<srhb>
But OK, that's mainly Hydra's fault.
<infinisil>
srhb: What's so slow about it?
<elvishjerricco>
Why is it so slow?
<srhb>
I don't know. I wish it weren't.
<elvishjerricco>
I have noticed that the overhead in `nix-store -r` is non-negligible
<srhb>
Oh, really?
<elvishjerricco>
So that's some inherent overhead in IFD
<__monty__>
clever: Only reason I wouldn't use it is it'd be harder to ask for help here. Maybe the generated nix isn't too bad though.
sbdchd has quit [Ping timeout: 260 seconds]
<clever>
__monty__: ive had issues in the past, where i had to compile a whole haskell program, just to read 1 field in a dhall file, lol
<srhb>
elvishjerricco: Well, that's a promising lead at least.
<ldlework>
IFD?
<srhb>
import from derivation
<elvishjerricco>
srhb: How would you represent a dynamically sized package set, with concrete dependencies in Haskell?
<ldlework>
the fact that you can do imports = [ ./some-file ]; in { foo = bar }
<ldlework>
and the result will be the merged structure
<ldlework>
that's the sauce.
<ldlework>
there's no way to lexically do that kind of thing in haskell
<ldlework>
you're calling stuff
inquisitiv3 has quit [Ping timeout: 245 seconds]
<elvishjerricco>
ldlework: There's stuff you could do, but it wouldn't be as nice as it is in Nix
<srhb>
elvishjerricco: I don't know. I don't think I've ever taken the time to work out what the requirements are.
<ldlework>
elvishjerricco: and would be essentially magic at that point
<elvishjerricco>
srhb: I get the feeling everything would live in an ExceptT :P
<srhb>
elvishjerricco: That sounds quite probable.
<elvishjerricco>
At least evaluation would be way faster...
<elvishjerricco>
Barring long compile times
<ldlework>
heh
<srhb>
(Also, I didn't suggest this! I merely stated that my knowledge in Haskell really helped me get into Nix. :-))
<ldlework>
srhb: my lack of experience with functional languages including purity and laziness -fucked me hard- when I first saw Nix
<elvishjerricco>
srhb: Having Haskell instead of Nix for the language would be really nice. It's just really hard. I'd love to see the questions answered
<srhb>
I think one of the most defining things for me in Nix is how there's functions everywhere, serialized in nice, readable format in the tree that is easy for me to read (directory structure) and often represented the same way internally (mostly)
<srhb>
elvishjerricco: Agreed :)
<ldlework>
infinisil might remember the two weeks of me just asking the dumbest questions over and over trying to wrap my head around Nixlang
<elvishjerricco>
Oh and while we're complaining about languages: Nix's dynamic scoping is utterly insane
<ldlework>
the fact that things are not evaluated in lexical order completely infantilized me, engineering-wise
<elvishjerricco>
`with` keyword should die!
<ldlework>
dunno, with cleans up some expressions real nice
<ldlework>
I'm all about that DRYness
<clever>
elvishjerricco: how would you do: with pkgs; [ foo bar baz ]; then?
<clever>
elvishjerricco: inherit (pkgs) foo bar baz; doesnt work on a list
<Peaker>
How does nix guarantee that all dependencies are specified? Does it use chroot or such?
<srhb>
Trivially implemented with a fold though
<elvishjerricco>
clever: I'd probably prefix them all like `pkgs.foo`. But in my configuration.nix I use `builtins.attrValues { inherit (pkgs) ...; }`
<clever>
Peaker: the paths are hashes under /nix/store/, and if you dont ask for something, you dont get its hash
<clever>
Peaker: only if your very naughty and search /nix/store/*/include/ will you ever find something you didnt ask for
<Peaker>
clever, what prevents packages from installing stuff willy nilly in other places and then later reading other places?
<elvishjerricco>
My attrValues trick makes it clear exactly where each value is being taken from. I like it a lot actually
<Peaker>
(or just reading /etc or whatever exists in nix?)
<clever>
Peaker: and the builds are ran under a dedicated user like nixbld1, that has limited write access
<srhb>
elvishjerricco: Agreed. I should start being more fervent with that...
<srhb>
The worst part about with is how easy it is to reach for. :P
<clever>
Peaker: reading things like /usr/include (if it exists) and /etc are still an issue, but the nix sandbox can do that (it uses namespacing)
<elvishjerricco>
Right :P
<ldlework>
elvishjerricco: do you have a blog?
<ldlework>
we need more people writing about Nix
<clever>
Peaker: with the sandbox on, you cant even search /nix/store/*/include/
<elvishjerricco>
ldlework: I do but I rarely post there
<gchristensen>
agreed, ldlework
<Peaker>
clever, "the nix sandbox"? Is that a chroot jail?
<elvishjerricco>
Every moment I spend writing a blog is a moment I wish I was writing Nix / Haskell instead :P
<clever>
Peaker: its using mount, user, and network namespaces, which act mostly like containers
<elvishjerricco>
Which is faulty reasoning, but that's at least the reason I don't blog much
<clever>
Peaker: the network namespace also stops you from doing network access
<ldlework>
elvishjerricco: you might inspire exponentially more nix authorship than you can do yourself though
<elvishjerricco>
ldlework: I know. It's just not as exciting :P
<ldlework>
you are hinting at wisdom here that I'm tempted to ask you about, but it'll be a shame that only the people here will know it
<Peaker>
clever, interesting.. what happens if a build is interrupted (SIGINT) or otherwise dies? Do leftovers contaminate things or are they properly cleaned up? Can a "poisoned build" remain installed?
<clever>
Peaker: only if a build exits with code 0 will nix keep its results
<{^_^}>
[nixpkgs] @nyanloutre opened pull request #41057 → nixos/duplicati: add port and datafolder options → https://git.io/vhLJc
<clever>
Peaker: if it dies for any other reason, nix will delete all output it had created
<elvishjerricco>
I'm also a big proponent of Docs over Blogs. Every time I write a blog about teaching people something, I realize it should have been documentation in official locations instead
<ldlework>
In the Emacs world, there is this lady Sasha Chua who basically scowers the whole net once a week and compiles everything happening in the emacs sphere and sends out an email/blog post
<ldlework>
I'm sure people send her stuff too, to help out.
steell has joined #nixos
hiratara has quit [Ping timeout: 245 seconds]
<__monty__>
Killed RSS? OH, THE HUMANITY!
<capisce>
the death of rss has been greatly exaggerated
<Myrl-saki>
error: attribute 'libraryHaskellDepends' missing, at /home/myrl/Development/mysc/config.nix:51:35
<ldlework>
I'd put the number of things I'd like to subscribe to that have RSS ~30%
<Myrl-saki>
How do I override libraryHaskellDepends? I tried overrideCabal and overrideAttrs.
<clever>
Myrl-saki: can you gist the file?
<Myrl-saki>
and normal override.
<clever>
Myrl-saki: you want overrideCabal
<srhb>
overrideCabal will do it.
<Myrl-saki>
Huh, I'm stupid. Must have not saved the file.
<Ralith>
Sonarpulse: I'm having trouble reproducing a failure when compiler-rt is not provided to clang/libstdc++. What was the testcase that motivated the conditionalization in the first place?
<Ralith>
it's not obvious to me that configuration can't just use the same libs/headers the gcc does
<Sonarpulse>
Ralith: it cannot find the ubsan.x86_64.a
<Sonarpulse>
(or likewise for other sanitizer)
<ldlework>
Hmm, that planet page could use an aesthetic hand.
<Myrl-saki>
which gets considered as serious compiletime warning
<Myrl-saki>
I'm using stackage2nix
coot has joined #nixos
<Ralith>
Sonarpulse: same place gcc gets it?
<Myrl-saki>
Oh, there seems to be an override for it.
<Sonarpulse>
Ralith: a) clang says it only works with compiler-rt
<Sonarpulse>
b) it looks not on NIX_LDFLAGS
<Sonarpulse>
or the linker path in general
jtojnar has quit [Quit: jtojnar]
<kandinski>
I just got this error: "The option `system.nixos.stateVersion' defined in `/etc/nixos/configuration.nix' does not exist." when trying a `nixos-rebuild switch`. This is the offending line: 'system.nixos.stateVersion = "18.03"'. `nix-channel --list` does show nixos https://nixos.org/channels/nixos-18.03
<Ralith>
hmm
<Ralith>
Sonarpulse: looks like I've been running the test wrong, thanks for the sanity check
<kandinski>
What could be wrong?
<Sonarpulse>
it is instead looks on this resource path
<Sonarpulse>
very nasty stuff
jtojnar has joined #nixos
amir has quit [Ping timeout: 245 seconds]
Guest58558 is now known as spion
<Sonarpulse>
Ralith: it's like another "sysroot"
jperras has joined #nixos
<Sonarpulse>
where only this stuff and crt{begin,end}.a is found
spion is now known as Guest11810
<Ralith>
yeah, I get the idea, was just really confused by the results I thought I was observing
<Myrl-saki>
oh no
<Myrl-saki>
I just realized I'm using two package sets...
<infinisil>
It turns out with Nix 2.0 it's possible to implement callPackage that doesn't require the argument list at the top of the file
amir has joined #nixos
<Myrl-saki>
infinisil: What do you mean?
jperras has quit [Ping timeout: 240 seconds]
<ajs124>
Any ideas how to get arm-linux-gnueabihf-gcc, etc. into a nix environment or shell?
<infinisil>
Myrl-saki: Every package in nixpkgs is declared with an argument list like { stdenv, hello, libfoobar }: at the top
Ralith_ has quit [Ping timeout: 245 seconds]
<infinisil>
Myrl-saki: It's possible to just remove that argument list, adjust the callPackage implementation and it will work still
fragamus has joined #nixos
<infinisil>
So no more having to add `hello` to the argument list when you want to use the hello package in your build inputs
<clever>
infinisil: i believe scopedImport breaks caching in nix
<__monty__>
infinisil: Wait, this is even more magic? I already think the argument list is too much magic.
<sphalerite>
infinisil: scopedImport was already in 1.x
<clever>
infinisil: behind the scenes, import can cache the value that results from importing a file
<srhb>
__monty__: The argument is zero magic. callPackage is a tiny bit of magic :)
<clever>
infinisil: but scopedImport cant
<infinisil>
clever: Pssshht
<infinisil>
,magic = Magic is just science we don't understand yet
<{^_^}>
magic defined
<infinisil>
,magic __monty__
<{^_^}>
__monty__: Magic is just science we don't understand yet
<__monty__>
srhb: How is it zero magic? Just because you name an argument something it gets filled with the right value? It feels very much like J2EE dependency injection magic.
<Myrl-saki>
error: value is a function while a set was expected
<Myrl-saki>
??
<srhb>
__monty__: The argument set does nothing but require that the function be called with exactly that set of values.
Ralith_ has joined #nixos
<srhb>
__monty__: (That is, a set with those names defined)
<srhb>
__monty__: No more, no less, or you get an error.
<infinisil>
> builtins.functionArgs ({ foo, bar }: " __monty__ ")
<{^_^}>
{ bar = false; foo = false; }
<infinisil>
That's all magic there is ^^
<clever>
Myrl-saki: what is the type of ((import <nixpkgs> {}).callPackage ./pkgs/ghcjs {})
<ldlework>
One of my favorite things about Nixlang is how refactorable it is.
<ldlework>
It is kind of ridiculous actually.
<clever>
Myrl-saki: and what arguments does nixpkgs/pkgs/development/haskell-modules/hackage-packages.nix expect?
<Myrl-saki>
clever: Should be the same type as haskellPackages.
<Myrl-saki>
Oh yeah, I see now.
<sqzlh>
when building custom packages with fetchgit/fetchgitPrivate, is it possible to always follow the latest commit on a stable branch?
<Myrl-saki>
{ pkgs, stdenv, callPackage }:
<Myrl-saki>
self: {
logzet has quit [Remote host closed the connection]
<clever>
Myrl-saki: grep nixpkgs to see how hackage-packages.nix is meant to be loaded
<Myrl-saki>
Yeah, that's what I'm doing right now.
<__monty__>
Ah, thanks for the insight. Began to see the { } as syntax for function( ). Immediately makes more sense as a set "description"(no idea what to call it).
ikitat has quit [Ping timeout: 252 seconds]
<{^_^}>
[nixpkgs] @vaibhavsagar opened pull request #41060 → all-cabal-hashes: update Hackage snapshot to latest version → https://git.io/vhLkY
* infinisil
goes to sleep
<srhb>
__monty__: It's called an argument set. It is one argument that is a set.
<Myrl-saki>
clever: Just a guess, but this seems like some fixedpoint magic.
<Myrl-saki>
clever: The reason why I was able to guess close is because it literally just happened on my editor. Was patching some functions and foo:bar: turned blue.
<iqubic>
What?!?! Nix determines if it is a string or a function based on a single space???
<infinisil>
> let foo = "outer"; with { foo = "inner"; }; foo
<{^_^}>
error: syntax error, unexpected WITH, at (string):41:20
<infinisil>
> let foo = "outer"; in with { foo = "inner"; }; foo
<{^_^}>
"outer"
<infinisil>
WHY ^^
<clever>
infinisil: let has higher scope, so `with pkgs;` doesnt overwrite things on you
<Myrl-saki>
I call dibs on scoping.
<iqubic>
Scoping is weird.
<infinisil>
clever: Why though..
<clever>
other then `with lib;` i keep my with statements as narrow as possible
hiratara has joined #nixos
<infinisil>
I would not expect it to work like this
<clever>
foo = with pkgs; [ a b c ]; rather then with pkgs; { foo = [ a b c ];
<infinisil>
This totally ruins my nixbot
<infinisil>
> foo = "outer"
<{^_^}>
foo defined
<infinisil>
> with { foo = "inner; }; foo
<{^_^}>
error: syntax error, unexpected $end, expecting '"', at (string):42:15
<ma27>
does anybody know how long nixos 17.09 will be supported?
<Myrl-saki>
Ohhh
<infinisil>
> with { foo = "inner"; }; foo
<{^_^}>
"outer"
<Myrl-saki>
infinisil: That's way clearer.
<Myrl-saki>
clever: *
<Myrl-saki>
clever: So basically, it's something that makes sense for package management.
<clever>
Myrl-saki: it both makes it easyer to read, and also harder to parse wrong
<Myrl-saki>
with pkgs; let ... in ... also looks a bit weird.
<ldlework>
> with { foo = "outer"; }; let foo = "inner"; in foo
<{^_^}>
"inner"
<Myrl-saki>
And will that even parse correctly?
tzemanovic has joined #nixos
sbdchd has quit [Ping timeout: 245 seconds]
<Myrl-saki>
ugh, i'm stupid. >~<
<iqubic>
@undefine foo
<iqubic>
Wait, wrong bot.
<iqubic>
> foo =;
<{^_^}>
error: syntax error, unexpected ';', at (string):9:8
<Myrl-saki>
I literally just copied in haskell.packages.ghcjsHEAD to my own package set.
<Myrl-saki>
I should have done something like merge the 2 package sets together.
<Myrl-saki>
:(
<iqubic>
Well, how do we undefine foo?
<infinisil>
> :d foo
<{^_^}>
undefined foo
<infinisil>
:d might break the whole bot though, so don't try to use it too much :P
knupfer has quit [Ping timeout: 265 seconds]
<infinisil>
Need to fix it
furon has joined #nixos
simukis has quit [Ping timeout: 240 seconds]
<{^_^}>
[nixpkgs] @joachifm merged pull request #40919 → systemd-timesyncd.service: use the correct server list → https://git.io/vhfUW
<{^_^}>
[nixpkgs] @joachifm pushed commit from @tokudan to master « nixos/systemd-timesyncd: use the correct server list (#40919) »: https://git.io/vhLLa
Ariakenom has quit [Read error: Connection reset by peer]
<Myrl-saki>
Ughhh
martingale has quit [Read error: Connection reset by peer]
<{^_^}>
→ 402ab213 by @dezgeg: ntfs-3g: Split into multiple outputs
<{^_^}>
→ 0541762f by @dezgeg: efivar: Split into multiple outputs
<{^_^}>
→ 91117f0d by @dezgeg: nixos/installer: Drop dmraid
dtulig has joined #nixos
<Myrl-saki>
There are a lot of dependencies for a package that doesn't exist. Huh.
seafood has joined #nixos
jasongrossman has quit [Ping timeout: 245 seconds]
seafood has quit [Client Quit]
joehh has joined #nixos
<azazel>
uh, so what are the differences between nixos "profiles" and "overlays"? I've to backport a feature from unstable to 18.03 and it's composed by a configuration module and several packages... what should I do? what's the most "official" and up-to-date way to do it? Someone on github suggested doing a overlay
<azazel>
symphorien: thanks, I knew the first but not the second...
drakonis has joined #nixos
Fare has quit [Ping timeout: 260 seconds]
<Myrl-saki>
clever: Ping.
<clever>
Myrl-saki: pong
<Myrl-saki>
clever: If I have 2 functions that are called by callPackage
<Myrl-saki>
...I'm stupid.
<Myrl-saki>
I was going to ask how to merge them.
<Myrl-saki>
All that I now know is I have no idea.
<Myrl-saki>
Ugh. :/
bemeurer has joined #nixos
<Myrl-saki>
Apparently, there's some magic that makes head_stage2.nix propagate to the haskell.compiler.ghcjsHEAD.packages, but I have no idea what the magic is.
<bemeurer>
Hey there
<Myrl-saki>
How should I do that?
<Myrl-saki>
Is there like some why-depends, but for filse
<bemeurer>
Could anyone help me out, I just set up nixos on a server, and I'm trying to install cuda
<bemeurer>
but when I do nix-env -i cuda
<Myrl-saki>
I guess "error" is, in a way?
<clever>
Myrl-saki: thats one way
<bemeurer>
I get nix-env -i cuda
TonyTheL1on has joined #nixos
<bemeurer>
error: selector 'cuda' matches no derivation
<clever>
> cuda
<{^_^}>
undefined variable 'cuda' at (string):41:1
<Myrl-saki>
What's the error keyword?
<clever>
> throw "custom error"
<{^_^}>
custom error
<Myrl-saki>
Thanks
<clever>
infinisil: it may need to render errors better
<ldlework>
Let's say I have an expression in a foo.nix that I am going to add to imports = []; Is there a way to do that while overriding some parts of the module?
<Myrl-saki>
Wtf. It's simple?
drewr has quit [Read error: Connection reset by peer]
<infinisil>
clever: totally
<clever>
bemeurer: i think you want nix-env -iA nixos.cudatoolkit
<Myrl-saki>
Hmm
TonyTheLion has quit [Ping timeout: 268 seconds]
<infinisil>
> abort "foobar"
<Myrl-saki>
I'm wrong. I'm not getting the stack trace I expected.
<{^_^}>
evaluation aborted with the following error message: 'foobar'
<Myrl-saki>
I want to know why haskell.packages.ghcjsHEAD.foo is in foo.
<bemeurer>
clever: Hmm, that just gives me an empty output and does nothing
<Myrl-saki>
So the very top of the stack-trace should be all-packages.nix.
drewr has joined #nixos
<clever>
bemeurer: try adding -v
nur0n0 has joined #nixos
<infinisil>
Hahaha, it's always funny when people in ##linux have problems that are completely solved with NixOS xD