<ivan>
ottidmes: thanks, that's much shorter than the PR I applied
bgamari has joined #nixos
<ottidmes>
samueldr: some of the stuff I have that others might want too, is intermixed with my custom lib and custom pkgs, but I will probably at some point see if I can extract them to make them PR ready
mbrgm has quit [Remote host closed the connection]
<Widdershin>
It's a personal overlay I've been using
<Widdershin>
Based around LnL's overlay
<clever>
oh, misread that, its -v, not --show-trace
<clever>
and this error cant --show-trace anyways
<Widdershin>
ah yup, I can rerun with different flags if needed
<clever>
Widdershin: try changing line 1 of wabt.nix to { pkgs ? import <nixpkgs> { config = {}; overlays = []; } }:
doyougnu has joined #nixos
<Widdershin>
clever: same error
<Widdershin>
fwiw this works on linux with a similar overlay in place
<clever>
Widdershin: any changes with --show-trace ?
hellrazo1 has joined #nixos
<Widdershin>
clever: prints this "error: while evaluating anonymous function at /Users/nickjohnstone/Projects/forest-compiler/nix/wabt.nix:1:1, called from undefined position:"
<Widdershin>
followed by "i686 Linux package set can only be used with the x86 family."
<clever>
Widdershin: oh, line 5, your doing self.stdenv, so it has to eval "self"
<clever>
> self.meta.description
<{^_^}>
"A prototype-based dynamic object-oriented programming language, environment, and virtual machine"
<clever>
you want just stdenv
<Widdershin>
aha!
<Widdershin>
That's definitely made a difference, let's see if it manages to build
hellrazor has quit [Ping timeout: 258 seconds]
<Widdershin>
Interesting that it works on linux, guess it can eval self without too much difficulty
<clever>
it depends on the version of nixpkgs
<Widdershin>
clever: I don't really understand "self" and why I need to use it in overlays but not in standalone derivations, is there somewhere I can read about what the deal is there?
<clever>
error: Package ‘self-4.5.0’ in /nix/store/qgimqkw4dcza4zddkmbfhmgg6ca8inz8-nixos-19.03pre165037.eebd1a92637/nixos/pkgs/development/interpreters/self/default.nix:37 is marked as broken, refusing to evaluate.
<clever>
on my machine, its flagged as broken
<Widdershin>
oh I hadn't realised self was a package
<clever>
Widdershin: in the overlay, self is an argument to the function on line 1
<clever>
an overlay accepts 2 arguments, normally called self and super
<clever>
self is the final pkgs, after applying all overlays
<clever>
super is all overlays before the current one
<Widdershin>
ahhhh that makes sense, thank you!
<Widdershin>
okay sweet that's resolved my issue, now I have hackage certificate issues, but that's not a nix problem anymore
<Widdershin>
thank you for your help clever :)
<Widdershin>
How do I do the thing where I give you a point? was it
<Widdershin>
+1 clever
<clever>
its clever++
<{^_^}>
clever's karma got decreased to 68
<Widdershin>
clever++
<{^_^}>
clever's karma got increased to 69
<clever>
and now its right back to where it was, lol
<Widdershin>
lol
<Widdershin>
clever++
<{^_^}>
clever's karma got increased to 70
<Widdershin>
There ya go!
<clever>
and its no longer a NSFW number, lol
<Widdershin>
Just got to keep going until you get an illegal number ;)
<{^_^}>
[nixpkgs] @ingenieroariel opened pull request #54140 → Added ory hydra, keto and oathkeeper → https://git.io/fh8Ug
ingenieroariel_ has joined #nixos
protocol has joined #nixos
hamishmack has joined #nixos
jasongrossman has quit [Remote host closed the connection]
jasongrossman has joined #nixos
<{^_^}>
[nixpkgs] @acowley opened pull request #54141 → qtxmlpatterns: fix dependency with qtdeclarative → https://git.io/fh8U7
<ingenieroariel_>
I created a PR with 3 packages today (related), hopefully it is not agains etiquette to submit more than one at the same time https://github.com/NixOS/nixpkgs/pull/54140
<N0elkwan>
And you put that in a folder of your choosing or /nix/store?
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
<infinisil>
N0elkwan: With these I can just call nix-shell in the directory and it will set up a ghc/cabal with all the deps i need to compile it, then cabal build/repl will work no problem
Supersonic112 is now known as Supersonic
<infinisil>
N0elkwan: In the project directory
<jasongrossman>
ottidmes: Yes. Thank you.
<jasongrossman>
I'm about to have another go at exwm. Wish me luck.
<infinisil>
N0elkwan: If you don't have any special needs, a `nix-shell -p ghc -p cabal` will even do without a nix file
<clever>
N0elkwan: or, nix-shell -E '((import <nixpkgs>{}).haskellPackages.callCabal2nix "foo" ./. {}).env' to load all of the deps for foo.cabal
cyounkins has joined #nixos
<clever>
then `runhasekell Setup.hs configure ; runhaskell Setup.hs build`
<N0elkwan>
Ohh thanks infinisil
<N0elkwan>
iqubic and siraben as well
<iqubic>
I didn't actually do anything.
snajpa has joined #nixos
MP2E has joined #nixos
tbenst_ has joined #nixos
endformationage has quit [Ping timeout: 245 seconds]
<evanrelf>
Hi, I was wondering if someone could help me? I think I broke NixOS channels.
<evanrelf>
I don't know why -- I ran `nix-channel --update` and `sudo nixos-rebuild switch --upgrade` and now I'm getting errors with `nix-env` and `nixos-rebuild` so I can't install or build anything.
nDuff has joined #nixos
<clever>
evanrelf: what errors are you getting?
<clever>
evanrelf: also, `sudo nixos-rebuild switch --upgrade` updates the channels for you
<jasongrossman>
evanrelf: And have you tried rebooting? Depends on what's in your configuration, but sometimes rebooting is necessary after a switch.
<evanrelf>
I haven't tried rebooting but I will in a sec
<wedens>
N0elkwan: `nix-shell -p nodejs` will drop you into shell with nodejs
<wedens>
`nix-shell -p nodejs nodePackages.yarn` if you want to also use some node packages
<N0elkwan>
wedens: how would i go about installing and configuring it?
<wedens>
N0elkwan: good practice is to have per-project configuration . you'll typically have `shell.nix` file in the project that lists required packages (both system and language-sope
<N0elkwan>
With nixOs, i only have commandline, how do you guys check batterypower, wifi, and other command utilities
rauno has quit [Read error: Connection reset by peer]
shabius_ has joined #nixos
<lassulus>
you can install a desktop-environment like kde/gnome/xfce if you are used to those. there are also cli tools to check stuff, for power: acpi, for wifi: iwconfig
<{^_^}>
[nixpkgs] @fpletz pushed commit from @r-ryantm to master « oidentd: 2.3.1 -> 2.3.2 »: https://git.io/fh8cg
<wedens>
etu: do you know if NM allows configuring split-horizon dns? (different dns servers for local network and outside world). I had such configuration on Arch using dnsmasq/openvpn/netctl and some scripts executed on vpn up/down
<rauno>
thx, didnt think it would accept anything else than nix object
dermetfan has joined #nixos
reinhardt has joined #nixos
<infinisil>
It does only accept a nix value though?
<true_bunta>
Pleas. Help me.
<true_bunta>
I have ubuntu 18.04.1 and install nix from command "curl https://nixos.org/nix/install | sh". Then I try run apllication. nix-shell --run "cargo run --release -- --chain ./robonomics.json"
<true_bunta>
error: while evaluating the attribute 'buildInputs' of the derivation 'substrate-nix-shell' at /nix/store/ijp674q24cc4wabwpycbfxmqs7w2dzh0-nixpkgs-19.03pre166509.d5d5453684b/nixpkgs/pkgs/stdenv/generic/make-derivation.nix:185:11:
brejoc has joined #nixos
brejoc has quit [Client Quit]
<infinisil>
true_bunta: I'm kinda out of time right now, but to help troubleshooting please put the output of `nix-info -m`, the full log, and what your nix files contain into a paste site
<infinisil>
N0elkwan: Um, no? Proxies are orthogonal to wifi
hedning has quit [Quit: hedning]
<q6AA4FD>
is the correct syntax to install a package with a specific option/argument -a option setting? i'm doing that atm, and it's not working
hedning has joined #nixos
johanot has joined #nixos
Makaveli has joined #nixos
winem_ has joined #nixos
<N0elkwan>
infinisil: okay thanks
Makaveli is now known as Guest41124
ddellaco_ has quit [Remote host closed the connection]
<wedens>
q6AA4FD: I have to deal with sending/reading html emails @work, unfortunately :( I do have plans to configure mu4e in emacs for personal use, though
Makaveli7 has quit [Ping timeout: 252 seconds]
<q6AA4FD>
notmuch works with emacs, which works with html! if you're referring to the @work thing, then it's true that's a problem.
Guest41124 has quit [Client Quit]
<q6AA4FD>
cause notmuch doesn't play nice with multiple imap endpoints. a kind of stupid workaround is working off of a VPS with NFS, but that's kind of gross i think
<teto2>
wedens: astroid. The config can be generated via home-manager
<teto2>
wedens: you have to use an external editor
<q6AA4FD>
ohh, is the problem no WSIWYG editing for html?
<infinisil>
q6AA4FD: For your question earlier..
<infinisil>
,dnw q6AA4FD
<{^_^}>
q6AA4FD: "Does not work" isn't very helpful: What doesn't work? What's the error?
johanot has quit [Quit: WeeChat 2.2]
<q6AA4FD>
infinisil: you're right, but i couldn't really describe it much better. maybe a better way of saying it would be "it still installed, but clearly ignored the argument, which was not ignored when i wrote an override with the argument"
<wedens>
q6AA4FD: yeah. it's one of the problems. but i don't need like full-blown wysiwyg editor. even org-mode or markdown to html converter will suffice as long as it can do basic formatting and inline images
johanot has joined #nixos
gagbo has joined #nixos
<infinisil>
q6AA4FD: Again, you did't even say what command you ran or what the error was..
<{^_^}>
[nixos-weekly] @domenkozar pushed 2 commits to master: https://git.io/fh8B8
<Taneb>
Is there an example of using wrapProgram with trivial-builders.nix writeScript etc?
<rauno>
is there a option to make /etc/hosts writable by users ?
Makaveli7 has quit [Ping timeout: 258 seconds]
<{^_^}>
[nixos-weekly] @garbas pushed commit from NixOS Weekly Robot to gh-pages « Preview of '99f4e0791954fef334f63197e4ed5e246d821136' commit built by Travis-CI \#480783278 »: https://git.io/fh8B0
elibrokeit has quit [Read error: Connection reset by peer]
<{^_^}>
[nixos-weekly] @domenkozar pushed to master « Call for Content: 2019/02 »: https://git.io/fh8RO
<{^_^}>
[nixos-weekly] @domenkozar opened pull request #75 → Call for Content: 2019/02 → https://git.io/fh8R3
Guest78535 has quit [Ping timeout: 250 seconds]
<{^_^}>
[nixos-weekly] @garbas pushed commit from NixOS Weekly Robot to gh-pages « Release of (commit '7aece5ac9fba2f6cfc8acc51ab027bf6ee882cf3') built by Travis-CI \#480787378 »: https://git.io/fh8Rc
<srhb>
fwiw the "incremental builds" bait got me instantly :P
elibrokeit has joined #nixos
<goibhniu>
Lots of exciting news! Thanks to the contributors! <3
<wedens>
speaking of incremental builds, is snack being developed or is it abandoned?
<srhb>
wedens: fwiw the time since last commit on github has had these gaps a few times, but I haven't heard anything one way or the other. Last I heard it was pretty slow, but impressive none the less.
__monty__ has joined #nixos
<srhb>
I still wish for a more general approach to incremental builds in Nix.
mekeor has joined #nixos
jmgai has joined #nixos
<wedens>
it'll require intensional store being implemented afaik
ubert has joined #nixos
<mekeor>
hello. i'm trying to mount a device. i get "unknown filesystem type 'exfat'". i installed exfat-nofuse and exfat-utils but i still get the error. do i have to change my system config to make it work? or do i have to reboot?
<rauno>
tilpner, hum, it requires to use networkmanager and dnsmasq
<mekeor>
infinisil: i get this error: "Package ‘exfat-nofuse-2018-04-16-4.18.17’ in /nix/store/…-nixos-18.09/nixos/pkgs/os-specific/linux/exfat/default.nix:31 is marked as broken, refusing to evaluate." :(
jasongrossman has joined #nixos
<mekeor>
infinisil: i guess it's because i'm using 'kernelPackages = pkgs.linuxPackages_latest'
<infinisil>
Ah darn
sinner has joined #nixos
sinner is now known as Guest90273
<infinisil>
mekeor: what's your nixpkgs version? nix-info prints it
hphs^ has joined #nixos
<tilpner>
rauno: Correct. You can also try copying /etc/static/hosts to /etc/hosts and altering permissions, but that's a terrible way to do it
<mekeor>
infinisil: i might also simply not use latest linux kernel. i don't have any specific reason to do so.
<tilpner>
rauno: I suppose you could implement that yourself, using a systemd service (or during activation) that combines some user-writeable directory into /etc/hosts. An open question would be how a user would re-trigger it
<mekeor>
infinisil: i rebuild my system config without latest linux kernel now. it worked fine. i could reboot into it now. :)
<mekeor>
infinisil: okay, i'm gonna reboot now. or do you have a last comment? :D
* mekeor
is rebooting
mekeor has quit [Quit: digital revolution = cryptoanarchism + cybercommunism]
<{^_^}>
[nixpkgs] @etu opened pull request #54171 → phpPackages.phpstan: init at 0.11 → https://git.io/fh86e
Guanin has quit [Ping timeout: 252 seconds]
penguintamer has joined #nixos
jmgai has quit [Ping timeout: 244 seconds]
bag_ has joined #nixos
bag_ is now known as nobody96
<nobody96>
Hey there. I don't know if this is the right place to ask but I have an issue with my nixos installation that I cannot solve. I have been trying for over a week now but I cannot get rid of the massive input delay my nixos desktop has.
<nobody96>
While typing it feels like I am on a remote machine with a pretty poor connection
<nobody96>
but also videos played with mpv are stuttering
fusion809 has joined #nixos
<tilpner>
Typing into what?
<nobody96>
terminal, emacs, firefox, ...
<nobody96>
everything on X basically
<tilpner>
Have you tried booting an ubuntu live stick, to verify the problem is with your nixos installation?
<nobody96>
I have my old arch installation still on the same machine
Guanin_ has quit [Ping timeout: 268 seconds]
<tilpner>
And everything works fine there?
dermetfan has joined #nixos
<nobody96>
yes
<nobody96>
the problem is, that it is basically the same setup
<tilpner>
Huh. What window manager/desktop environment are you using?
<nobody96>
but seriously, thank you... this was driving me crazy
<nobody96>
and now its just gone and was just one simple option...
<jasongrossman>
tilpner: Do you know why it's not the default?!
<nobody96>
no I just have to read up what this option does
<tilpner>
It only passes a flag to awesome. I think argb only causes problems with some setups (especially without compositors?), so I didn't want to take transparency away from people who want that
<tilpner>
But it's been a while since I asked #awesome about that
<jasongrossman>
tilpner: Ah, right. The lengths people go to to have transparency.
laas has joined #nixos
laas has quit [Ping timeout: 240 seconds]
<ivan>
how do I get the kernel modules I need for `initrd.availableKernelModules` if I'm installing without nixos-install?
<superherointj>
Hello. I'd considering trying NixOS, but before doing so I'd like to confirm what I am going to lose by switching to it. Today I use Ubuntu and I've got Steam working (with Dota 2) and Spotify, and VSCode, and with brazillian banks (requires a program called warsar from GAS Tecnologia). Is there something guaranteed to not to work in NixOS?
<symphorien>
you may have to package warsar yourself
<etu>
The rest is in nixpkgs
<symphorien>
if it is a java application, the it may be easy, if it is a binary, well, it depends, etc.
<Synthetica>
I can confirm Steam, Spotify, and VSCode working absolutely fine
juliendehos has joined #nixos
<superherointj>
My real goal is to keep my whole system in a config file stored in a remote GIT repository and be able to recover it.
<srhb>
superherointj: That is one of the NixOS superpowers. :-)
<etu>
superherointj: Many of us does that :)
<etu>
superherointj: And for packaging, there's probably people here who can give you pointers to help you out with your warsar thingy :-)
<superherointj>
Thanks
<jasongrossman>
reboot
<jasongrossman>
Whoops! Sorry. Do NOT reboot this channel.
<srhb>
jasongrossman: You're not my mom.
<srhb>
:-)
<superherointj>
My current plan is to install NixOS on VirtualBox, and configure my machine/OS in full there, then I'll format my HD & install NixOS and load that configuration into it. So I don't get much downtime.
<jasongrossman>
LOL
<superherointj>
I probably should test it on VirtualBox before!
<srhb>
superherointj: Just take note that hardware and fs related config will probably be unique from the vbox one. :)
<srhb>
superherointj: Should be mostly obvious.
<superherointj>
Right.
silver has joined #nixos
reinhardt has quit [Ping timeout: 272 seconds]
jasongrossman has quit [Ping timeout: 258 seconds]
ar1a has joined #nixos
acarrico has joined #nixos
<ar1a>
hi, i just installed nixos onto my laptop but unfortunately my wireless card isn't showing up in "ip a". in my previous arch installation the drivers came with the kernel, can someone help me?
<ejpcmac>
Hi! What should I do to request a review and merge on a PR for a package which has no maintainers? I opened one 10 days ago just to fix the icon for `yubioath-desktop`, but there is no activity since.
<ar1a>
kernel on laptop is 4.14.93, on my other arch computer its 4.20.1
<ar1a>
so if i add it to systemPackages should i uninstall with nix-env to move them to the global namespace?
<etu>
Yep
<nakkle>
I have this project where I always get the "warning: dumping very large path (>256 MiB);" message when doing `nix-build`, which freezes my system for a few seconds at some point. Can I influence this kind of memory consumption in some way?
<ar1a>
is it normal to configuration manage configuration.nix with like... git?
<ar1a>
is there a way to search nixpkgs for a file? for example, i want to know what package provides "notify-send", cos i want to install it
<srhb>
ar1a: check out nix-index and nix-locate
<srhb>
,locate notify-send
<{^_^}>
Found in packages: cheat, libnotify
<__monty__>
What is this cheat package? Seems to contain everything.
ub has joined #nixos
<srhb>
__monty__: Probably a bot specific thing that ought to be filtered out.
<dhess>
ivan: I've been deploying a Hydra machine with a nixpkgs-unstable-based NixOps deployments for more than a year. I have an occasional issue getting it to build, but it's pretty rare.
<srhb>
__monty__: Oh, no, that one is actually real..
<srhb>
(texlive.combined.scheme-basic will probably do you)
<__monty__>
srhb: Is cheat something like bropages?
hedning has quit [Quit: hedning]
<srhb>
__monty__: It would appear related.
nDuff has joined #nixos
<dhess>
ivan: yeah, looks like the nix change from 2.1.3 to 2.2 in nixpkgs (from 6 days ago) is the cause here. Thanks!
<ar1a>
so i have a package i want to install but at the top of the .nix file in nixpkgs i have to set one of the setting ? false to true. how can i do that locally?
<{^_^}>
Found in packages: psmisc, busybox, killall, netbeans, netbeans, netbeans, netbeans, netbeans, netbeans, netbeans, netbeans, netbeans, netbeans, netbeans, playonlinux, bashCompletion
<etu>
netbeans :D
<ar1a>
hm, strange. i installed killall but its not killing the process
<ar1a>
installed the killall package, ran "killall polybar" and it couldn't find any of the processes, yet theyre all running under the same user, and a "ps auxww | rg polybar" finds them all running from /run/current-system/sw/bin
endformationage has joined #nixos
<tilpner>
pkill seems to have fewer surprises
jacereda has joined #nixos
<ar1a>
also im using a custom zsh config but it seems nix is chucking the current directory on the right side of my shell. how can i turn that off?
mkoenig_ has quit [Remote host closed the connection]
<dhess>
should overrideAttrs work with `name` and `sha256` ?
<gchristensen>
usually you don't override a sha256, but instead you usually overrideAttr src
ubert has joined #nixos
<dhess>
gchristensen: oh right
ThatDocsLady has joined #nixos
mkoenig has joined #nixos
ub has quit [Ping timeout: 246 seconds]
<dhess>
hmm that still doesn't seem to work
<gchristensen>
what're you trying to do?
<tilpner>
dhess: For e.g. fetchFromGitHub you'd use .override
<gchristensen>
eh?
<andi->
sounds wrong
<andi->
unless you want to fiddle with how fetchFromGitHub works
<tilpner>
Hmm, I didn't chec if it's made overrideable
<gchristensen>
you'd need to construct a whole new src
<tilpner>
Maybe it should be override-able
<dhess>
trying to get Hydra to build on nixpkgs master. Since the nix 2.1.3->2.2 upgrade, it doesn't.
boredom101 has joined #nixos
<dhess>
so I'm just trying to nixStable.overrideAttrs
<dhess>
to go back to the 2.1.3 version
<gchristensen>
tilpner: if you do pkgs.hello.src.overrideAttrs .... you'd get back an overridden source derivation, not hello with an overridden source
<dhess>
oh I need to nixStable.src.overrideAttrs?
<tilpner>
gchristensen: No, I was suggesting to use hello.overrideAttrs (old: { src = old.src.override { rev = ...; sha256 = ...; }; })
Makaveli7 has joined #nixos
<dhess>
yeah let me try that
<tilpner>
gchristensen: But that doesn't work because someone forgot/decided against wrapping it in makeOverridable
<dhess>
looks like Hydra is still trying to build against -2.2
<dhess>
oh I'm probably building Hydra for another machine (for hydra-eval stuff)
<etu>
Synthetica++
<{^_^}>
Synthetica's karma got increased to 3
superherointj has quit [Quit: Leaving]
hphs^ has quit [Read error: Connection reset by peer]
hphs^ has joined #nixos
<laas>
I'm new to Nix, is there any such thing as a per-user configuration.nix file?
<tilpner>
,declarative laas
<{^_^}>
laas: There are multiple ways of managing declarative profiles. 1) Attrset, compatible with imperative use of nix-env https://git.io/fAQHW ; 2) buildEnv, providing more control over the paths that are linked into the profile https://git.io/fp0aU ; 3) home-manager, providing nixos-like config for your ~ https://github.com/rycee/home-manager
<teozkr>
but obviously this falls down completely inside the Nix build sandbox, where `/var` doesn't exist at all and the build user lacks permission to create it
<symphorien>
teozkr: you must create a dir (for example /tmp/foo), for each dir in /, create an empty dir of the same name in /tmp/foo and then bind mount /bar on
<symphorien>
/tmp/foo/bar, and then chroot to /tmp/foo
<symphorien>
this is what nix-user-chroot
<symphorien>
does
<teozkr>
oh, good point
<teozkr>
but holy crap heh, this is just layering hacks on hacks
<teozkr>
thanks
<symphorien>
this will prevent you from using user namespaces inside the chroot, because chroots are insecure
<symphorien>
so the better solution is to use pivot_root
knupfer has joined #nixos
<symphorien>
but then you have to write a real c executable
detran has quit [Remote host closed the connection]
<teozkr>
is xdg-open available from your terminal?
hyper_ch2 has quit [Ping timeout: 256 seconds]
<teozkr>
in that case, try starting termite from inside that terminal and try clicking a link
andi- has quit [Excess Flood]
<laas>
thanks
<laas>
oh running it from my terminal also shows an error message
<laas>
I should have thought of doing that lol
<laas>
kind of related: is there any way to get firefox developer edition on nix?
<laas>
I only see normal firefox available
andi- has joined #nixos
<pbb>
I'm a bit confused about the description of the `systemd.services.<name>.wantedBy` option. Do I have to set it to `[ "multi-user.target ]` to make my service start at boot?
<ottidmes>
how is --arg and --argstr supposed to work in `nix eval`, I did some experiments, but it seems to just ignore my --arg
<srhb>
ar1a: Currently, as far as I can see, no channel contains it, so you'd essentially have to import a master nixpkgs, or override the definition of discord locally.
<srhb>
ar1a: Synthetica gave you a link to a way to get nixpkgs at an arbitrary revision available in your config :)
nDuff has joined #nixos
<Myrl-saki>
iqubic: If you didn't change anything on your Bash, that should be the normal behavior.
<ar1a>
hm, so how long would it be before the channel is updated, only a few days?
jmgai has joined #nixos
<srhb>
ar1a: 18.09 (stable) is usually very fast because of fewer failures and fewer mass rebuilds.
<srhb>
Meaning, within a day usually.
<ar1a>
ok, i can wait that long. i dont really use my laptop anyways
sanscoeur has quit [Remote host closed the connection]
Xyliton has joined #nixos
<Xyliton>
Greetings! I just tried to bump discord to 0.0.8 manually because the package didn't update yet and I got it to build but when running the binary it tells me that libgtk3 is missing.
<samueldr>
weird, if the packge is installed in the system this should be sufficient
<samueldr>
ah
<samueldr>
are you importing the repo?
<Xyliton>
ye
<samueldr>
like import ./my/github/checkout/nixpkgs {}
<Xyliton>
ah, no
<samueldr>
how?
<Xyliton>
I don't have clone of nixpkgs
<Xyliton>
I downloaded the .nix file, slapped a `with import <nixpkgs> {};` at the top (commented out the function part) and imported that file in my system packages
<samueldr>
ah right
<{^_^}>
[nixpkgs] @vanzef opened pull request #54194 → emacsPackagesNg.racer-mode: fix default value for RUST_SRC_PATH → https://git.io/fh4UM
<Xyliton>
I "fixed" it by removing the license from the package's meta
<samueldr>
then that `import <nixpkgs> {}` imports it without the `nixpkgs.config`
<Xyliton>
ohh, the package itself will complain about a bad license
<samueldr>
you could have added { allowUnfree = true; } to the parameter to nixpkgs
<samueldr>
not really, it's kind of a combination of *that* nixpkgs' config
<Xyliton>
I guess removing the unfree license until it is in available on unstable nixos should be fine. Its not like I care about license stuff that much anyway
<samueldr>
right, it's limited to your system, so it doesn't really matter
<samueldr>
but that's the explanation to what you're experiencing
udi has joined #nixos
cinimod has joined #nixos
<Xyliton>
Yea, thanks! I'll keep that in mind the next time I run into an unfree error
<cinimod>
I am getting error: cannot connect to daemon at '/nix/var/nix/daemon-socket/socket': Connection refused
<cinimod>
when I try to run nix-env -i
Xyliton has quit [Quit: Lost terminal]
ThatDocsLady has quit [Ping timeout: 240 seconds]
jabranham has quit [Quit: ERC (IRC client for Emacs 27.0.50)]
vbernat has quit [Quit: The future belongs to those who believe in the beauty of their dreams.]
ng0 has joined #nixos
lawlesseel has joined #nixos
Makaveli7 has quit [Ping timeout: 252 seconds]
cyounkins has joined #nixos
Makaveli7 has joined #nixos
cyounkins has quit [Ping timeout: 250 seconds]
_d0t has joined #nixos
andi- has quit [Ping timeout: 246 seconds]
Ariakenom has quit [Ping timeout: 250 seconds]
laas has joined #nixos
ixxie has joined #nixos
_d0t has quit [Quit: Konversation terminated!]
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
<Unode>
hi all, does anyone have an example of how to build a perl environment with custom perlPackages in it using nix-build? perl currently seems to lack a withPackages function and using mkDerivation is giving me $src or install errors.
<Unode>
NixOS and nixpkgs seem to have a lot of info on how to create a perl package but not really on how to merge them in an environment when simply nix-shell or nix-env isn't an option.
<infinisil>
Unode: There's something in there then that makes src strict, which is the real problem
andi- has joined #nixos
<Unode>
infinisil: in there you mean one of the packages I'm including?
juliendehos has quit [Quit: Leaving]
<Unode>
by*
<Unode>
infinisil: any suggestions on how to go around this?
<infinisil>
Unode: Nope, in the buildPerlPackage function or so, there's something that makes it evaluate src when it doesn't need to
<Unode>
hum mkDerivation now gives the $src not defined error as well
<clever>
it also needs a src= if you want it to build anything
<Unode>
I don't...
<clever>
what are you trying to do then?
ub__ has quit [Ping timeout: 246 seconds]
<Unode>
For python there's python.withPackages . I'm trying to create the equivalent for perl. That is I want to have a nix-build -o that points to a perl environment with a set of perl modules.
Guest79572 has quit [Ping timeout: 245 seconds]
<clever>
Unode: then you just want the buildEnv itself, nothing more
<Unode>
in such a way that running result/bin/perl actually loads the right modules
<Unode>
clever: actually, hold on, that a local commit
<clever>
error: Package ‘syslinux-2015-11-09’ in /nix/store/qgimqkw4dcza4zddkmbfhmgg6ca8inz8-nixos-19.03pre165037.eebd1a92637/nixos/pkgs/os-specific/linux/syslinux/default.nix:66 is not supported on ‘aarch64-unknown-linux-gnu’, refusing to evaluate.
<clever>
Unode: yeah, that nixpkgs is too old to have a perl.version, you could either upgrade, or just hard-code the version for now
<clever>
nix-repl> perl.version or "default"
jmgai has joined #nixos
<palo>
How do I make nixos request a dns entry again? I have a CNAME entry in my "cache" for a host and want to refresh it (clearing systemwide dns entries would be fine)
<Unode>
trying the hardcode way
<clever>
nix-build '<nixpkgs>' -A pkgsCross.armv7l-hf-multiplatform.ipxe --arg config '{allowUnsupportedSystem = true;}'
<clever>
nefix: this forces nixpkgs to ignore the fact that syslinux is "unsupported"
<Unode>
clever: using PERL5LIB instead of PERLPATH fixed it
<clever>
Unode: nice
<Unode>
thanks for the help, wouldn't have been so quick without your precious help
jmgai has quit [Ping timeout: 250 seconds]
<clever>
nefix: attempting the above build locally, 9/30 done so far
<nefix>
clever: Sorry for that :/ Did you say something?
<gchristensen>
nefix: no
<Unode>
gchristensen: the context where the question arose is buildInputs = with pkgs.something.something { name }. If pkgs.something.something.name and pkgs.name exist, 'name' refers to something.something.name ?
<clever>
nefix: still building things
<nefix>
Ok, thank you
<nefix>
Btw, what do the '...' in the start of the file mean? ({ pkgs, config, ... })
alex`` has quit [Quit: WeeChat 2.3]
<clever>
nefix: that makes it ignore any other arguments its given
<nefix>
I see
alex`` has joined #nixos
fendor has joined #nixos
ixxie has quit [Ping timeout: 258 seconds]
ixxie has joined #nixos
Makaveli7 has quit [Quit: Leaving]
linkrage has joined #nixos
cyounkins has joined #nixos
<gchristensen>
clever: mind if I PM?
<clever>
gchristensen: go ahead
Makaveli7 has joined #nixos
freeman42x has joined #nixos
<ma9e>
Unode: that isn't valid syntax
ubert has quit [Quit: Leaving]
<Unode>
ma9e: ?
<ma9e>
Unode: elements of an attrset are key-value pairs
<nefix>
clever: how am I supposed to build it? Also, how could I pass as parameter the certificate path when building?
<ma9e>
Unode: maybe you mean "inherit name;"?
<Unode>
ma9e: right, should have been ...something; [ name ] ...
<ma9e>
Unode: withs shadow the other scope. maybe im not using the right nomenclature but you can test this in the repl
<Unode>
ma9e: ok, thanks that's what I would expect.
<ma9e>
Unode: np :)
<clever>
nefix: cant, ipxe also doesnt like to cross-compile, its using gcc, rather then $CC
<nefix>
so I can't send (not sure how) a parameter when executing nix-build?
<nefix>
Oh, I see. And could that be fixed with a sed or something like that?
<nefix>
clever: ^
<ma9e>
q: why are nixos modules called nixos modules? what is nixos about them? re: the nixos weekly article about json presentation
<gchristensen>
what is nixos beyond a collection of modules?
<ma9e>
but that's "modules of nixos" not nixos modules, no?
nDuff has quit [Read error: Connection reset by peer]
ixxie has quit [Ping timeout: 268 seconds]
ixxie has joined #nixos
waleee has quit [Quit: WeeChat 2.3]
<ma9e>
for a new user, it seems like the entry point to "modules" is nixos, but it's really lib.evalModules
<gchristensen>
lib.evalModules is not really for much beyond NixOS
Synthetica has quit [Quit: Connection closed for inactivity]
<gchristensen>
no, I'm not really sure what you're asking
<lassulus>
I imported <nixpkgs/nixos/modules/profiles/hardened.nix> and now I get this error: http://paste.krebsco.de/TfyyF4yZ/+inline when i run nixos-rebuild switch -vvv
<ma9e>
what's the rfc process to change nixos modules to "nix options" or something?
<ma9e>
lol
<gchristensen>
they're not nix options
<gchristensen>
what are you trying to do?
<ma9e>
whatever the language happens to be
<ma9e>
there seems to be a discussion around naming things that i feel like i need to participate in
<ma9e>
you don't think the way things are named is confusing at all?
<gchristensen>
I didn't say that
<ma9e>
like how derivations <=> packages or something
ixxie_ has joined #nixos
<simpson>
I think that the concepts are confusing, and that the names are incidental.
<ma9e>
to what degree do you guys think the way things are named is confusing?
ixxie_ has quit [Client Quit]
<ma9e>
like 1-5, 5 being "intimidatingly confusing"
ixxie has quit [Ping timeout: 240 seconds]
fpob has joined #nixos
ixxie_ has joined #nixos
<simpson>
-1, 'not even a problem'
aleph- has joined #nixos
<ma9e>
ok, why?
cyounkins has quit [Remote host closed the connection]
<lassulus>
joachifm: maybe you know something about nixos-rebuild and hardening (you are the maintainer in current unstable at least)
cyounkins has joined #nixos
<elvishjerricco>
ma9e Why are the names the confusing part? For me it’s always been the complexity of the APIs
<simpson>
ma9e: Because I see a wide pattern across many tools, including Nix, of systems becoming more capability-aware and simultaneously becoming more confusing to folks. I've concluded that capabilities aren't obvious.
<ma9e>
that's a good point
superherointj has joined #nixos
<simpson>
However, Nix basically uses none of the capability-theory jargon, aside from POLA, the Principle of Least Authority. So I think that it must be the underlying concepts, not the names, which lead to the confusion.
<superherointj>
Hello. I was able to install NixOS, but Im having trouble running Gnome on it. I tried the official manual. Is there other guide for gnome?
<lassulus>
try also setting: services.xserver.displayManager.gdm.enable = true;
<gchristensen>
what are these `.`s and `/`s?
<gchristensen>
maybe use a pastebin and paste your exact config, superherointj
cyounkins has quit [Ping timeout: 246 seconds]
<superherointj>
typos. Because im using a different keyboard that isnt configured.
<simpson>
superherointj: Did you nixos-rebuild?
<superherointj>
Yes. I did.
<superherointj>
I also tried to run it. using: `systemctl start display-manager.service`
<gchristensen>
superherointj: what is your normal keyboard layout?
<superherointj>
Portuguese Brazil
<superherointj>
ABNT2
<superherointj>
But no worry, ive got one internation US too. Ill use it.
<superherointj>
*international
<gchristensen>
oh ok. can you describe what happens?
<superherointj>
It opens the session window, mouse doesnt work (its a driver problem, ill fix it later). Then I try to login using the mouse. And I use root user. It logins but the screen is white, there is a terminal but I cannot interact with it using the keyboard.
ixxie_ has quit [Ping timeout: 246 seconds]
<clever>
superherointj: thats the xterm desktop manager, without any WM
<superherointj>
*i try to login using the keyboard. (sorry)
<simpson>
Sounds like an xterm+none sort of configuration. Once your mouse works, you probably will be able to mouse-over the terminal window, which will select it for input.
<clever>
superherointj: you need to either give it focus using the mouse (ouch) or disable xterm with services.xserver.desktopManager.xterm.enable = false;
<lunik1>
I am trying to allow ssh from localhost with password authentication (currently it is publickey only). Should the configuration lines needed go in services.openssh.extraConfig?
doyougnu has quit [Ping timeout: 252 seconds]
DanC has joined #nixos
<DanC>
I'm trying to do RStudio with packages; I tried using clues from https://nixos.wiki/wiki/R ...
<superherointj>
clever, after disabling ¨services.xserver.desktopManager.xterm.enable¨ when starting the WM.service it doesnt open anything. How should I be opening Gnome? gdm?
<DanC>
the nix-shell seems to install everything, but then when I start rstudio, I get:
<DanC>
qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""
kim0 has quit [Quit: Connection closed for inactivity]
ixxie has quit [Remote host closed the connection]
freeman42x has quit [Quit: Leaving]
ivegotasthma_ is now known as ivegotasthma
ivegotasthma has joined #nixos
ivegotasthma has quit [Changing host]
<DanC>
so... does openshot-qt work for anybody else? (i.e. does it not crash with stuff about xcb?)
<infinisil>
Synthetica++
<{^_^}>
Synthetica's karma got increased to 4
<DanC>
wild... `nix-shell -p openshot-qt` is downloading 0.5 internets again.
mtesseract has joined #nixos
<ivegotasthma>
is the person dotlambda from github on irc here?
<simpson>
DanC: To get Qt stuff to work, you may have to install it in systemPackages, IIRC.
mtesseract has quit [Client Quit]
<DanC>
I'm not sure what that means. I'm using nix in ubuntu, in case that's relevant.
<clever>
DanC: nix-env -i the package then
<DanC>
(and I hope to deploy in SuSE and REDHat)
nefix has quit [Ping timeout: 256 seconds]
<DanC>
nix-env -i doesn't do the same thing as nix-shell -p? whimper. Do I want to know what's the difference?
<clever>
DanC: nix-shell will just set some env vars to make most tools find things automatically
<clever>
DanC: nix-env -i will add paths to ~/.nix-profile/
<clever>
and the QT stuff is expecting libs in ~/.nix-profile/lib/
<DanC>
(my previous nixpkgs version was just 15 days ago. everything down to libc has been replaced in the last 15 days? how often does libc change?)
<DanC>
my actual goal is to use nix to rescue a colleague from docker hell...
<DanC>
we're trying to add some R packages to a RStudio docker container ... the users there don't have a ~/.nix-profile. Hmm... maybe they could...
ixxie has joined #nixos
<clever>
DanC: you could fake things by using a pkgs.buildEnv to merge things yourself, and then just symlink ~/.nix-profile in the docker image to that
<simpson>
You could go entirely from another direction, using `FROM nixos/nix`. You can use nix-env in the Dockerfile.
<clever>
and the docker image itself wont need the nix binary
<clever>
or you can just use nix entirely in the docker like simpson said
<clever>
nixpkgs is also able to generate a docker image directly, without using any DockerFile's
<DanC>
can I test outside of docker?
<DanC>
I was hoping to basically build something that I can nix-copy-closure around.
lunik1 has quit [Read error: Connection reset by peer]
<clever>
DanC: the nixpkgs stuff to build a docker image is sort of like nix-copy-closure
<DanC>
but nix-copy-closure doesn't rely on ~/.nix-profile, does it?
<clever>
DanC: it will generate a docker image that contains the closure of a given path
lunik1 has joined #nixos
<DanC>
how does this address "the QT stuff is expecting libs in ~/.nix-profile/lib/"
<clever>
DanC: you will need an extra step in a bash script somewhere, that will symlink ~/.nix-profile to ${foo} and then foo = buildEnv { paths = [ qt things ]; };
<clever>
oh, but GUI stuff doesnt usually play well with docker, is docker even needed? just use nix directly on the host?
<DanC>
I don't know why rstudio wants GUI libraries. We use it as a web service.
spacekookie has quit [Quit: **more agressive swooshing**]
spacekookie has joined #nixos
<DanC>
By now, Docker is written into a data management plan that's been signed by the pope. No going back from that, I don't think.
<DanC>
(maybe it's not signed by the pope; I could look into that...)
<DanC>
meanwhile, if anybody can get rstudio to do anything other than gripe about Qt and core dump, I'd like to know how.
<Synthetica>
Just install your own pope, it's been done before
lunik1 has quit [Read error: Connection reset by peer]
<clever>
,locate lddtree
<{^_^}>
Found in packages: pax-utils
<DanC>
"the pope" == CMS, the U.S. govt center for medicare and medicaid.
<sphalerite>
wayland isn't really thoroughly worked out on nixos yet
<sphalerite>
and I'm fairly sure it won't involve Xcursor
ixxie has quit [Ping timeout: 245 seconds]
<DanC>
wayland... I'm struggling to figure out why bother. Anybody have a pointer too good reading material on why it's worht the trouble to move from X to wayland?
<DanC>
I know the X security story sucks but I haven't see anything that says wayland is significantly better.
<DanC>
The stuff I've read has said "X has so much cruft that all the real business goes thru the extensions and hardly uses the core protocol at all." I'd file that under "there are two kinds of programming languages: the ones everybody hates and the ones nobody uses."
ixxie has joined #nixos
<ben>
maybe try #wayland
<DanC>
right. sorry. o/t
<superherointj>
Anyone knows of a working Gnome configuration.nix file?
<ben>
i dont mean to be dismissive :)
<superherointj>
I dont need Wayland, I just need Gnome working. :)
<ben>
superherointj: what desktop env are you getting after logging in?
<ben>
i dont use gnome myself so i cant help much, sorry
simukis has quit [Client Quit]
<superherointj>
Right now nothing is openning. The screen goes black and only a single character is shown ¨_¨ at top left. And it doesnt even blink.
simukis has joined #nixos
<symphorien>
superherointj: please pay attention to which session your dm logs you. lightdm remembers your last choice, so if you logged to none+xterm once and then enable gnome you will still get none+xterm by default
<symphorien>
also do you have a nvidia card ? gnome and nvidia don't like each other.
<{^_^}>
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.
ixxie has quit [Ping timeout: 245 seconds]
<ivegotasthma>
sphalerite: if I run `nix-collect-garbage -d` will the prefetched path be cleaned?
<ivegotasthma>
{^_^}: thanks!
<sphalerite>
ivegotasthma: {^_^} is a bot, it was just answering my ,tofu :p
<ivegotasthma>
oh hahah
<sphalerite>
ivegotasthma: yes, unless it's referenced, e.g. by a running build
<Xyliton>
is there any reason the command is called tofu? lol
<Synthetica>
{^_^}++
<{^_^}>
{^_^}'s karma got increased to 153
<ottidmes>
Trust On First Use
<ottidmes>
TOFU
<Xyliton>
ohh
<Synthetica>
ivegotasthma: Instead of copy-pasting the "wrong" sha256 everywhere, we've also got lib.fakeSha256 these days
<Synthetica>
(Probably should update ,tofu to mention that)
<ivegotasthma>
Synthetica: mm, that's cool
<ivegotasthma>
is it in the doc somewhere? :p
<Xyliton>
um... anyone got an idea how to add plugins to deadbeef?
<Synthetica>
ivegotasthma: Not sure tbh, it's just that I saw the PR some time ago :P
<superherointj>
sphalerite, after adding: services.xserver.displayManager.gdm.enable = true;
simukis has quit [Client Quit]
<ivegotasthma>
I'm packaging my first package and I'm having a problem running the tests of the project
<ivegotasthma>
I'm running it and it's saying: /usr/bin/env: bad interpreter: No such file or directory
simukis has joined #nixos
<superherointj>
I have replaced my mouse with a compatible mouse. And then I can mouse over the terminal window and type on it.
<ivegotasthma>
does this mean that it cannot access the python 2.7 interpreter inside the chroot?
<Synthetica>
ivegotasthma: patchShebangs it's called I believe
<superherointj>
It is a white terminal window. And the screen is black. Quite minimal.
<symphorien>
ivegotasthma: run "patchShebangs dir/of/the/test/scripts"
<symphorien>
you also need to put all the missing interpreters in checkInputs
<superherointj>
I could login after I disabled that ¨gdm¨ config above.
<mdash>
phry: my immediate response would be to say it works the same no matter what, but tell me what you're thinking of
<clever>
phry: propagatedUserEnvPkgs
<symphorien>
propagatedUserEnvPkgs iirc
<symphorien>
too slow :)
<phry>
thanks guys, gonna give it a try :)
simukis has quit [Client Quit]
simukis has joined #nixos
freeman42x has joined #nixos
<{^_^}>
[nixpkgs] @dotlambda pushed 2 commits to python-unstable: https://git.io/fh4gS
<Xyliton>
Anything regarding the deadbeef plugins?
<phry>
mdash: unfortunately, propagatedBuildInputs does not work systemwide. but propagatedUserEnvPkgs does the trick - thanks clever and symphorien :)
<clever>
phry: propagatedBuildInputs only has an effect at build time
<phry>
clever: the manual states "In the fixup phase, it writes the propagated build inputs (propagatedBuildInputs) to the file $out/nix-support/propagated-user-env-packages. nix-env recursively installs all packages listed in this file when you install a package that has it." - but I might be interpreting that wrong?
<{^_^}>
[nixpkgs] @dotlambda pushed 3 commits to python-unstable: https://git.io/fh4gN
<clever>
phry: thats propagatedUserEnvPkgs
<clever>
phry: there are 3 or 4 different propagated flags, each going to its own file
<clever>
the user-env ones affect nix-env, the rest only affect build-time
<phry>
clever: looks like the nixpkgs manual needs some fixing then ^^
<bbarker>
what would be the appropriate way to go about running "nix-env --set-flag priority 3 nix-2.2.1" so that I don't get "matches no derivations"?
nobody96 has quit [Remote host closed the connection]
<clever>
bbarker: --set-flag only works on things currently installed, so it cant be used on the name of something that fails to install with -i
simukis has quit [Client Quit]
<clever>
bbarker: what is causing you to need to set priority?
simukis has joined #nixos
<bbarker>
clever, basically, i think it is because I've installed nix-2.2.1, but it isn't in 18.09 (2.1.3 is). At some point, 2.1.3 seems to be sucked in, as part of a cachix derivation installation
<bbarker>
not sure if it matters that it is cachix
<clever>
bbarker: what does nix-env -q list?
simukis has quit [Client Quit]
<bbarker>
clever, hmm seems to just say `brandon-dev-env`, which is the name of the buildEnv I use to initialize my environment
simukis has joined #nixos
<clever>
bbarker: ah, and that is where the duplicate nix is coming from, so change the nix inside it to be the new one
<clever>
or remove nix from it and update that buildEnv
<bbarker>
clever, is it possible to use 2.2.1 from 18.09?
<clever>
bbarker: you can use multiple channels in the same nix file
o1lo01ol1o has quit [Remote host closed the connection]
<clever>
bbarker: if nix-channel --list calls it unstable, then you can just let unstable = import <unstable> {}; in ...
<superherointj>
Is there a way to speed up the boot to GDM, on Ubuntu it is quite fast 30s max. But for some reason it is taking a long time like 5min. Is there something I should have enabled?
simukis has quit [Client Quit]
o1lo01ol1o has joined #nixos
<phry>
clever: on second thought, I was just not reading right. What I cited was specific to buildPerlPackage and that actually has that behaviour. My fault ;)
<clever>
superherointj: systemd-analyze plot
<bbarker>
sounds good. ideally i wouldn't have it in this environment at all. but i noticed that when I run nix-instantiate on the nix expression containing the buildEnv, then run nix-env -if on the result, if nix isn't there, then I get no nix in my environment
<superherointj>
clever, thanks! I am learning so many things here. :)
<{^_^}>
[nixpkgs] @hedning pushed commit from @r-ryantm to master « gnome-builder: 3.30.2 -> 3.30.3 (#54205) »: https://git.io/fh4Vf
<ottidmes>
bennofs[m]: var=$(command 2>&1) (probably no longer relevant, but there)
<bennofs[m]>
yay, I got working nix syntax checking and indentation in spacemacs now ^^^
cyounkins has quit [Remote host closed the connection]
<infinisil>
The fact that color output is now disabled is a bit unfortunate for my nixbot, because I did extra work to have colors be transformed to IRC..
<infinisil>
(Well this channel doesn't allow colors anyways, but they wolud be visible in #bottest)
vk3wtf has quit [Ping timeout: 268 seconds]
<infinisil>
And there's no way to force turn it on
<bennofs[m]>
is doCheck = false by default in nixpkgs?
<superherointj>
I have 3 computers (home, office, notebook). What is the recommended method of syncing configuration, applications between them? Just share the configuration.nix file?
<superherointj>
I have a ton to learn, but so far so good! It is working. :)
<Synthetica>
Git is always good
m15k has joined #nixos
simukis has quit [Client Quit]
simukis has joined #nixos
<ottidmes>
is there a way to add an overlay to the default overlays? if I do <nixpkgs> { overlays = [ myOverlay ]; } it will use just that, but what I wanted to just add to the default for overlays. I could duplicate the logic from impure.nix but I rather not
goibhniu has quit [Ping timeout: 268 seconds]
doyougnu has quit [Ping timeout: 258 seconds]
rfold has joined #nixos
rfold has quit [Client Quit]
simukis has quit [Client Quit]
simukis has joined #nixos
justbeingglad has joined #nixos
justbeingglad has left #nixos [#nixos]
superherointj has quit [Quit: Leaving]
<infinisil>
superherointj: Most people just use git
<infinisil>
Oh lol, he left a second before I said that
<infinisil>
s/he/they
simukis has quit [Client Quit]
the-kenny has joined #nixos
simukis has joined #nixos
drewr has quit [Remote host closed the connection]
the-kenny has quit [Client Quit]
Ariakenom has quit [Read error: Connection reset by peer]
<jomik>
Anyone using xmonad and taffybar here? I am not sure how I can add Taffybar to xmonad. It does not see the module when I compile.. `System.Taffybar.Support.PagerHints`
<infinisil>
jomik: I did use xmonad with taffybar at some point, checking config..
simukis has quit [Quit: simukis]
<jomik>
infinisil: Thanks! Rebooting quickly
jomik has quit [Quit: WeeChat 2.2]
<ottidmes>
infinisil: what do you use now? i3?
<infinisil>
still xmonad, just not taffybar, xmobar instead
<infinisil>
Had some problems with taffybar
jomik has joined #nixos
<ottidmes>
I loved the idea of writing the config in Haskell, but I did not like the window manager itself, I am now using bspwm with a forked lemonbar
<jomik>
ottidmes: What things couldn't you change tho? I haven't seen it be much different from a manual tiling wm like i3 if you desire to use it manually.
<jomik>
Except for the initial automatic stuff + being able to reset to the default layout.
<infinisil>
ottidmes: There's really almost nothing you can't do in xmonad, if you're willing to code haskell..
<jomik>
I think it does the same as BSPWM at least :O
<jomik>
Tho haven't used it.
<jomik>
But I know you can pull a BSP layout.
<ottidmes>
I found i3/bspwm/herbstluftwm a much better fit, I would say there is a clear difference, and I do not believe you can really make the behave the same without reimplementing a lot
<ottidmes>
but beside that, I had issues I could not work around with certain window toolkits
jackdk has joined #nixos
<jomik>
Well, ther eis a reason that people use bspwm, so I am sure that there are some things :D
laas has joined #nixos
adamantium has left #nixos ["ERC (IRC client for Emacs 26.1)"]
<jomik>
sidenote: AWE MAN, taffybar does not build on unstable..
joehh has joined #nixos
<laas>
how do I set mounting options in my configuration.nix file?
<ottidmes>
jomik: with i3 I had glitches in full screen mode, and then I learned of bspwm and loved it
<laas>
I can see there is an `options` list, but when I fill it with anything, I can't mount it anymore and my system won't boot successfully
alex`` has joined #nixos
<jomik>
ottidmes: I disliked i3 config :D never really used the fullscreen stuff.
<jomik>
bspwm does look nice tho.
<jomik>
Giving xmonad a try, cuz Haskell. Lol
<jomik>
Tho, trying to figure out why my taffybar says that it wants "Data.Text.Internal.Text"
<ottidmes>
jomik: I cannot remember the exact details, I seemed to have purged that part of my config, but I remember clearly being disappointed with xmonad after putting so much time into it making it fully to my liking find some kind of issue that was a deal breaker, but I a lot of people are using xmonad, so it must have been my use case
<jomik>
And not just [Char]
<ottidmes>
jomik: you should generally prefer Text, so that is a good thing, you probably could just add {-# LANGUAGE OverloadedStrings #-} at the top of your config
<{^_^}>
[nixpkgs] @hedning pushed commit from @r-ryantm to master « gtkd: 3.8.4 -> 3.8.5 (#54200) »: https://git.io/fh41Z
<ottidmes>
infinisil: lol, how to get the default overlays passed to nixpkgs: nix eval '(let import = pkgsPath: let import = scopedImport { import = path: if path == pkgsPath + /pkgs/top-level then (args: args) else import path; }; in import pkgsPath; in (import <nixpkgs> { }).overlays)'
tmaekawa has joined #nixos
<infinisil>
ottidmes: What the hell is that
<ottidmes>
infinisil: thinking outside the box?
<DanC>
gak... "RStudio internally overrides
<DanC>
# R_LIBS_SITE."
<infinisil>
ottidmes: `let import = pkgsPath: let import = ...; in import pkgsPath; in ...`
<infinisil>
Why override an already globally defined variable and why define it twice
<infinisil>
There's so many variable names to choose from!
<ottidmes>
infinisil: because it literally is import, an override version of it
<infinisil>
It isn't literally import
<ottidmes>
infinisil: true, the nested one is though
<infinisil>
I'd think those are exactly the same
<ottidmes>
infinisil: but please dont focus on that
sigmundv_ has joined #nixos
<ottidmes>
infinisil: wut no
jomik has quit [Quit: WeeChat 2.2]
<infinisil>
If you give me a horrible piece of code I can't focus on anything but that!
<infinisil>
I'm pretty sure that `let import = pkgsPath: let import = ...; in import pkgsPath; in ...` is the same as `let import = ...; in ...`
<ottidmes>
this is what I actually had: nix eval '(let nixpkgsImport = pkgsPath: let customImport = scopedImport { import = path: if path == pkgsPath + /pkgs/top-level then (args: args) else customImport path; }; in customImport pkgsPath; in (nixpkgsImport <nixpkgs> { }).overlays)'
<infinisil>
I still think you could refactor it to only one let in
<ottidmes>
infinisil: try then, you will see it will not, the first one brings pkgsPath into scope, which is reused by the second one, I could unify them differently, like this:
<infinisil>
But default overlays are passed when there's no overlay attribute in the argument to nixpkgs/default.nix
<ottidmes>
infinisil: I know
<ottidmes>
infinisil: but I want to append to that list, not replace it
silver has quit [Ping timeout: 245 seconds]
<infinisil>
Ah yeah, can't do that unfortunately
<infinisil>
There's no way to access defaults of a function
<infinisil>
That's why I think these defaults should be in lib instead, so you can reuse them
<ottidmes>
agreed
fendor has quit [Read error: Connection reset by peer]
<ottidmes>
infinisil: here is your put in one function, see, even worse: nix eval '(let customImport = pkgsPath: scopedImport { import = path: if path == pkgsPath + /pkgs/top-level then (args: args) else customImport pkgsPath path; }; in (customImport <nixpkgs> <nixpkgs> { }).overlays)'
ddellacosta has joined #nixos
oida has quit [Remote host closed the connection]
oida has joined #nixos
dsiypl4 has quit [Ping timeout: 258 seconds]
<infinisil>
Oh.. I might be mistaken indeed, *tries again*
<m15k>
When I try to rebuild a hydra job locally I get: error: value is a string while an integer was expected, at /tmp/build-87569116/nixpkgs/source/nixos/release.nix:13:59 - May that caused by a different nix version?
jb55 has quit [Quit: WeeChat 2.3]
<ottidmes>
infinisil: if I run it it does not work, you can just try it yourself first with nix eval right?
<infinisil>
I was convinced that would simplify, but turns out it really doesn't
doyougnu has quit [Ping timeout: 258 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
<ottidmes>
I would almost say you owe me an aplogy, but I cannot deny it still is horrible code, but it is cool that Nix allow these kind of things to be actual usable thanks to lazy evaluation