<tobiasBora>
I can't find how to use nix-mode on emacs
<tobiasBora>
I enabled it, but I just don't have any indentation
<tobiasBora>
I tried to click on Nix > Format buffer, and I have an error "Cannot locate executable nixfmt". However, I don't even know how to find this executable
<jackdk>
I am trying to debug why I can't get build a nix shell for my project on macos(darwin). calling nix-shell with latest nixpkgs-unstable still doesn't have a fix that hit stable in november
<tobiasBora>
gchristensen: hum... I tried to add this line, and now I have indentation, but the indentation is crazy http://paste.debian.net/1059139
<gchristensen>
tobiasBora: yes, many bugs were fixed -- that is why I have that override ^
<jackdk>
so I moved to a checkout of nixpkgs master, and am now trying nix-shell --arg nixpkgs '(import ../nixpkgs {})'. after building a new ghc, beam-core (among others) fails to configure with missing dependencies.
<tobiasBora>
gchristensen: unfortunately I'm on debian so I can't really pinpoint the lib that way :(
<amosbird>
is it possible to get rid of this not found so ?
<tobiasBora>
Hum, for the second time nix build freezes on building -nixos-manpages.drv
<amosbird>
dso
<tobiasBora>
do you know why?
<gchristensen>
are you on a slow cpu tobiasBora?
<dtz>
freezes? maybe add "-vvvv" to see if it's doing something (huge eval for w/e reason?)
<gchristensen>
manpages took a long time for me, on a rpi-like thing
<tobiasBora>
gchristensen: yes, raspberry pi 3
<tobiasBora>
why does it take so long?
<simpson>
amosbird: How did you build your program?
<amosbird>
simpson: cmake
<tobiasBora>
dtz: actually it's possible that it takes time... but I don't see why something as simple as manpages take that much time ^^'
<ottidmes>
amosbird: then you probably just have to add python2 to your buildInputs
<amosbird>
hmm
<simpson>
amosbird: Did you put Python in buildInputs or in propagatedBuildInputs? It might need to be in the latter.
<ottidmes>
python3 I mean
<amosbird>
I mean, can I use patchelf to remove that dependency?
<gchristensen>
it is doing gob-loads of xslt execution for our huge configuration.nix manpage
<{^_^}>
[nixpkgs] @matthewbauer opened pull request #53615 → cups: use v2.2.6 on darwin → https://git.io/fhG7k
<amosbird>
the python code path never triggered
<ottidmes>
,locate libpython3.7m.so.1.0
<{^_^}>
Found in packages: python3, python3Full
<amosbird>
ottidmes: it's not that libpython3.7.m doesn't exist
<simpson>
Can you avoid linking against Python in that case?
<ottidmes>
(just checking the m thing was not a problem)
<amosbird>
I'd like to remove that dep
<amosbird>
nope
<amosbird>
that binary is shipped
<simpson>
Oh! Unfree stuff.
drakonis has quit [Read error: Connection reset by peer]
<simpson>
I have no idea how to wield patchelf and the license might forbid it. I know it's heavy, but check out the FHS user env, as it's usually what unfree binaries want.
<appleclusters>
I ran nixos-rebuild switch, it completed successfully, and then I rebooted. The changes (installed vim) didn't apply, but they were there before reboot. How do I debug this?
kingemp__ has quit [Quit: Leaving]
<simpson>
appleclusters: Did you reboot into the new configuration for sure?
<appleclusters>
simpson: What would that mean? The way I rebooted is using the Plasma reboot button, so I imagine that's wrong?
<simpson>
appleclusters: When your machine was booting, you may have seen a boot prompt letting you choose a generation.
<appleclusters>
So fileSystems."/" is already taken by "rpool/root/nixos", and since /boot/ exists, doesn't that mean it's being overridden somehow? clever
<clever>
the /boot/ directory must exist (normally empty) to be able to mount anything to /boot/
<clever>
but if you then dont mount anything, the empty directory is left visible
<appleclusters>
gotcha
<clever>
and nixos-rebuild puts all the files into that directory
<clever>
ive also heard people joke about hiding their porn under the /boot/ mount point :P
<clever>
so you can only see it if you umount /boot/
o1lo01ol1o has quit [Remote host closed the connection]
<appleclusters>
hahaha
freeman42x has quit [Read error: Connection reset by peer]
babic has quit [Ping timeout: 268 seconds]
freeman42x has joined #nixos
lihop has joined #nixos
tyang has quit [Quit: Connection closed for inactivity]
<appleclusters>
clever: sorry to keep bothering you, I set those options and it didn't work on reboot. Something I noticed is that the existing hardware device file systems are namespaced as "rpool/root/nixos" and "rpool/home", which seems to be zfs's namespace, not the absolute sdaxx namespace?
<clever>
nixos will scan all devices to find a pool called rpool
<clever>
thats completely normal for zfs
<clever>
also, you must manually mount /boot before you nixos-rebuild
<appleclusters>
ahhhhhh I forgot about that, sorry!
<clever>
or the fix itself wont take any effect, and it will boot the old config again
<appleclusters>
beautiful, everything works now
<appleclusters>
thanks so much!
cyounkins has quit [Read error: Connection reset by peer]
<{^_^}>
[nix-mode] @grahamc opened pull request #71 → Prioritize closing } over regular indentation → https://git.io/fhG7V
kvda has joined #nixos
cyounkin_ has joined #nixos
cyounkins has quit [Read error: Connection reset by peer]
Supersonic has joined #nixos
cyounkin_ has quit [Remote host closed the connection]
cyounkins has joined #nixos
<appleclusters>
I can't find if there's a way to delete old nixos-rebuild s so that I don't accidentally boot into an old version that was causing me a lot of pain
<worldofpeace>
jtojnar: Thanks, just in time too
<clever>
appleclusters: its supposed to keep all old ones, thats how the rollback system works
<clever>
appleclusters: with /boot/ mounted correctly, nixos-rebuild will change the default for you, and everything will just work
<appleclusters>
Ok, I figured since there's the garbage collection
<appleclusters>
Ok I have yet another dumb question -- I enabled unfree packages in my `.config/nixpkgs/config.nix` and then successfully ran `nix-env -iA nixos.google-chrome`, but there's no google-chrome in my path or any shortcut resembling its name in kde.
<{^_^}>
[nixpkgs] @jtojnar pushed to master « hashcat: clean up with placeholder »: https://git.io/fhG7P
o1lo01ol1o has quit [Ping timeout: 272 seconds]
<{^_^}>
[nixpkgs] @matthewbauer pushed commit from @dylex to master « stdenv: allow custom stdenv to take crossOverlays »: https://git.io/fhG7D
cyounkins has joined #nixos
<jtojnar>
appleclusters: nix-env usually installs to ~/.nix-profile
<jtojnar>
you should have ~/.nix-profile/bin in your path
copumpkin has joined #nixos
<{^_^}>
[nixpkgs] @matthewbauer pushed commit from @dylex to release-18.09 « stdenv: allow custom stdenv to take crossOverlays »: https://git.io/fhG7S
<appleclusters>
jtojnar What's the nixy way of ensuring it's in my path?
Lingjian has joined #nixos
<appleclusters>
My instinct is bash_profile but that doesn't seem right at all
<appleclusters>
jtojnar: ah wow, a reboot fixed it
<appleclusters>
and I think it took 2 reboots
<jackdk>
does anyone have tips for how to tell what haskell packages are available when a haskellPackages.callPackage call fails?
<elvishjerricco>
jackdk: What do you mean by "tell what haskell packages are available"?
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<romanofskiWork>
jackdk: it depends how it fails... perhaps you can post the error message, so it's easier to help
<jackdk>
elvishjerricco: I have nix expressions that are basically what you get from cabal2nix --shell. One of the dependencies (aeson-1.4.2.0) is failing because of missing deps (contravariant >=1.4.1 && <1.6). How can I see what the ghc-pkg db is that's being used for the build?
<elvishjerricco>
jackdk: Usually, `Missing dependencies: contravariant >=1.4.1...` etc. are not indicative of actually missing dependencies
<elvishjerricco>
It usually means the versions you have are just the wrong version
<elvishjerricco>
if you actually don't have the dependencies, you'll get a Nix eval-time error
<elvishjerricco>
because the package won't exist when the nix code references it
<clever>
jackdk: what happens when you run `nix-build '<nixpkgs>' -A haskellPackages.contravariant`
esmerelda has joined #nixos
semilattice has joined #nixos
<jackdk>
clever: I'm trying with a git checkout of nixpkgs, because I'm fixing a problem on darwin and there are bugs in nixpkgs that I've fixed but they haven't got out of staging yet.
<jackdk>
that said: /nix/store/2xkh67a7dmw4s1x6rlrq1h8sga47s1sz-contravariant-1.5 , though my nix-shell calls have been with --argstr compiler ghc844, because with --argstr compiler default it pulls an 8.6 ghc with even more new and interesting build failures
kvda has joined #nixos
<{^_^}>
[nixpkgs] @matthewbauer pushed to fix-49206 « haskell.buildStackProject: use setup hook »: https://git.io/fhG5v
kvda has quit [Client Quit]
<clever>
jackdk: what is your default.nix and shell.nix file contents?
<{^_^}>
[nixpkgs] @matthewbauer opened pull request #53618 → haskell.buildStackProject: use setup hook → https://git.io/fhG5f
<jackdk>
blarhag! the definition for "aeson" in hackage-packages.nix doesn't ask for contravariant, and aeson grew a contravariant dependency between 1.4.1.0 and 1.4.2.0! how does that happen?
<jackdk>
I'm glad someone is working on it, I'm a bit angerman right now
<angerman>
jackdk: nix-Tools is actually used, documentation is just very bad :-(
<elvishjerricco>
the api is also pretty rough and I wouldn't consider it stable
<elvishjerricco>
wouldn't consider the api stable, that is
<angerman>
elvishjerricco: yea but at this point I’d be happy to keep it as stable as possible
<jackdk>
that's great news, and hopefully better in the long term. I'm just frustrated chasing build failures so a colleague can move back onto a channel instead of A Nixpkgs SHA We Know Works
<elvishjerricco>
angerman: Eh. I'm still not totally happy with the modules. I think there are some api-level improvements that would make all the overriding troubles you've had a lot better
eadwu has quit [Ping timeout: 268 seconds]
<angerman>
Im skeptical that can be fixed with modules alone :-(
lopsided98 has joined #nixos
<jackdk>
aaand one of the many reasons I can't use nixpkgs master is that scotty depends on hpc-coveralls, which wants aeson < 1.4
<appleclusters>
What's stopping someone from slipping a malware executable into a binary variant of a package in a PR? How rigorously are PRs checked, and by who? Are they signed?
copumpkin has joined #nixos
endformationage has quit [Quit: WeeChat 2.3]
wedens has quit [Ping timeout: 252 seconds]
romanofski has quit [Ping timeout: 252 seconds]
romanofski has joined #nixos
wedens has joined #nixos
<ghostyy>
how do i have one nixos configuration.nix for multiple machines
<ghostyy>
i want to have one "base" file and one for each machine that just sets hostname and etc
jtojnar has quit [Ping timeout: 272 seconds]
<wedens>
ghostyy: put common configuration in e.g. common.nix and add ./common.nix to `imports` of specific configuration
<appleclusters>
@Baughn: userland registries like AUR/pypi/npm, sure, but what about "official" repositories in Arch where you need multiple signers on a source and every client has the signers' public keys to check against?
smolboye_ has quit [Quit: WeeChat 2.2]
<appleclusters>
I imagine Gentoo has a similar mechanism
<Baughn>
Do you think they're actually reading the upstream code while carefully checking for backdoors?
smolboye has joined #nixos
<Baughn>
Alas, though, you're probably right. Nix doesn't have the manpower to multiply-review everything.
orivej has quit [Ping timeout: 258 seconds]
<appleclusters>
@Baughn: for security-critical packages I'd hope that there were multiple signers giving approval. How many people are needed to merge a change in the nix registry? 1?
<Baughn>
One.
<appleclusters>
And are the approvers vetted?
<Baughn>
I'm not the right person to ask about that.
<appleclusters>
GitHub PRs just don't seem to be robust enough for *merging the latest version of OpenSSL*
<appleclusters>
Also is 2fa required for all members of the org? I think I'm going to inquire about this on the forum
<Baughn>
That's not merged in binary form, though.
<worldofpeace>
appleclusters: All org members have to have 2fa, yes
<Baughn>
OpenSSL updates would be url and hash changes. There's no way for such a review to introduce malware without also first putting they malware on the OpenSSL website.
smolboye has quit [Ping timeout: 250 seconds]
<appleclusters>
@Baughn: I understand that part, but what I'm getting at is, how easy is it for a random maintainer to silently change the downstream url?
<appleclusters>
How many eyes will see that?
<Baughn>
The upstream url, you mean? Some core team member would need to approve the change.
<{^_^}>
[nixpkgs] @endgame opened pull request #53627 → hpc-coveralls: jailbreak for GHC 8.6 → https://git.io/fhG5A
<appleclusters>
@Baughn @worldofpeace are outside (non-org) maintainers also able to approve the change?
<Baughn>
No.
<worldofpeace>
I'd classify a NixOS maintainer as an organization member.
<Baughn>
People in the maintainers meta field for the package don't generally have approval to merge anything.
<Baughn>
People in the GitHub org do.
<Baughn>
Some of the former are included in the latter, but it's a small subset.
<appleclusters>
GitHub lets you add outside members as approved commiters, which is why I asked
<appleclusters>
Thanks for the clarification
<Baughn>
I don't know for sure that they haven't, I just know that I'm not on the list. :v
<worldofpeace>
An org member can merge anything but they probably shouldn't without other reviewers :)
<Baughn>
By the way, if you're worried about security you should probably turn off package substitution. The build servers are a big target.
<Baughn>
Doing so really just turns it into Gentoo. With better options for running your own build server.
<jackdk>
declarative OS configuration makes it a lot more than "just"
<Baughn>
Eh, you know what I mean.
<worldofpeace>
appleclusters: We probably should implement some other security practices. It's just difficult to organize in a smaller project
<simpson>
appleclusters: What's your threat model?
<DigitalKiwi>
arch didn't even care about gpg signing all that long ago
<periklis>
anyone running on nixos with 4.19 on a T480 with xorg 1.19 and intel drivers on xrandr freezes? is the i915 kernel module just to new for the 1.19 xorg intel driver maybe?
o1lo01ol1o has quit [Ping timeout: 252 seconds]
worldofpeace has quit [Ping timeout: 246 seconds]
tzemanovic has joined #nixos
sinner has joined #nixos
Mateon3 has joined #nixos
sinner is now known as Guest3406
Mateon1 has quit [Ping timeout: 252 seconds]
Mateon3 is now known as Mateon1
esmerelda has quit [Ping timeout: 258 seconds]
tzemanovic has quit [Remote host closed the connection]
<periklis>
LnL: i can constantly reproduce this behavior with 19.03-pre (see above kernel and xorg versions). If i switch with xrandr to my external monitor the kworkers spike and i get a black screen. Need to reboot then.
Makaveli7 has quit [Ping timeout: 258 seconds]
Xal has quit [Ping timeout: 250 seconds]
hellrazo1 has quit [Ping timeout: 258 seconds]
sigmundv_ has joined #nixos
freeman42x has quit [Ping timeout: 252 seconds]
goibhniu has joined #nixos
Xal has joined #nixos
hellrazo1 has joined #nixos
paulvictor has joined #nixos
thc202 has joined #nixos
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}>
[nixpkgs] @Mic92 opened pull request #53634 → manual: limit text width → https://git.io/fhGbq
gagbo has quit [Ping timeout: 246 seconds]
<paulvictor>
I am using home-manager for managing my user config. How would I add a dependency for a node.js package which isn't available in nixPkgs/nodePackages as a dependecy?
<Mic92>
paulvictor: when you generate your node package set with node2nix you add dependencies with overrides just as we do in pkgs/development/node-packages
<BlessJah>
wedens: I'll need to create github issue, I believe this shouldn't ahve happened
<mr_noobs>
Sup! Can I have ssl on weechat without having a webserver? Also, can I use tmux instead of screen with weechat? How would I mark that on configuration.nix?
<paulvictor>
Mic92: I used the nix files generated by node2nix, changed the src in args to point to the github url(from ./.) and returned the `nodeEnv.buildNodePackage args` from the derivation instead of the set with 3 attributes
ThatDocsLady_ has joined #nixos
<gagbo_work>
I have a quick question : does someone use Plasma + XMonad or XfCE + XMonad ? I´m wondering if the options found in displayManager.session (like plasma5+xmonad for example) are supposed to work out of the box, or if I actually need to do the ¨config dance¨ anyway
<gagbo_work>
the config dance being exporting KDEWM in a .config/plasma-workspaces/env.sh file or something]
hoijui has joined #nixos
babic has quit [Read error: Connection reset by peer]
<Mic92>
paulvictor: I think you can also use a github url directly
<mr_noobs>
ivegotasthma: ar: Thanks! How do I do that on Nix? Like, how do I tell it to use tmux in configuration.nix? If I install weechat it comes with screen (even has a session name for screen)
<mr_noobs>
Not that I'm against screen, it's more for learning purposes
<{^_^}>
[nixpkgs] @manveru opened pull request #53641 → docker-sync: init at 0.5.9 → https://git.io/fhGAq
<paulvictor>
Mic92: I end up in this error when I try a `home-manager build` : https://pastebin.com/7egDaFkg . When I install using the same modifications using `nix-env -f default.nix -i` it works.
<ivegotasthma>
I want to keep as much of my installed packages in my configuration.nix is the common practice to make them system wide or user specific?
<{^_^}>
[nixpkgs] @betaboon opened pull request #53646 → gnuradio-osmosdr: 0.1.4 -> 4d83c60, Added support for Soapysdr → https://git.io/fhGA2
<wedens>
ivegotasthma: are you the only user?
lihop has quit [Ping timeout: 244 seconds]
eadwu has joined #nixos
knupfer has quit [Ping timeout: 246 seconds]
<ivegotasthma>
yes
<ivegotasthma>
I'm cautious because if a user package breaks the system, the root user should not be affected and I can recover with that
<wedens>
I prefer to keep non-system packages that I don't need as root user in home-manager configuration. but I want to reuse this configuration on non-nixos system. if you only use nixos and you're the only user, it doesn't matter much
<wedens>
if you don't _run_ it as root, it's unlikely to break anything
<ivegotasthma>
wedens: thanks
<ivegotasthma>
wedens: why use home-manager instead of the option users.users.<name?>.packages ?
<wedens>
ivegotasthma: I also use it to declarative configure per-user services and programs
ddellacosta has joined #nixos
<wedens>
for example: gtk theme, git, zsh, i3, polybar
<wedens>
installing packages is just a small subset of home-manager features
<wedens>
it provides module system smillar to nixos, but per-user
* etu
is configuring htop through home-manager, it's very nice because it does put a file where htop expect the config to be and it's readonly so if I toggle between treeview/non-treeview in htop it doesn't change in config
__monty__ has joined #nixos
__monty__ has joined #nixos
__monty__ has quit [Changing host]
<etu>
Otherwise htop changes the config on exit when toggling between non-/treeview
<infinisil>
etu: Yeah I noticed that too, it's a neat side effect
<ivegotasthma>
is there a nix / nixos roadmap online?
<infinisil>
(I wrote the htop module for hm btw, but not sure if I'm proud of it xD)
tzemanov_ has joined #nixos
ddellacosta has quit [Ping timeout: 246 seconds]
<wedens>
ivegotasthma: there is a talk from the latest nixcon
<Myrl-saki>
wedens: Kinda looks amazing, thuogh I'm quite fond of the module system being just a library.
<Myrl-saki>
And nixpkgs being just a "program" on Nix.
erictapen has quit [Ping timeout: 250 seconds]
<wedens>
I think it comes down to nix not being a general purpose programming language. so, building everything on top of small foundation may not apply here
alex`` has quit [Ping timeout: 246 seconds]
<Myrl-saki>
wedens: Yeah, fair enough.
alex`` has joined #nixos
<leotaku>
Do we know when we might expect these changes to be implemented? I'm sure all of that is awesome, but transitioning the exiting nix infrastructure seems like an extremely heavy and time-consuming task.
<Myrl-saki>
leotaku: And keeping it backwards compatible seems like a chore too.
<leotaku>
Myrl-saki: I honestly hadn't even thought about that...
<wedens>
yeah. I think it's the most difficult problem with any radical changes to nix
<wedens>
nixpkgs is huge
reinhardt has joined #nixos
<leotaku>
But the new additions would not have to break anything that works in old nix right?
markus1189 has quit [Ping timeout: 246 seconds]
<leotaku>
So we could slowly migrate nixpkgs to the new style, only keeping backwards compatibility as long as the nixos releases that still use nix 2.0 are supported.
<Myrl-saki>
leotaku: The problem I see with this is that half-assing this means that it'd be more work. If you don't make mkDerivation as a frontend to the proposed features, then there's no guarantee of its compatibility. If you do make mkDerivation a compatibility layer, then you'd have to maintain the compatibility layer.
<Myrl-saki>
leotaku: Ofc. I'm just talking about speculations here.
<wedens>
compatibility problem already manifests itself in e.g. name/pname+version changes
markus1189 has joined #nixos
o1lo01ol1o has joined #nixos
<Myrl-saki>
wedens: Heh yeah. I just realized that you were the one who made that PR. What did you do with it?
<leotaku>
Myrl-saki: My idea was simply duplicating any important changes as long as the old version is supported. Maybe even a separate namespace for the incompatible things.
<wedens>
Myrl-saki: which PR? I've never touched nixpkgs "core" :)
<leotaku>
And as soon as support is dropped they can be moved out of nixpkgs.
<Myrl-saki>
wedens: Not so sure what the context of this was.
<Myrl-saki>
416397:2019-01-03 06:07:41 Myrl-saki wedens: You forgot to specify a pname.
<Myrl-saki>
416443:2019-01-03 06:34:09 wedens Myrl-saki: is this pname/name change not in 18.09?
smolboye_ has joined #nixos
smolboye has quit [Read error: Connection reset by peer]
<wedens>
I was not the one who made the change, but I've stumbled upon this incompatibility multiple times
<Myrl-saki>
wedens: Ah. :P
<{^_^}>
[nixpkgs] @Mic92 opened pull request #53648 → [backport] nixos/systemd-udev-settle: don't restart on upgrades → https://git.io/fhGx0
fendor has joined #nixos
<wedens>
and it's quite small incompatibility. imagine dealing with something bigger
smolboye_ has quit [Client Quit]
<leotaku>
Maybe a separate nixpkgs channel could be the solution?
<Myrl-saki>
oh no
<leotaku>
Why not?
<Myrl-saki>
I guess for one, it'd split the manpower.
<leotaku>
Yeah but how could we approach this without splitting work?
__Sander__ has joined #nixos
<leotaku>
Someone has to work on support for the "old" version.
smolboye has joined #nixos
agander has joined #nixos
ottidmes has joined #nixos
<Myrl-saki>
leotaku: idk, they'll (hopefully) have a solution for this.
<leotaku>
Myrl-saki: We don't (yet) have a timeline for any of this, correct?
<Myrl-saki>
leotaku: It's not even a proposal yet, from what I understand.
Guest87s has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
<Dandellion[m]>
Does anyone here use home-manager and zsh?
Guest87s has left #nixos [#nixos]
<klntsky>
I'm writing a derivation for a cargo package, and I find it strange that Cargo.lock is required. There is an example (cargo-fuzz, namely), where maintainer fetches his own lockfile from github gists. Is it OK to do the same?
<sphalerite>
,ask Dandellion[m]
<{^_^}>
Dandellion[m]: Just ask your question. It's the best way to know if anybody can help.
<Dandellion[m]>
I don't understand how you're supposed to set the user shell via my home.nix
<sphalerite>
Dandellion[m]: not sure if that's possible
o1lo01ol1o has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @peterhoeg merged pull request #53447 → neovim-qt: wrap in separate derivation → https://git.io/fh3uk
<Dandellion[m]>
but that doesn't work if I ssh from some other computer
<klntsky>
@Dandellion[m]: you are supposed to set users' shell at the system-wide config
<Dandellion[m]>
then what is the point of even having the option to install zsh with home-manager?
<klntsky>
@Dandellion[m]: the point is to be able to configure it, maybe
smolboye_ has joined #nixos
smolboye has quit [Read error: Connection reset by peer]
<drager>
The default display manager for nixos is Slim?
<wedens>
Dandellion[m]: it'll set up environment in zsh, at least
<wedens>
it kind of assumes you already have zsh as a login shell
<wedens>
which is note responsibility of per-user configuration
<wedens>
* not
smolboye_ has quit [Client Quit]
<Dandellion[m]>
but it also automatically installs it to the nix-home derivation, which wouldnt really be usefeful if you need to have it installed system wide anyways.
<Dandellion[m]>
But alright I'll just continue launching everyting with -e zsh 😕
<wedens>
why not change it in system configuration for specific user?
<wedens>
well, you may want to use multiple shells. so it's still useful without some shell not being a login shell (you can't have multiple login shells)
<leotaku>
Dandellion[m]: but you don't have to have it installed system-wide. You can have eg. bash as your login shell but still want to configure zsh through home-manager.
<Dandellion[m]>
I'm trying to do as little as possible in configuration.nix but yeah I might do that thanks
smolboye has joined #nixos
johanot has joined #nixos
<__monty__>
Don't most try to do as much as possible in configuration.nix?
<wedens>
it depends.
<wedens>
on thing such as whether you use your configuration on non-nixos, whether you're the only user or not
erictapen has joined #nixos
Makaveli7 has joined #nixos
<wedens>
and there are certainly some useful things in home-manager even if you only use single-user nixos
kochev has joined #nixos
<__monty__>
I didn't mean not using home-manager. I just thought it was common usage.
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
mikky has joined #nixos
<wedens>
__monty__: home-manager is fairly young, so you may not see it being widely used (for some definition of "widely". I've seen quite a lot of configs that use it, actually)
<__monty__>
That's still not what I meant. nvm though.
o1lo01ol1o has quit [Remote host closed the connection]
tzemanov_ has quit [Remote host closed the connection]
<wedens>
sorry, I'm not sure what you mean by "common usage" then :)
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
<__monty__>
It just sounds like most people try to configure their system through configuration.nix as much as possible.
<__monty__>
Using home-manager only for the parts that configuration.nix can't reach.
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
<ivegotasthma>
can home-manager store secrets?
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
<ivegotasthma>
I'd like to keep my firefox profile in it
<leotaku>
__monty__: there's even a home-manager nixos module for configuring home-manager stuff in configuration.nix.
<wedens>
__monty__: I'm not sure about "most", but perhaps they just already have most of things configured via configuration.nix and it works well enough for them. There are also people (e.g. me) who try to do as much as possible in home-manager :)
<wedens>
ivegotasthma: no. it'll end up in the store
<etu>
ivegotasthma: home-manager use the nix-store and the nix-store is not viable for secrets
<__monty__>
But, wedens, home-manager is still beta and subject to changes? Sounds risky.
<mikky>
hi, I've got trouble installing NixOS - it always terminates with "error: while setting up the build environment: getting attributes of path '': No such file or directory". This happens within the `nix build` part of `nixos-install`. I was unable to pull any useful traces or debug logs. I've tried reducing nix expressions to a bare minimum but even the most compact configuration.nix I was able to come up with,
<{^_^}>
[nixops] @amemni opened pull request #1074 → Use device_that_boto_expects in nixops check to avoid NVMes showing as un-attached → https://git.io/fhGp7
kim0 has quit [Quit: Connection closed for inactivity]
<betaboon>
is there something like a "who is hiring" list for nix-related jobs ? :D
Denommus has joined #nixos
cyounkins has joined #nixos
knupfer has quit [Ping timeout: 246 seconds]
<{^_^}>
[nixops] @amemni closed pull request #1074 → Use device_that_boto_expects in nixops check to avoid NVMes showing as un-attached → https://git.io/fhGp7
<gchristensen>
maybe nix's haskell infra should clamp NIX_BUILD_CORES to 4 if it is higher than 4
<gchristensen>
to prevent the additional cores from slowing it down
<AK_>
ivan: so I just installed nixos and did install some packages via nix-env -i. so now I should do nixos-rebuild switch as my user?
<ivan>
AK_: need root privileges for nixos-rebuild switch
<Taneb>
So "overrideCabal package {doCoverage = true;}" doesn't seem to be doing anything
<ivan>
AK_: /etc/nixos/configuration.nix is system configuration after all
<gchristensen>
dtz: ^
<Taneb>
Or a least it's not changing what I expected?
<{^_^}>
[nixops] @amemni closed pull request #1074 → Use device_that_boto_expects in nixops check to avoid NVMes showing as un-attached → https://git.io/fhGp7
<klntsky>
So, to contribute to nixpkgs, I should just fork master, add myself to the maintainers list, put my derivation and create a PR? No more bureaucracy?
<klntsky>
Quite unusual for an OS package repository.
<AK_>
error: The option `services.xserver.displayManager.startx' defined in `/etc/nixos/configuration.nix' does not exist.
<srhb>
Taneb: It should? Are you on a very old compiler set?
smolboye has quit [Quit: WeeChat 2.2]
logzet has joined #nixos
<ivan>
AK_: indeed, it made it in after 18.09
<srhb>
Taneb: Or well, ... (drv: { doCoverage = true; }) -- but I assume that's what you actually did
<{^_^}>
[nixpkgs] @FRidh pushed commit from @MostAwesomeDude to master « pythonPackages.zfec: patch out argparse dependency »: https://git.io/fhGja
sanscoeur has quit [Ping timeout: 252 seconds]
<{^_^}>
[nixops] @amemni opened pull request #1075 → Use device_that_boto_expects in nixops check to avoid NVMes showing as un-attached → https://git.io/fhGjX
<AK_>
How to change shell?
<AK_>
which zsh?
azdle has quit [Remote host closed the connection]
<AK_>
so if I do nixos-rebuild switch, it would create a new profile for my user?
<lassulus>
does anybody know how to install the python-xapian bindings in a nix-shell?
luigy has joined #nixos
<AK_>
I have been these shebangs problems when I was on guix but I solved it
<lassulus>
it seems like they were there once, but got removed?
<yorick>
is haskellPackages.callHackage "HList" "0.5.0.0" {} failing to build for anyone else?
<wedens>
AK_: it'll create a new profile for the system
<clever>
yorick: yeah, the Setup.hs fails
<clever>
yorick: looks like it wants a specific version of cabal
<clever>
gchristensen: this is one of the very first things i messed with in nix, because i made an SD card with armv6l and x86_64-linux builds of nixos
<clever>
gchristensen: and i was bind mounting the right thing to /nix/var/nix/profiles/
<AK_>
what if I wanna contribute? I see there is no efistub support in manual. and I just installed efibootmgr. I'm gonna create a new entry and I'll enable suspend/hibernate with systemd/logind defaults. I'm newb to this distro but I hope I'll learn it and maybe enjoy it.
<{^_^}>
[nixpkgs] @dotlambda pushed commit from @dtzWill to master « pubs: 0.7.0 -> 0.8.2 (#53658) »: https://git.io/fhZe5
<ivegotasthma>
infinisil: how will it find my clone of nixpkgs, I cloned from github and edited locally
<clever>
ivegotasthma: the command infinisil gave doesnt list a file, so it will look for a default.nix in the current directory
<clever>
ivegotasthma: so you will want to cd into nixpkgs before you run it
<ivegotasthma>
ah, okay
<ivegotasthma>
thanks
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
smolboye has joined #nixos
o1lo01ol1o has joined #nixos
endformationage has joined #nixos
chessai has quit [Remote host closed the connection]
<wedens>
https://paste.ee/p/rVmTh when I do this, sometimes `zsh-files` disappear from the store (wthout gc), why?
imdoor has joined #nixos
hoijui has quit [Ping timeout: 264 seconds]
<wedens>
now that I minified the example, I see that it references itself :) perhaps this is the problem
lihop has quit [Ping timeout: 258 seconds]
<wedens>
no, it shouldn't matter, it'll end up in different store locations
<yorick>
clever: how do I build ghc with a different cabal?
lihop has joined #nixos
Ariakenom has quit [Ping timeout: 244 seconds]
Tucky has quit [Quit: WeeChat 2.2]
o1lo01ol1o has quit [Remote host closed the connection]
smolboye has quit [Ping timeout: 246 seconds]
smolboye has joined #nixos
<unacceptable>
How the hell is linuxManualConfig supposed to be invoked? The example from the manual just leaves me with The option `custom-kernel' defined in `/etc/nixos/configuration.nix' does not exist
erasmas has joined #nixos
imdoor has quit [Quit: imdoor]
imdoor has joined #nixos
<wedens>
unacceptable: perhaps you can use `linuxPackages_custom`?
periklis` has quit [Remote host closed the connection]
<infinisil>
yl[m]: You need to call it on the type, not the option
<yl[m]>
infinisil: oh
devalot has quit [Remote host closed the connection]
kochev has joined #nixos
boogiewoogie has joined #nixos
o1lo01ol1o has joined #nixos
smolboye has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
orivej has quit [Read error: Connection reset by peer]
orivej has joined #nixos
sakalli_ has joined #nixos
<yl[m]>
> let transformType = with pkgs; with pkgs.lib; with types; let list3 = elemType: addCheck (listOf elemType) (l: length l != 3); in uniq (list3 (list3 float)); in transformType.check [ [ 0.6 0.0 0.0 ] [ 0.0 0.6 0.0 ] [ 0.0 0.0 1.0 ] ]
<{^_^}>
false
<yl[m]>
interesting that I was expecting this to work
babic has joined #nixos
<yl[m]>
infinisil: do you have ideas here?
m15k has quit [Ping timeout: 256 seconds]
<infinisil>
yl[m]: "length l != 3"
<infinisil>
Shouldn't it be the inverse?
<yl[m]>
let me check
<yl[m]>
oh that's right
<yl[m]>
thx infinisil
<infinisil>
Also, why is list3 recursive? And what's that uniq supposed to achieve?
<infinisil>
Oh wait it's not recursive sry
<infinisil>
But what's that uniq do?
<infinisil>
> uniq [ 1 2 3 1 2 4 ]
<{^_^}>
undefined variable 'uniq' at (string):215:1
<infinisil>
> lib.uniq [ 1 2 3 1 2 4 ]
<{^_^}>
attribute 'uniq' missing, at (string):215:1
<infinisil>
Oh, maybe I don't even know what uniq does haha
<cransom>
> lib.uniq [ 1 1 2 3 ]
<{^_^}>
attribute 'uniq' missing, at (string):215:1
<infinisil>
Ohh, it's unique
<infinisil>
> lib.unique [ 1 2 3 1 2 4 ]
<{^_^}>
[ 1 2 3 4 ]
kochev has quit [Ping timeout: 246 seconds]
<infinisil>
Ah and uniq is from types
<infinisil>
# Value of given type but with no merging (i.e. `uniq list`s are not concatenated).
freedan42x has quit [Remote host closed the connection]
<infinisil>
AHh I see, TIL
emacsomancer has quit [Remote host closed the connection]
<sakalli_>
hi * nixos noob here. any R users here? running R from nix-shell and declaring necessary CRAN packages in default.nix. any pointers how i could install R packages from github?
<{^_^}>
[nixpkgs] @vbgl pushed commit from @ciil to master « abella: 2.0.5 -> 2.0.6 »: https://git.io/fhZv5
o1lo01ol1o has quit [Ping timeout: 240 seconds]
sigmundv_ has quit [Ping timeout: 250 seconds]
smolboye has quit [Quit: WeeChat 2.2]
<wedens>
is it possible to symlink file without copying it to the store using home-manager?
emacsomancer has joined #nixos
emacsomancer has quit [Read error: Connection reset by peer]
emacsomancer has joined #nixos
<wedens>
perhaps I should add it to activation scripts or something. if there is no alternative
emacsomancer has quit [Remote host closed the connection]
smolboye has joined #nixos
emacsomancer has joined #nixos
<{^_^}>
[nixops] @PsyanticY opened pull request #1076 → datadog: Add tags creation to datadog monitors → https://git.io/fhZvA
chessai has joined #nixos
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Ping timeout: 250 seconds]
symphorien has joined #nixos
pie_ has quit [Remote host closed the connection]
pie_ has joined #nixos
chessai has quit [Ping timeout: 240 seconds]
<{^_^}>
[nix-mode] @etu opened pull request #73 → fix-issue-72: Check the correct element from syntax-ppss → https://git.io/fhZfL
<infinisil>
wedens: Probably just `home.files.foo.source = toString ./path/to/file` works. Note that this needs deploment machine = build machine to work (because the path will just be a string, it won't be copied around)
<fendor>
is it possible that i can not execute stack projects that rely on ghc-8.2.1?
<__monty__>
Yeah, I think if you want both stack and nix you'll have to pin the nix expression manually every time you change stackage LTS.
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
xok has joined #nixos
<xok>
hello all...
<xok>
can anyone quickly help me how to install php 5.4 or similar in nixos?..
smolboye has quit [Client Quit]
<fendor>
__monty__, sounds kind of impractical...
<etu>
xok: You'll probably have to go back to an old channel and grab it there. It's probably the easiest way.
smolboye has joined #nixos
<xok>
etu: I am trying to deploy on digitalocean with nixops, can you help me figure out how to do that?..
<__monty__>
fendor: Not fun but not too bad, since you can share it across all projects that need the same ghc versions.
<ottidmes>
is my understanding correct that you can only have one override for haskellPackages? If I define it in the shell.nix of my project the haskellPackages override defined system-wide seems to be ignored
smolboye has quit [Client Quit]
ubert has quit [Quit: Leaving]
jbarthelmes has quit [Ping timeout: 258 seconds]
<__monty__>
Huh, I'd expect them to stack. Unless you're pinning nixpkgs or something.
klntsky has quit [Remote host closed the connection]
klntsky has joined #nixos
o1lo01ol1o has joined #nixos
<ottidmes>
__monty__: I expected that too, but I get an error about a dependency missing, while it is there when I check like this: nix-instantiate --eval --strict --expr 'with import <nixpkgs> { }; haskellPackages.pretty-output.name' and all I do in shell.nix is: pkgs.haskellPackages.override { overrides = haskellPackagesOverlay; } (where pkgs is from: import <nixpkgs> { })
<fendor>
__monty__, do you think there might be a more automatic solution?
<fendor>
or maybe there is none yet, but we could create one?
AK_ has quit [Remote host closed the connection]
<__monty__>
ottidmes: Does it work if you don't override a second time in shell.nix?
<__monty__>
All the advantages nix gives you don't come for free, yet.
AK_ has joined #nixos
o1lo01ol1o has quit [Ping timeout: 250 seconds]
<AK_>
I think I had to add some strings like app-shells/zsh to enable zsh for my user?
<xok>
etu: yeah, the client has an old drupal site, I am migrating it to Nix...
smolboye has joined #nixos
<fendor>
__monty__, yes, it is quite the arch experience, however, i like it. At least when I can find documentation
<xok>
etu: can you help me to convert your thing to use nixops?..
o1lo01ol1o has joined #nixos
<__monty__>
fendor: The manual work is pretty minimal though. Pinning isn't that hard.
theo_ has joined #nixos
smolboye has quit [Quit: WeeChat 2.2]
knupfer has quit [Remote host closed the connection]
Xal has quit [Ping timeout: 250 seconds]
fendor has quit [Ping timeout: 258 seconds]
AK_ has quit [Quit: Lost terminal]
<theo_>
Hi, I recently updated my packages from nixos-18.03 to nixos-18.09 by running sudo nix-channel --add https://nixos.org/channels/nixos-18.09 nixos followed by nixos-rebuild switch --upgrade
smolboye has joined #nixos
<theo_>
It seems to have worked for the most part but it seems to have affected my system in unwanted ways
mariel__ has joined #nixos
<{^_^}>
[nixpkgs] @veprbl pushed commit from @8084 to master « pax-rs: init at 0.4.0 (#53660) »: https://git.io/fhZfh
<theo_>
for example my vimrc was partially corrupted - non-traditional characters were corrupted and changed to regular characters (e.g. unicode arrow turned to â~F~R)
ThatDocsLady_ has quit [Remote host closed the connection]
<theo_>
does anyone know why a channel update would affect a vimrc? it was stored in ~/.vim/vimrc
aleph- has quit [Ping timeout: 258 seconds]
smolboye has quit [Client Quit]
dbmikus has joined #nixos
sanscoeur has joined #nixos
Xal has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
smolboye has joined #nixos
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
<samueldr>
theo_: did you reboot since updating? do you have locally-installed (nix-env) with another channel?
tzemanovic has quit [Remote host closed the connection]
<samueldr>
I think this could be caused by mixing 18.03 stuff with 18.09, as I have the same in terminal software, but this is a visual artifact
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
<equivrel>
Hi, I'm trying to use nix to deploy a website. I'd like to use fetchgit to pull the latest HEAD of a repo, instead of a specific commit. It seems like it's necessary to provide a hash though, perhaps this is the nix way. Is there anything I can do?
<samueldr>
(e.g. tig will show me similar escape sequences in a particular case where I have a pinned nixpkgs of 18.03 and use it from 18.09)
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<theo_>
samueldr: I rebooted straight after the nixos-rebuild switch, and when I tried to edit a file with vim it complained that there was an error in my vimrc, so I don't think it's just a visual artifact
<samueldr>
:/ weird, it might be another issue
<theo_>
samueldr: I do have a local nix-env with some programs installed, but vim wasn't one of them
<{^_^}>
[nixpkgs] @joachifm pushed to master « pacman: set localstatedir to standard FHS path »: https://git.io/fhZJU
ddellacosta has quit [Remote host closed the connection]
<theo_>
samueldr: it's not too big an issue for me outside of a minor annoyance but I'm just worried that other parts of my system may be affected
<{^_^}>
[nixpkgs] @matthewbauer merged pull request #53615 → cups: use v2.2.6 on darwin → https://git.io/fhG7k
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fhZJI
<samueldr>
AFAIK no other reports of similar issues where it *affects* the files, but I've seen the visual thing being mentioned here and there
<duairc>
I'm not sure what to do here other than give up
<theo_>
samueldr: very odd... were the steps I took the correct steps to upgrade? Initially I had just system.stateVersion = "18.09" in my configuration.nix, then I ran the sudo nix-channel -add .... followed by the rebuild-switch --upgrade
fusion809 has quit [Remote host closed the connection]
<samueldr>
,stateVersion theo_
<{^_^}>
theo_: Setting stateVersion to the latest release doesn't update anything and can only break your setup at best. If you want to regardless, Ctrl-F for "stateVersion" in https://nixos.org/nixos/manual/release-notes.html to see things that need to be manually upgraded with the new value
knupfer has joined #nixos
<samueldr>
though changing it to 18.09 is a no-op since nothing changed between 18.03 and 18.09 and was using stateVersion
sanscoeur has quit [Ping timeout: 240 seconds]
hiroshi has joined #nixos
<samueldr>
changing the channel like you described is the way to upgrade
cyounkin_ has quit [Remote host closed the connection]
<theo_>
samueldr: ah my bad, I'll bear that in mind next time.
cyounkins has joined #nixos
<samueldr>
theo_: don't take it personally, you're part of a significant amount of users doing the same thing :)
<RRedcroft>
How can i easily override some package options? I'd like to override package version and sha256
<theo_>
samueldr: it seems quite easy to do, even with the comment warning against it. Guess that'll teach me to read next time!
<theo_>
samueldr: Is there any chance any other part of my system has been affected by this?
<theo_>
samueldr: I can sleep easy if it's just a vimrc but the possibility of any file being affected is worrisome
<samueldr>
theo_: by changing stateVersion? highly unlikely, nothing checks against 18.09 in nixpkgs
<infinisil>
,stateVersion = Setting stateVersion to the latest release doesn't upgrade anything and can only break your setup at best. To actually upgrade NixOS see https://nixos.org/nixos/manual/#sec-upgrading. If you want to update the stateVersion option regardless, Ctrl-F for "stateVersion" in https://nixos.org/nixos/manual/release-notes.html to see things that need to be manually migrated with the new value.
<{^_^}>
stateVersion redefined, was defined as: Setting stateVersion to the latest release doesn't update anything and can only break your setup at best. If you want to regardless, Ctrl-F for "stateVersion" in https://nixos.org/nixos/manual/release-notes.html to see things that need to be manually upgraded with the new value
<samueldr>
theo_: is the vimrc file you're talking about in your home or part of the system?
<samueldr>
because generally, upgrades of the system can't and shoulnd't affect things in your home :/
<theo_>
samueldr: I had changed stateVersion over a month ago, it was only this recent channel upgrade that broke things
<theo_>
samueldr: the vimrc is in /home/theo/.vim/vimrc
<samueldr>
it would have been interesting to see the changes
<chrisaw>
infinisil: Ahh, thanks. That's very helpful. :)
<samueldr>
AFAIK the only ways to affect your files in your home is if the software being updated itself affects those files
knupfer has quit [Ping timeout: 250 seconds]
<samueldr>
so e.g. if $foo_software changed it behaviour so that a once valid file is now invalid, or tries to change the files
ris has joined #nixos
<theo_>
samueldr: wouldn't have thought that would be the case with vim though
<theo_>
samueldr: just getting the old vimrc now, 2 seconds
o1lo01ol1o has quit [Remote host closed the connection]
<samueldr>
theo_: could you `type vim`, and share the path it points to? just in case
<theo_>
vim is /nix/var/nix/profiles/default/bin/vim
o1lo01ol1o has joined #nixos
<theo_>
samueldr: very interesting development though
<theo_>
samueldr: I opened up the old vimrc (one that definitely won't have been corrupted) and it's got the same corruptions
<theo_>
e.g. set listchars=tab:â~T~B·,trail:â~@¢,precedes:â~F~P,extends:â~F~R
<theo_>
where previously the â~T~B would have been a single character
reinhardt has joined #nixos
<samueldr>
okay, so *that* looks like the visual issue I was thinking about, could it be two compounding issues?
<theo_>
samueldr: definitely seems like it. I opened up the same file in emacs and it's fine, no issues with it at all
<theo_>
samueldr: what's baffling is that I hadn't touched my vimrc before or after the upgrade, yet when I tried to open a completely different file with vim it complained that my vimrc was incorrect
<samueldr>
"great", at least it looks like it's not files corrupting themselves :/
<theo_>
samueldr: yeah it's definitely a lesser issue now
<samueldr>
was it specifically that line?
<samueldr>
it could be that listchars had its behaviour changed OR that it's linked to the visual issue
<theo_>
samueldr: the listchars was the problem yeah, after I commented it out I've got no issues with the vimrc
<samueldr>
listchars IIRC is sensible to encoding since it needs to be "a character" to be valid
<samueldr>
if somehow it both shows and thinks the cars are not the unicode characters you were intending it to be, it might get fussy
<theo_>
samueldr: oh hang on
<samueldr>
I have a thought in mind that it could be related to glibc locales, but I am unsure
<theo_>
samueldr: this could actually be a terminal specific issue
<theo_>
samueldr: I'm trying to paste a unicode character which I'm sure urxvt used to accept but now it doesn't seem to
<theo_>
sameuldr: and it comes out exactly as the corrupted characters we see in the new listchars
smolboye has quit [Quit: WeeChat 2.2]
<samueldr>
theo_: is urxvt part of your user profile?
<theo_>
samueldr: no, it's defined in environment.systemPackages
<theo_>
as is vim
<jabranham>
Do we know what kernel version will be the default in nixos 19.03?
<samueldr>
use `type urxvt` to confirm, just in case (or `type rxvt_unicode` or however it is started)
acarrico has joined #nixos
winem_ has quit [Remote host closed the connection]
<samueldr>
jabranham: latest LTS at the time of the release, so it's going to be 4.19
<jabranham>
samueldr: great, thanks
<theo_>
samueldr: urxvt is /run/current-system/sw/bin/urxvt
<yl[m]>
rycee: regarding your comment `Did you have a look at the option description in the generated manual? I think you might want to… ` how to compile the manual?
<samueldr>
theo_: oh, though probably will not fix, it looks like your `vim` was installed via nix-env by root; it seems I missed that earlier
<RRedcroft>
Can someone help me with setting up overrideDerivation? it complains about 'option myHou does not exist' https://pastebin.com/LbxtVU85
<theo_>
samueldr: wow great spot, so it is
sanscoeu_ has quit [Remote host closed the connection]
<theo_>
samueldr: uninstalling from nix-env now, thanks so much
fusion809 has joined #nixos
<samueldr>
theo_: maybe a good time to review what's there with `nix-env -q` ?
sigmundv_ has joined #nixos
sanscoeur has joined #nixos
<theo_>
samueldr: just vim and inconsolata (font) for root. Must have been when I was first tinkering with the system
<theo_>
samueldr: FIXED! urxvt and vim are showing the characters again, thanks so much for your help!
<theo_>
samueldr: would never have thought to look in root's nix-env
* samueldr
sighs of relief
<samueldr>
no actual issue
<samueldr>
well, yes, but a known one
o1lo01ol1o has quit [Ping timeout: 268 seconds]
<theo_>
all's well that ends well
<theo_>
no need to report this anywhere then?
smolboye has joined #nixos
<rycee>
yl[m]: If you have `manual.manpages.enable = true` (which is the default) then it will compile the man page automatically. So it should show up in `man home-configuration.nix`.
<samueldr>
I don't think so
<yl[m]>
rycee: oh I see, thank you! I'll check it out.
imdoor has joined #nixos
<rycee>
yl[m]: You can also set `manual.html.enable = true` (this defaults to false) and then you can run `home-manager-help` to open the HTML manual in a browser.
<yl[m]>
oh cool!
<yl[m]>
rycee: also re: the trivial example, you meant a string instead of the list?
<rycee>
Hmm, you mean the literal example.
<rycee>
Yeah, like a multi-line string formatted like you have it but with the function `literalExample` applied to it.
<rycee>
yl[m]: There are many examples. For example see the `programs.go.packages` option in the `go.nix` file.
<yl[m]>
oh! thank rycee ! I'll update the PR as soon as I can
<{^_^}>
[nix] @veprbl opened pull request #2617 → remove some dead code in nix/repl.cc → https://git.io/fhZJr
dbmikus_ has joined #nixos
dbmikus has quit [Ping timeout: 250 seconds]
AK_ has joined #nixos
<AK_>
user isn't in sudoers file, this incident will be reported. I'm in wheel group.
o1lo01ol1o has joined #nixos
<AK_>
so I can't use sudo .
<infinisil>
AK_: Was reported to Santa, you're now on the naughty list
<exarkun1>
is nixops broken against nixpkgs master@HEAD? error: value is null while a set was expected, at /home/exarkun/Projects/nixpkgs/pkgs/top-level/default.nix:63:5
<{^_^}>
#51858 (by YuMingLiao, 4 weeks ago, open): error: value is null while a set was expected, at pkgs/top-level/default.nix:63:5 (when nixops deploy)
AK_ has quit [Ping timeout: 258 seconds]
hoijui has joined #nixos
<{^_^}>
[nixpkgs] @worldofpeace merged pull request #53590 → Update keybase and related packages → https://git.io/fhGPi
<{^_^}>
[nixpkgs] @worldofpeace pushed 3 commits to master: https://git.io/fhZJ5
smolboye has quit [Quit: WeeChat 2.2]
o1lo01ol1o has quit [Ping timeout: 240 seconds]
fusion809 has quit [Remote host closed the connection]
smolboye has joined #nixos
mariel__ has quit [Ping timeout: 250 seconds]
alex_giusi_tiri has joined #nixos
semilattice has joined #nixos
hoijui has quit [Remote host closed the connection]
<infinisil>
exarkun1: Yeah, use nixopsUnstable to fix
s2mitrov has joined #nixos
<neonfuz>
Is it possible to start a second display manager?
<neonfuz>
I've only ever dealt with multiple x sessions at once, not display manager
<{^_^}>
[nixpkgs] @worldofpeace pushed commit from @r-ryantm to master « gnome-menus: 3.10.1 -> 3.31.3 »: https://git.io/fhZUu
smolboye_ has joined #nixos
smolboye_ has quit [Read error: Connection reset by peer]
tzemanovic has joined #nixos
smolboye_ has joined #nixos
smolboye has quit [Ping timeout: 258 seconds]
gagbo has joined #nixos
RRedcroft has left #nixos ["ERC (IRC client for Emacs 26.1)"]
<{^_^}>
[nixpkgs] @adevress closed pull request #36339 → Fix a dirty hack in the python wheel extractor that did not work if a… → https://git.io/vAQgr
wucke13 has joined #nixos
tzemanovic has quit [Ping timeout: 246 seconds]
<wucke13>
Why isn't the `./configure` script run in the configure phase, if only configureFlags is set?
<{^_^}>
[nix-mode] @etu closed pull request #73 → Check the correct element from syntax-ppss → https://git.io/fhZfL
<gchristensen>
etu: did that break?
<etu>
gchristensen: it normalize everything in the string to the same level
<etu>
gchristensen: Gotta do some thinking :p
<gchristensen>
aye :)
<gchristensen>
etu: can we defer to the standard indentation function while inside that block?
theo_ has quit [Quit: Lost terminal]
tzemanovic has joined #nixos
ambro718 has joined #nixos
VariousResponse has joined #nixos
Dedalo has joined #nixos
<ottidmes>
is there some tooling I could use to do automatic PRs to nixpkgs? It is to maintain a list of packages where there would be multiple version bumps every week or so, so maintaining it manually would be annoying
<VariousResponse>
hello all, does anyone here use mopidy and some cli for music on Nixos?
ddellacosta has joined #nixos
<ottidmes>
and those packages are not on repology so nixpkgs-update cannot be use
Guest16328 has quit [Quit: WeeChat 2.3]
<etu>
gchristensen: You mean not nix-indent-region? In theory sure, we have a function to detect if we're in a string. Not sure how exactly how/what it does but the name suggest what it's for
ddellaco_ has joined #nixos
<apaul1729>
wucke13 do you have some specific program you're trying to build?
<dmj`>
is there a way to manipulate a CMakeLists file
<dmj`>
from a derivation
<dmj`>
besides sed'ing
Dedalo has quit [Ping timeout: 272 seconds]
alex`` has quit [Ping timeout: 240 seconds]
<simpson>
ottidmes: There's whatever ryantm uses, too. `hub` does work but it's a little quirky and also ISTR that it has an unexpected name in nixpkgs.
<simpson>
> hub
<{^_^}>
undefined variable 'hub' at (string):215:1
<simpson>
Case in point.
reinhardt has quit [Quit: Leaving]
VariousResponse has quit [Ping timeout: 256 seconds]
alex`` has joined #nixos
o1lo01ol1o has quit [Ping timeout: 240 seconds]
<infinisil>
Don't tell me the state got wiped again..
<infinisil>
> :v
<{^_^}>
All bindings: _add _assign _attrName _attrs _blue _bold _bool _bracket _concat _int _null _num _number _red _semi _set _show _string a aandb add allDeps array2list assign attr attrName attrs b bar bold boldcolors boldpalette bool bracket buildList builtinsbackup c cToF codes coinflip colors compose composeAlt composeHack concat contents curly cyan deepEval descriptions doublestring drop end esc eval eval2 f f2 f3 fact false file fnv1a32 fnv1a64 foo fo
<wucke13>
apaul1729: I want to write a build expression for a program which is not in the nixpkgs. I'm just wondering, because the configure script is not automatically called, even though thats what the nixpkgs manual states
kochev has joined #nixos
<ottidmes>
simpson: nixpkgs-update is what ryantm made, but I believe it depends on repology version bumps and I am not aware if I can just point it to a different source
Dedalo has joined #nixos
aleph- has joined #nixos
smolboye has joined #nixos
<aleph->
Getting go apps running is a bother.
o1lo01ol1o has joined #nixos
<apaul1729>
wucke13 that's weird. the project has a configure script in the root dir right?
<{^_^}>
[nixpkgs] @worldofpeace pushed commit from @avdv to master « nixos/luksroot: Fix typo `Verifiying` -> `Verifying` »: https://git.io/fhZTr
<mgdm>
Anyone here familiar with running Kubernetes in Nix? I just followed https://rzetterberg.github.io/kubernetes-nixos.html on my 18.09 machine, and it started the master but not any nodes, so I can't schedule anything
logzet has quit [Remote host closed the connection]
<porrifolius>
How do you resolve an 'Encountered missing dependencies' error when using nix-env to set up a haskell development environment?
<porrifolius>
I've done a nixos-rebuild switch --upgrade and now, as a normal user, have setup my nixpkgs config as advised in the manual to specify my compiler as ghc863 using ghcWithHoogle...
<elvishjerricco>
porrifolius: "Encountered missing dependencies" is usually either because the Nix expression is wrong, and omitted a dependency, or because a dependency is not within the version bounds of the package.
<porrifolius>
eventually the building of polyparse complains about not have a dependency for base<4.12 (I think... I've just tried ghc862 and it complains for memory package).
ambro718 has quit [Quit: Konversation terminated!]
<elvishjerricco>
porrifolius: Yea the fact that it's base just means that the package has too tight a version bound on base (since base is included with GHC, the Nix expression can't omit it)
<elvishjerricco>
porrifolius: Most likely, the author was just being conservative, and you should be able to freely use `pkgs.haskell.lib.doJailbreak` to erase the packages version bounds. But it's possible the author actually knows of a reason that the package shouldn't be built with base 4.12 (i.e. ghc 8.6)
<porrifolius>
elvishjerricco: I don't believe I'm using any nix expressions but what comes in from the channel... so I'll have to set up some overrides or something for failing packages? After figuring out what version of base ghc863 actually provides?
jabranham has quit [Quit: ERC (IRC client for Emacs 27.0.50)]
<porrifolius>
elvishjerricco: Something new to learn! :) I'll have a look at doJailbreak... having not done anything like this I guess I'll end up with something in the myHaskellEnv expression in my config that wraps memory/polyparse with a doJailbreak over base... something like that?
<porrifolius>
elvishjerricco: thanks! I'll take a loook.
<apaul1729>
wucke13 yeah nix can be a little annoying if you have cmake as a build input
<Baughn>
mgdm: I'd recommend using something else for a base OS. Or alternately, not using kubernetes -- minikube works fine, and K8s is rarely the best option for a personal system of any kind. NixOS does have some very good alternatives.
<elvishjerricco>
porrifolius: Or you can just replace your use of `haskellPackages` with the `haskellPackages.extend` expression I had above
<apaul1729>
it'll try to use cmakeConfigurePhase, so make sure to set `dontUseCmakeConfigure = true;`
<mgdm>
Baughn: In my case, my system has swap, so kubelet didn't want to start. It's purely for my own experimentation though so I can override that
<Baughn>
mgdm: Oh, that. I have Opinions on that.
<Baughn>
(In short, there is no point in the no-swap restriction; it doesn't actually help.)
eadwu has joined #nixos
wedens has quit [Quit: Connection closed for inactivity]
<mgdm>
Baughn: I can maybe understand the logic but it is a weird default I think
<mgdm>
I'd rather let you do it but with a warning
<Baughn>
The problem is, turning off swapping doesn't actually turn off swapping.
<Baughn>
Swap files/devices are *only* required for paging out *anonymous* memory. It has no effect on the kernel's ability to write out buffers, drop caches, or write-back non-anonymous memory.
<{^_^}>
[nixpkgs] @timokau opened pull request #53670 → Vim plugins update → https://git.io/fhZkf
<Baughn>
mgdm: So all you're really doing by disabling swap is forcing the kernel to swap out hot named pages in preference to cold anonymous ones.
worldofpeace has quit [Quit: worldofpeace]
<__monty__>
Baughn: Are you talking about when you issue swapoff or does that include when you don't have a swap partition/file at all?
AK has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
<Baughn>
I'm not sure I understand. Swapoff is how you get to that state.
o1lo01ol1o has joined #nixos
<AK>
I can see files for many distributions for a software. How can I install it with nix?
<mgdm>
__monty__: AIUI the kernel will write out memory from mmapped files back to disk to clear memory if you don't have swap (which you probably don't want)
<Baughn>
Indeed.
freedan42x has quit [Quit: Leaving]
<__monty__>
Baughn: Is the "swapping out" that continues after swapoff swaping to the swap partition/file? So would it not happen at all if you did not have any swapspace.
<Baughn>
It'll also do so if you do have swap, but it's less likely to do so.
<__monty__>
So this happens before OOM killing?
<mgdm>
yeah
<__monty__>
Hmm, interesting.
<mgdm>
it'll also get rid of disk caches and such like before resorting to OOM
<Baughn>
__monty__: No, after you issue swapoff -a you don't *have* a swap partition. That's the point.
worldofpeace has joined #nixos
<Baughn>
It won't keep using a partition you told it not to use.
<Baughn>
But it will keep writing out files to the filesystem, dropping caches and so forth.
<__monty__>
Yeah I think I get it. The swapping you're talking about is not actually swapping but other things that have a similar effect.
<Baughn>
It absolutely includes swapping.
<__monty__>
How about guidelines for how much swapspace to provide?
knupfer has joined #nixos
<AK>
nix-env -iA nixos.anydesk
<Baughn>
You can mmap a file on disk as read-write and use it for memory, and it'll act exactly like space on a swap partition does for anonymous memory.
<AK>
no packages were found
W1lkins has quit [Quit: Bye]
<Baughn>
... Assuming you tell the kernel not to aggressively keep the file up to date, anyway.
W1lkins has joined #nixos
<Baughn>
This isn't a rare situation. *Lots* of applications use RW mmap.
<AK>
I just rebuild after upgrading to unstable but still I can't see anydesk
<AK>
from 18.09
<Baughn>
`nix search -u anydesk`
<cransom>
anydesk is unfree, do you allow unfree packages?
<hodapp>
Baughn: Is it basically backed by memory as long as there is enough memory to cache, but just use disk otherwise?
<Baughn>
Mmapped files are a little special. The kernel will attempt to write changed pages to disk ASAP, which is not very like swap, but there are ways to make it not do that.
<Baughn>
Madvise, most obviously. Deleting the file also helps.
<Myrl-saki>
TIL, nix search.
<ivan>
nice
<Myrl-saki>
I just ag my nixpkgs
gagbo has quit [Quit: I'm out !]
sigmundv_ has quit [Ping timeout: 258 seconds]
<jtojnar>
worldofpeace: do you have the tillix branch somewhere?
o1lo01ol1o has quit [Remote host closed the connection]
lord| has quit [Read error: Connection reset by peer]
o1lo01ol1o has joined #nixos
lord| has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
<{^_^}>
[nixpkgs] @ElvishJerricco opened pull request #53674 → Limit parallel building of Haskell packages. [Fixes #53665] → https://git.io/fhZki
erictapen has quit [Quit: leaving]
<wucke13>
apaul1729: Thanks for the hint, without cmake it works as expected
chpatrick has quit [Quit: Connection closed for inactivity]
o1lo01ol1o has quit [Ping timeout: 246 seconds]
<{^_^}>
[nixpkgs] @jacereda opened pull request #53675 → darwin: basic_cmds was installing binaries in the wrong path → https://git.io/fhZkD
jacereda has joined #nixos
doyougnu has joined #nixos
tzemanovic has quit [Ping timeout: 252 seconds]
tzemanovic has joined #nixos
apaul1729 has quit [Remote host closed the connection]
imdoor has joined #nixos
freedan42x has joined #nixos
<freedan42x>
Could someone help? How can I install "broadcom_sta"?
<{^_^}>
[nixpkgs] @matthewbauer merged pull request #53675 → darwin: basic_cmds was installing binaries in the wrong path → https://git.io/fhZkD
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fhZkh
JosW has joined #nixos
cyounkin_ has joined #nixos
Ariakenom has quit [Read error: Connection reset by peer]
<clever>
freedan42x: boot.extraModulePackages = [ config.boot.kernelPackages.broadcom_sta ]; i think
cyounkin_ has quit [Remote host closed the connection]
cyounkin_ has joined #nixos
o1lo01ol1o has joined #nixos
cyounkins has quit [Ping timeout: 246 seconds]
<{^_^}>
[nixpkgs] @matthewbauer merged pull request #52643 → ledger: Include info files → https://git.io/fhfSi
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fhZIq
freedan42x has quit [Remote host closed the connection]
knupfer has quit [Ping timeout: 268 seconds]
<rain1>
hey i wanna package the enigma game for my nixos system <https://www.nongnu.org/enigma/> can you help please. What way should I do this? I think it would be nice to just make one .nix file and somehow build and install it from that
<rain1>
I don't want to clone the whole nixos packages thing, last time I did that it started compiling all software from source
<rain1>
I tried the my-hello.nix example, I'll try to base it off that
povman has quit [Remote host closed the connection]
detran has quit [Ping timeout: 250 seconds]
<rain1>
https://bpaste.net/show/dad0f1b8d865 I tried making a nix expression for it and it started building, but i got this compile error. Do you have any tips for debugging it and fixing it or do you think I should tell the enigma devs?
wucke13 has quit [Quit: WeeChat 2.2]
<ottidmes>
rain1: could you also paste the expression itself?
<{^_^}>
#53597 (by 8084, 1 day ago, open): purescript failing to build
jomik has joined #nixos
<jomik>
I am using direnv to load a shell.nix. But for some reason this results in various commands not working. emacsclient can not find the server and `fuck` does not find a dependency.
<jomik>
Anyone have any idea why this can be?
alex_giusi_tiri has quit [Ping timeout: 244 seconds]
<duairc>
Is it possible to use nixpkgs.config.packageOverrides to add a patch to a derivation?
<rain1>
I added CPPFLAGS="-Wno-deprecated-declarations"; but it didn't seem to help
<gchristensen>
jomik: run `env` before and after direnv loads the env and diff tem?
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
<ottidmes>
rain1: I tried the patch used by Arch Linux' package for it, but it too failed
<rain1>
oh interesting! thank you for trying it
tzemanovic has joined #nixos
<rain1>
that was a good idea, i didn't think of checking other distros for patches
<duairc>
gchristensen: Awesome!
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
<jomik>
gchristensen: I guess for fuck it makes sense that it may have trouble since PYTHONPATH gets set. Maybe. But I don't get why emacsclient wont find my /tmp/emacs1000. There is a bunch of NIX_* variables.
<jomik>
And then stuff has been prepended to my path.
tzemanovic has joined #nixos
<jomik>
But `which emacsclient` returns the same.
tzemanovic has quit [Remote host closed the connection]
dermetfan has quit [Ping timeout: 272 seconds]
bvdw has quit [Quit: Ping timeout (120 seconds)]
o1lo01ol1o has joined #nixos
bvdw has joined #nixos
<ottidmes>
what is the policy on adding addHook's when overwriting phases? Someone in a review is suggesting I add them, but I am not convinced
sir_guy_carleton has joined #nixos
dermetfan has joined #nixos
strobelight has quit [Ping timeout: 252 seconds]
o1lo01ol1o has quit [Ping timeout: 244 seconds]
hoijui has quit [Remote host closed the connection]
ambro718 has quit [Quit: Konversation terminated!]
<rain1>
yay it works I completed the package
dbmikus_ has quit [Ping timeout: 268 seconds]
colonel_john_by has joined #nixos
colonel_john_by has quit [Client Quit]
sigmundv_ has joined #nixos
<ottidmes>
rain1: what was needed to fix it?
sir_guy_carleton has quit [Ping timeout: 258 seconds]
colonel_john_by has joined #nixos
<rain1>
i changed ifs != NULL to !ifs (and swapped the branches) with a .patch. and I added imagemagick which was used
ris has quit []
ris has joined #nixos
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
dbmikus_ has joined #nixos
fresheyeball has joined #nixos
colonel_john_by has quit [Client Quit]
sir_guy_carleton has joined #nixos
alex_giusi_tiri has joined #nixos
erasmas has quit [Quit: leaving]
<jomik>
For some reason this command fails " nix-shell --pure "${drv}" --show-trace --run "$(join_args "$direnv" dump bash)" > "${dump}""