<clever>
the fix is already in nix master, and will hold until you have >1024 channels, lol
<ashkitten>
do you know when that'll get to me in nixos-unstable channel?
jluttine has joined #nixos
<clever>
ashkitten: unknown, but you can temporarily just set nix.package in configuration.nix
<ashkitten>
alright
<inkbottle>
I did find the output of "nix-store -r" there: "man /nix/var/log/nix/drvs/dw/4bc73lw94nf2971lgy8mxlrg8id3qi-foo.drv.bz2"; but otherwise it behaved as if the option "--no-build-output" was set.
<li_matrix>
since 'localSystem' would be set by the first eval, it doesnt seem so
<hpfr[m]>
clever: so if I’m running nixos-rebuild, nothing it needs can be gc’d? Not just the current job within the rebuild’s needs
<clever>
li_matrix: sorta, a derivation has an arch its supposed to run on, and if the current machine cant run that arch, its forced to use a remote build machine
<li_matrix>
so, no
<clever>
hpfr[m]: only what the current rebuild needs will be rooted, and only once the main build has started, IFD's and the eval mess things up a bit
<li_matrix>
it isnt smart enough to cross compile
<clever>
li_matrix: not on its own, but you can configure it for cross-compiling
<clever>
li_matrix: if you set system to x86, but crossSystem to arm, and attempt to run the build on an arm machine, it will find the "nearest" x86 machine to do the job
<li_matrix>
no im talking about distributing builds
<li_matrix>
with mixed cluster
<clever>
ah, no
<clever>
it wont mix native and cross to suit the host arch
<clever>
which compiler you use affects the hash of $out
<clever>
so it wont share products between native and cross
<li_matrix>
yes of course
<li_matrix>
no intensional store
<li_matrix>
that was nix's biggest mistake, not hashing the output before using them as inputs again
<clever>
that relies on the build actually being reproducible
<clever>
have you gotten a cross-compiler to produce a bit perfect replica of a native binary?
<li_matrix>
im all setup to write myx, my take on nix, but wont start for a few weeks yet
<li_matrix>
no dynamic linking to avoid elf problems
<hpfr[m]>
clever: I’m not sure I understand what you mean. If I’m building one program within a rebuild, gc’ing won’t remove the path to an unrelated program already built within the running rebuild, correct?
<clever>
hpfr[m]: anything the nixos-rebuild would have built (but was already built), and anything it needs in the future (sources for something it will build soon)
<hpfr[m]>
Ok, so all the stuff the rebuild requires is safe, thanks
<{^_^}>
[nixpkgs] @worldofpeace opened pull request #71614 → deepin.dde-kwin: init at 5.0.0 → https://git.io/JeR2a
orivej has quit [Ping timeout: 250 seconds]
<li_matrix>
<clever "have you gotten a cross-compiler"> i havent looked, but those are the questions that keep me up at night :D
<li_matrix>
some ppl dream of gold, i dream of bits
<Cement>
god my nixos is scuffed
<clever>
Cement: ?
<Cement>
I haven't spent enough time with it to even know how to make it update or pull down the packages I need
<Cement>
I'm 8 versions behind on OS chromium, but don't know how to update that
<clever>
Cement: in general, sudo nixos-rebuild --upgrade switch
<clever>
ah, for that, you want either `sudo nix-channel --update ; nix-env -iA nixos.chromium` or remove it, add it to systemPackages, and do the previous
<Cement>
how do I undo what nix build does
<clever>
theres nothing to really undo with `nix-build`
Okinan has quit [Quit: Konversation terminated!]
<Cement>
no, `nix build`
<clever>
same there, all it does is build things and make a result symlink
<Cement>
I see
<Cement>
so it'll disappear once I reboot?
<clever>
it will remain in /nix/store until you both remove result and collect garbage
Ralith_ has quit [Ping timeout: 240 seconds]
<{^_^}>
[nixpkgs] @nixos-channel-bot pushed 19 commits to nixos-unstable-small: https://git.io/JeR2o
hyper_ch2 has quit [Remote host closed the connection]
<dminuoso>
6 servers, 40 processes, close to a hundred configuration files, a lot of intertwining between the services and servers - nixos is proving to be extremely well suited to complicated mail setups! :)
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<bahamas>
when deploying to a NixOS box, how do you handle the situation where you host multiple apps on the same box. in my mind, that means that you don't keep a configuration.nix in each project repo. you can rebuild the package and copy its closure, but you also need to update the service that points to the new package
<dminuoso>
sb0: Remember that pkgs is just an attribute set.
<dminuoso>
sb0: Consider how you could trivially do `let left = import <left> {}; right = import <right> {} in ...` and then use left.vim and right.vim accordingly.
<sb0>
dminuoso: not really, if I override pkgs with a "let pkgs = ..." in the machine definition then there are still parts that get evaluated by nixops itself using the nix-channel set up on the machine that is running nixops
<{^_^}>
[nixpkgs] @worldofpeace pushed 2 commits to staging-19.09: https://git.io/JeRK2
<{^_^}>
[nixpkgs] @FRidh merged pull request #71457 → openssl: switch to linux-x86 and linux-x86_64 targets → https://git.io/JeBFo
<{^_^}>
[nixpkgs] @FRidh pushed commit from @dingxiangfei2009 to master « openssl: switch to linux-x86 and linux-x86_64 targets »: https://git.io/JeRKw
marcusr has quit [Remote host closed the connection]
marcusr has joined #nixos
<{^_^}>
[nixpkgs] @FRidh pushed to master « Revert "openssl: switch to linux-x86 and linux-x86_64 targets" »: https://git.io/JeRKK
<{^_^}>
[nixpkgs] @FRidh pushed commit from @dingxiangfei2009 to staging « openssl: switch to linux-x86 and linux-x86_64 targets »: https://git.io/JeRKX
<jtojnar>
chenhq2005_ I forgot you have to have `services.bamf.enable = true;` in your configuration.nix, to see running applications (and also that might not work on Wayland)
<yorick>
I have a wireguard tunnel with an ipv6 address and allowedips=0.0.0.0/0,::/0. ipv6 works but isn't the default anywhere. how do I make it prefer ipv6 over ipv4?
<lukego>
Hey what's a good choice of window manager that has basic niceties (e.g. launch menu) but no silly stuff (like kde with animations etc)? I tried enabling xfce but all I got was an xterm in 19.09...
<{^_^}>
[nixpkgs] @c0bw3b pushed to master « monkeysphere: restrict to linux platforms »: https://git.io/JeRib
ubert has joined #nixos
<yorick>
hey, where did stdenv.shellPackage go?!
<yorick>
oh, just stdenvNoCC.shellPackage is gone?!
<exfalso>
Hi, I'm currently using a shell.nix/nix-shell to have a reproducible build environment for a project. Can this be achieved by other means (nix run?)? I'm trying to avoid any impurities implied by shell.nix
<eyJhb>
I think it is something like that, which makes it fail
kvda has joined #nixos
<eyJhb>
I might be able to test it real quick
<eyJhb>
2 secs
<lukego>
anybody have a good way to install minecraft mods on nixos? :)
<Cement>
ok, so srk, it worked, but now I've got a more specific problem. the openssl package installs both the libs and the bin
<aanderse>
that won't build because rootPassword was removed
<Taneb>
lukego: I've only tried in a general Linux way, which is annoying
<Taneb>
I wonder if there's scope for doing it through Nix...
<aanderse>
* option was removed
<eyJhb>
The hell, why does it try to use mariadb...
<eyJhb>
Oh yeah, I am running 19.03...
<Cement>
but the path that the dollar curly exports is only the bin, and I need the lib
<eyJhb>
Then it is fixed, as the error was `Oct 22 11:39:41 gs-pluto hdm3cs4xc38zkd94pw1ikmjpfdkbs6ki-unit-script-mysql-post-start[100068]: ERROR 1054 (42S22) at line 2: Unknown column 'Password' in 'field list'`
<exfalso>
multun: that's what I've been using but that still leaks in bashrc shenanigans
amir has quit [Read error: Connection reset by peer]
<lukego>
Taneb: does the basic linux way just mean manually downloading *.jar from adware sites, copying them into the right directory, and manually chasing dependency problems?
<Taneb>
lukego: more or less
amir has joined #nixos
<Taneb>
I didn't have much fun with it
<Taneb>
Sadly the Minecraft community seem to mostly use the Twitch launcher, which doesn't have a Linux version to my knowlege
<lukego>
well I have already installed some mods on my Mac, and Linux probably wants the same *.jar, so maybe I can "package" that directory of jar files in some simple way for starters
<exfalso>
I messed up my nix store a little, a couple of derivations have been deleted. Is there any way I can clean up dangling references to them?
<eyJhb>
aanderse: fair :D Will update at some point later ;) I don't use the option anyways... - Thanks! Just got distracted by more things :p
toppler has quit [Ping timeout: 240 seconds]
hax404 has joined #nixos
<exfalso>
ah found it, nix-store --delete
<eyJhb>
Any ideas about this? - Oct 22 12:17:54 gs-pluto systemd[1]: systemd-timesyncd.service: Main process exited, code=exited, status=238/STATE_DIRECTORY
wfranzini has quit [Quit: wfranzini]
<LinuxHackerman[m>
eyJhb: see 19.09 release notes
<LinuxHackerman[m>
you need to have your stateVersion set right
<eyJhb>
StateVersion is 19.09, isn't that correct?
<eyJhb>
Wait, I might be misunderstanding stateVersion
kleisli has quit [Ping timeout: 240 seconds]
<Cement>
only on nixOS would "easy-to-install" toolchains be a major headache and source of massive problems
Fare has quit [Ping timeout: 268 seconds]
<LinuxHackerman[m>
eyJhb: it should be set at initial installation then left as is. As the comment generated by nixos-generate-config and the options' documentation explains
<LinuxHackerman[m>
option's*
<eyJhb>
Hmm. I would expect it to be able to change over time :/
<LinuxHackerman[m>
you can wipe all your state and set a new stateVersion
<LinuxHackerman[m>
but the idea is not to.
psyanticy has joined #nixos
Cement has quit [Remote host closed the connection]
<hlavaty>
hi /etc/munin/plugins is empty in nixos1909. it used to contain plugins without me having to specify anything. moreover i havent figured out, how to actually add the default plugins. any ideas how to get the plugins back?
<kaliumxyz>
how would you make sure your init job only runs once?
ajs124 has quit [Quit: Gateway shutdown]
ajs124 has joined #nixos
<hlavaty>
kaliumxyz: touch and test a persistent file; or if you mean a systemd service then run only once
anon has joined #nixos
<hlavaty>
or use flock
anon is now known as danielstaleiny
danielstaleiny has quit [Client Quit]
<kaliumxyz>
okay, I'm using run once but doesn't seem like that runs once, I'll use a persistent file to keep track of the state.
<kaliumxyz>
Need to copy and overwrite some files on some conditions to update configuration, but don't want to always do this.
<kaliumxyz>
in other news: TIL NixOps doesn't add a SWAP file by default and you might want to be mindfull of this.
<anon>
Hi all, I am starting with nixos and I would like to apply my $USER/.vimrc to my root vim, how would I do that ? Should I define something specific in configuration.nix ?
<{^_^}>
Special commands: find tell locate expand - Commands sorted by use count, page 0 (use ,<n> to view page <n>): help libraries unstable escape'' library unfree declarative howoldis ping escape" paste callpackage overlay -a ask pinning profiling pr nixlang++ which-channel imperative wololo xy cache fancy-uninstall pills stateversion xml botsnack exec channels invite loot haskell home-manager stuck ifd pointers tias escape-special timer dontask nur
<jD91mZM2>
,unstable-docs
<{^_^}>
jD91mZM2: Did you mean unstable-man?
<{^_^}>
man "$(nix-build -I nixpkgs=channel:nixos-unstable --no-out-link '<nixpkgs/nixos>' -A config.system.build.manual.manpages)/share/man/man5/configuration.nix.5"
cosimone has quit [Remote host closed the connection]
cosimone has joined #nixos
<{^_^}>
[nixpkgs] @nixos-channel-bot pushed 9 commits to nixos-19.09-small: https://git.io/JeRSS
<kyren>
okay, I'm having an issue with gnome that's really hard to describe the symptoms of, at some point recently a bunch of stuff started happening, my user does not show up in the user picker in gdm and the gnome wayland session stopped working (but not the xorg session)
<{^_^}>
[nixpkgs] @c0bw3b pushed commit from @r-ryantm to master « friture: 0.36 -> 0.37 (#71608) »: https://git.io/JeR9Q
<glittershark>
I'd love to be able to have nix-serve track when store paths are used and delete things that haven't been read for a certain amount of time, for example
noudle has joined #nixos
<kyren>
okay, I think I've figured it out, with the version of gdm or zsh in nixos-19.09 (not unstable?) I cannot log in via gdm wayland session IF my user's user.shell is set to pkgs.zsh
<glittershark>
leo_: I'd only like to remove stuff that hasn't been read in a certain amount of time
toppler has quit [Ping timeout: 252 seconds]
<leo_>
You can use systemd.tmpfiles for that
<jD91mZM2>
What's the nixpkgs policy on stuff like pypi2nix and crate2nix? If I add a default.nix to my repository that builds my program, can I just link it from nixpkgs or should nixpkgs copy the derivation?
<{^_^}>
[nixpkgs] @nixos-channel-bot pushed 189 commits to nixos-unstable-small: https://git.io/JeRHq
<leo_>
No?
<glittershark>
leo_: I'm not sure what you mean, sorry
<kyren>
jD91mZM2: I haven't filed an issue yet but I'm going to, I just had to make sure I could isolate it from other things going on like home-manager
<dsx>
Is there a way to nicely get nix attribute set from yaml?
ThatDocsLady has joined #nixos
<adisbladis>
dsx: Nope
<adisbladis>
You're gonna have to abuse IFD for that
<adisbladis>
,IFD
<{^_^}>
import-from-derivation (IFD) is when you evaluate nix from a derivation result, for example `import (pkgs.writeText "n" "1 + 1")` will evaluate to 2. This is sometimes problematic because it requires evaluating some, building some, and then evaluating the build result. It has been described as "such a nice footgun."
<ravndal>
is it expected that `nix-env -u` does nothing while `nix-env -iA nixos.{list,of,packages}` downloads and installs new derivations when the version number is unchanged (but rebuilds have happened due to dependencies)
<ravndal>
following a channel update
<{^_^}>
[nixpkgs] @markuskowa pushed commit from @cruegge to release-19.09 « texmaker: use qt5 mkDerivation »: https://git.io/JeR72
<jlv>
I'm running into a weird issue with `nix-shell`. Calling `nix-shell` does not enter the shell, but when I `exit` after calling `nix-shell` it enters the shell. I'm think it has to do with a command in `shellHook` that prints to standard output.
Niall has quit [Ping timeout: 246 seconds]
<pbb>
I changed the display resolution from 4k to 1080p and now the audio works fine o.o
gkmngrgn has quit [Ping timeout: 246 seconds]
<m15k>
Maybe someonw knows an example of an option which enables another option too.
<infinisil>
m15k: Just `other-option = mkIf config.an-option true`?
kaba has joined #nixos
<infinisil>
Or similarly (but with slightly different semantics) `other-option = config.an-option`
oscarvarto has joined #nixos
Niall has joined #nixos
<m15k>
infinisil: I guess you're talking about the `other-option` specification?
Fare has quit [Ping timeout: 250 seconds]
<infinisil>
Not sure what you mean
<infinisil>
Maybe you should expand your question a bit?
<{^_^}>
[nixpkgs] @bjornfor opened pull request #71707 → [backport] nixos-rebuild: support sudo + --target-host → https://git.io/JeRFV
<infinisil>
m15k: Ah, can't do that in `apply` (generally `apply` should almost never be used)
<m15k>
When I get you right you suppose to add mkif to `isContainer` option specification?
<infinisil>
m15k: You need to set it in the config section of that module
<jlv>
Oh, I think I figured it out. Always happens right after asking for help, lol. The issue was `spagoPkgs.buildFromNixStore`, which I already suspected, but specifically it was because I removed the "#!/usr/bin/env" line from the script. That hash-bang caused issues in `buildPhase` and I just copied the line into `shellHook` without thinking about
<jlv>
the hash-bang.
<infinisil>
m15k: You declare options in the `options` section, another section is the `config` section in which you can do `config.boot.isContainer = config.boot.isLxcContainer`
<johnw>
I'm trying to nix copy to a single-user installation on Darwin, but I keep getting error: cannot open connection to remote store 'ssh-ng://hermes': changing permissions of directory '/nix/var/nix/profiles/per-user/root': Operation not permitted
<johnw>
<pbb>
eyJhb: I found out the cause: it always plays with twice the speed when a 4k output is connected and the sound is played over hdmi
<johnw>
does anyone know what the permission ought to be? I've tried changing it to both my user account, and to root; it's 755
<pbb>
I had never done that before. setting the resolution to 1080p sets the playback speed back to normal
<oscarvarto>
How can I avoid nixos to update a package? I have installed nerd-fonts, and I don't want/need to download (again) more than 2 GB of fonts
kayvan` has quit [Remote host closed the connection]
acarrico has quit [Remote host closed the connection]
chloekek has joined #nixos
<{^_^}>
[nixpkgs] @bcdarwin opened pull request #71708 → EZminc: 2017-08-29 -> 2019-07-25; unbreak ezminc and pyezminc → https://git.io/JeRFH
<eyJhb>
pbb: the hell, seems weird
<m15k>
infinisil: Mh I wonder if there's another way? I guess a drawback would be that you bind that option explicit to another one.
<infinisil>
m15k: It's how the module system works, there's no other way
zeta_0 has joined #nixos
toppler has quit [Read error: Connection reset by peer]
<jlv>
oscarvarto: You can install a package from a specific nixpkgs revision, so upgrading your nixos channel wouldn't change it. However, derivations should be cached locally. I'm not sure how the nerd-fonts package works, but I would expect it to fetch fonts separate from the package, in which case it should only re-download if the fonts themselves
<infinisil>
m15k: You can do `isContainer = mkIf config.boot.isLxcContainer true` as mentioned earlier
<jlv>
change.
<infinisil>
m15k: This way it's only set to true if isLxcContainer is true, while it's set to the default if isLxcContainer is false
<m15k>
Mhh I see. Thanks infinisil.
<zeta_0>
hello guys what is the best way to handle javascript packages with nix ?`
<{^_^}>
[nixpkgs] @bcdarwin opened pull request #71710 → elastix: 4.9.0 -> 5.0.0 (and mark unbroken) → https://git.io/JeRFp
<adisbladis>
zeta_0: See what I just wrote
<adisbladis>
Not all attrsets are searchable
freeman42x has joined #nixos
<jlv>
adisbladis: The search zeta_0 just made should probably work at least, when you are specifically looking for a sub-package.
<zeta_0>
i'm confused
<jlv>
zeta_0: If you run `nix-shell -p nodePackages.node2nix` you should get a shell with access to `node2nix`.
gkmngrgn has joined #nixos
<jlv>
zeta_0: It is just a limitation of that search. It doesn't show you nodePackages.
<adisbladis>
jlv: No, that web search is using a precomputed index. The nodePackages set is not even included in that index.
Guest10021 has left #nixos [#nixos]
gkmngrgn has quit [Client Quit]
<zeta_0>
jlv: so i need to place `nodePackages.node2nix` in home.nix(in home packages) ? is this the correct way to install the package ?
<adisbladis>
zeta_0: Yes, but for development dependencies it's a good idea to use nix-shell
gkmngrgn has joined #nixos
<zeta_0>
ok thanks guys
<jlv>
zeta_0: That will work for giving you global access to node2nix. You should also look into shell.nix (or default.nix) for projects, so you can easily create development environments for specific projects without polluting your global environment.
<zeta_0>
jlv: isn't home.nix my local user environment ? i thought it's not global ?
m15k has quit [Ping timeout: 260 seconds]
<adisbladis>
zeta_0: With nix-shell you can be even more granular and have project-local dependencies :)
<jlv>
zeta_0: Sorry, by global I meant available everywhere for your user, not the system-wide global. With Nix, you can have environments that are local to a specific project, so we have an even more granular version of "local".
<zeta_0>
also, i've heard of these other packages: (`npm2nix`, `npmfromnix`, `yarn`, `ied`), how do these packages compare to: (`node2nix`) ?
<adisbladis>
zeta_0: npm2nix is dead, I believe node2nix was based on npm2nix at some point
<adisbladis>
npmfromnix I've never head about so can't say much
<jlv>
zeta_0: `npm2nix` is deprecated in favor or `node2nix`, `yarn` a competitor to `npm` and not specific to Nix. I'm not sure about `npmfromnix` or `ied`.
<adisbladis>
I believe the first one is more popular but the second one seems "better" to me
<jlv>
From the name, I would guess that `npmfromnix` is the inverse of `node2nix`.
<adisbladis>
zeta_0: node2nix is mostly pretty solid but sacrifices some things to get there (it smushes your whole node dependency graph into a single derivation)
<pbb>
adisbladis: the second one does not work since quite a while unfortunately
<adisbladis>
notgne2: Cool! What are you using it for? :)
<adisbladis>
I'm pretty happy to hear I have actual users out there
<pbb>
adisbladis: I tried using Profpatsch/yarn2nix a few months ago but it depended on tons of broken haskell packages
<zeta_0>
this is where i first heard about `node2nix`
<adisbladis>
I mean, I know of some companies using it but always happy to hear more :)
<zeta_0>
`pnpm2nix` ?
jlv has joined #nixos
<jlv>
adisbladis: Actually, if you give `node2nix` a list of packages as input, instead of a full `package.json` it will give you a set of individual derivations for each package.
<notgne2>
adisbladis: I've used it for pretty much anything node that I want to run on Nix, so that's everything from personal projects, to my site gm8.app, to the company I work for
<pbb>
adisbladis: actually the great thing about Profpatsch/yarn2nix was that it could generate a .nix file without network access, but this is now also supported by moretea/yarn2nix
<notgne2>
it didn't match all the semver patterns at first but I submitted a PR fixing it in a way that seems to work well, but I don't know Nix very well
<pbb>
so I recommend moretea/yarn2nix if you have a yarn.lock from the project, and pnpm2nix if you have a pnpm lockfile
<adisbladis>
notgne2: Oh, sorry. I had missed your PR
<notgne2>
it's definitely favourable to yarn2nix which seems much less complete, harder to work with, and doesn't handle postinstall scripts ootb, and to node2nix which has to generate an expression (which is a bit long and tedious for every single patch)
PHiZiX has joined #nixos
toppler has joined #nixos
<pbb>
notgne2: yarn2nix doesn't run the install scripts because it emulates yarn, which doesn't do that either
glittershark has quit [Ping timeout: 246 seconds]
FRidh has quit [Quit: Konversation terminated!]
<pbb>
notgne2: but you can easily add it if it's only for a few packages
joba has quit [Ping timeout: 240 seconds]
PHiZiX is now known as joba
<pbb>
notgne2: I would assume that most install scripts would not work out of the box anyway
<notgne2>
huh, never knew that yarn didn't do that
<notgne2>
I have a few pretty large projects I had to package, and yarn2nix proved a bit tedious (I tried to make it automatically run postinstalls, but couldn't quite make it work), but with pnpm2nix it seemed to run them all just fine (except for a few like puppeteer where I overrided it)
glittershark has joined #nixos
<pbb>
great if pnpm2nix worked for you. I couldn't use it because the upstream projects I wanted to package did not provide a lockfile for it
<pbb>
or is there a way to make an pnpm lockfile from a yarn.lock?
<notgne2>
I don't know enough about either to say but it sounds possible
<pbb>
yarn doesn't include hashes in the lockfile in some cases :/
oscarvarto has quit [Ping timeout: 268 seconds]
<adisbladis>
pbb: Git deps?
<pbb>
yep
<notgne2>
I think pnpm has that same issue iirc
<adisbladis>
Pnpm is the same
<pbb>
ok
<adisbladis>
I don't really think it's an issue tbh
<adisbladis>
I'd like for Nix to be able to consider a git rev a fixed output hash
<pbb>
I think it is, because this way it is not possible to generate the .nix on the fly, is it?
<pbb>
yeah that would be nice
<pbb>
yarn2nix's hack is to use builtin fetchGit
<adisbladis>
pbb: I mean it's not an issue in the context of pnpm/yarn, because from their perspective they have reproducability.
<pbb>
ah, yes. but it is an issue for the 2nix tooling
<adisbladis>
Definitely.
<notgne2>
I think there would have to be a new prop for rev to work as hash, given it can take names too, which I assume can change?
<adisbladis>
pbb: Another issue is that there is no standard way to hash a git checkout :)
<adisbladis>
Hence Nix uses the NAR hash
<adisbladis>
notgne2: I think Nix itself would have to become aware of git on another level.
psyanticy has quit [Quit: Connection closed for inactivity]
ambro718 has quit [Quit: Konversation terminated!]
<pbb>
other language tooling has an even bigger problem, for example Gemfile.lock does not contain any hashes at all
<zeta_0>
thanks guys, i am going to give `node2nix` a try
<pingiun>
I'm not very familiar with nixos, will this land in the 19.09 version?
<pbb>
yes
<pingiun>
thanks, I will just use cloudflare in "not-strict" mode in the meantime
<notgne2>
mostly I've had some weird (impurity?) issues where if a service fails to start when deploying a new enableACME host it will fail, and require you to first manually start the acme service, then do a second deployment (or something like that I don't remember too well)
<adisbladis>
pingiun: For sure, these kind of breaking issues gets backported.
<pingiun>
that seems logical
<adisbladis>
Sometimes even to officially unsupported releases (if the branch off was very recent)
<adisbladis>
But no guarantees about that.
<notgne2>
I'm really happy about the release system for NixOS honestly, I have a bunch of packages off git, others off unstable, despite my system running 19.09. and the only error I had when upgrading was because NixOS added a bunch of services natively that I added myself (unlike the hell of manually patching every config file and fixing messups on other
<notgne2>
traditional OSs)
noudle has joined #nixos
<Yaniel>
the config file business is my favourite part about nixos
<notgne2>
despite not being able to target a specific version of packages with ease most of the time, I think the channel system alone is an amazing selling point
<notgne2>
Yaniel: yep, yesterday I made a module to apply a base16 color set to every application I use automatically, I can't imagine having anything like that without Nix
civodul has joined #nixos
<{^_^}>
[nixpkgs] @nixos-channel-bot pushed commit from @taku0 to nixos-19.03-small « firefox-esr: 68.1.0esr -> 68.2.0esr »: https://git.io/JeRdv
<edef>
notgne2: ooh, i'm curious
<{^_^}>
[nixpkgs] @nixos-channel-bot pushed commit from @taku0 to nixpkgs-19.03-darwin « firefox-esr: 68.1.0esr -> 68.2.0esr »: https://git.io/JeRdv
<edef>
notgne2: i have a base16 theming system myself but i'm curious how other people are doing this
<notgne2>
right now it's part of a bit of a bulky home-manager module I use for spinning up nice usable desktops (me, my wife, and her brother all use it on all our PCs), but I plan to separate it and add some more endpoints (right now it's just kitty, gtk2, codium, rofi, and sway)
<notgne2>
also right now I've manually edited every base16 template file to use nix string interpolation too, so I'll be modifying it to work with the templates directly
<johnnywho>
I am trying to get my samsung M2070FW to work on nixos. I 've installed samsung-unified-linux-driver_1_00_36 and printing works well from USB as well as wifi (although the later is a bit unstable, cups cannot always find it). However, I have no luck with scanning. I have enabled the backend in hardware.sane. sane-find-scanner finds the scanner but scanimage -L does not
<{^_^}>
[nixpkgs] @primeos pushed to staging « home-assistant: Fix the build after baf54943305 »: https://git.io/JeRbQ
<{^_^}>
#27995 (by tohl, 2 years ago, closed): cups and SANE backend for samsung printer/scanner m2070w
<johnnywho>
In another distro I had packaged 1.00.39 and it worked out of the box for both printing and scanning, so I 'm thinking of overriding the package version to 1.00.39 and trying again
<Ilya_G>
Have an overlay question to you fine folks. There is an issue with compilation of open-vm-tools where they try to use deprecated version of gnome library. https://github.com/NixOS/nixpkgs/issues/71311
<{^_^}>
#71311 (by alexvorobiev, 4 days ago, open): Building open-vm-tools fails with error: Deprecated pre-processor symbol [-Werror]
<Ilya_G>
Can I write an overlay for personal use where I can override this tool to version='11.0.1' or does this require patching?
ixxie has quit [Ping timeout: 250 seconds]
<Ilya_G>
and if I were to write an overlay, would I essentially have to copy guts of mkDerivation with my modifications or is there a more elegant way of doing it?
logzet has joined #nixos
Ariakenom has quit [Quit: Leaving]
stigo has joined #nixos
pareidolia has quit [Ping timeout: 240 seconds]
manjaro has joined #nixos
<johnnywho>
I cannot really understand how sane-backends are supposed to find their configuration files. samsung-unified-linux-drivers provides its own /etc/sane.d/ files but it is under a different path than the files of the sane-backends derivation
<johnnywho>
Supposedly nix magic makes it happen but I don 't understand why. However it does seem like a missing config file tbh
<{^_^}>
[nixpkgs] @Divakar8378 opened pull request #71715 → Name → https://git.io/JeRNu
<zeta_0>
hello guys, when i first started using nixos, i was using gnome(gdm), and gnome automatically configured the hi-dpi scaling for my laptop(which has 3k hi-dpi), after completely removing gnome and gdm and only using just xmonad, the pixels are not scaling correctly and everything looks very tiny, so is there an easy and simple way to fix this with nixos, or is this an xmonad problem ?
<pittma>
I have something like `Xft.dpi: 160` in a
<pittma>
ya
noudle has quit []
<ivan>
FILES
<ivan>
Xrdb does not load any files on its own, but many desktop environments use xrdb to load ~/.Xresources files on session startup to initialize the resource database, as a generalized replacement for ~/.Xdefaults files.
<{^_^}>
[nixpkgs] @robin-engineml opened pull request #71716 → Undo reversion of awscli update → https://git.io/JeRND
vthot4 has quit [Remote host closed the connection]
zeta_0 has quit [Quit: rcirc on GNU Emacs 26.1]
tiAy has joined #nixos
<tiAy>
how would i go about compiling vim with python module support? i couldnt find any options in the derivation that looked like that but im not 100% sure where to look
<johnw>
I'm having a weird problem with single-user darwin, where doing a store check reports: error: moving XXX to YYY: Permission denied. But everything is owned by my user; how is this possible?
<nixtacular>
hi there. new user and i have a dumb question. if you add a new per-user profile on a new NixOS install, how does your PATH (not NIX_PATH) variable get updated?
toppler has quit [Ping timeout: 246 seconds]
<infinisil>
johnw: What's XXX and YYY?
MarkOtaris has joined #nixos
<ornxka>
my $PATH is just /run/wrappers/bin:/home/user/.nix-profile/bin:/etc/profiles/per-user/user/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin
<ornxka>
so $PATH doesnt get updated but the stuff inside the folders in that $PATH gets updated
<ornxka>
so eg if you install a program, itll put a symlink to that in one of the folders in there
<ornxka>
and if you install it again (update or hwatever) it will change the symlink
<ornxka>
so $PATH doesnt actually need to be updated ever
<nixtacular>
hmm ok. that's what i thought. i'm beginning to think that this is a problem specific to home-manager
<nixtacular>
my use case is that I'm trying to install home-manager (https://github.com/rycee/home-manager), which created a new profile after I followed their installation instructions. i can see the binary in my store and in the new profile created by the install, but i can't access it because it's not in my PATH
<ornxka>
ah.. i dont use that so i cant help you :p
<nixtacular>
all good. i was more wondering whether creating multiple per-user profiles and adding them to the PATH is a normal thing
<nixtacular>
to be clear: multiple per-user profiles other than the generations for "profile" and "channels"
fendor_ has joined #nixos
<infinisil>
nixtacular: Does `nix-env -q` list a home-manager package?
<infinisil>
That's how it should install user packages by default I think
<infinisil>
home-manager that is
<nixtacular>
like creating a `/nix/var/nix/profiles/per-user/user/my-super-sweet-profile`
viric has quit [Remote host closed the connection]
ddellacosta has quit [Ping timeout: 252 seconds]
<nixtacular>
infinisil: it doesn't. actually...that's weird. i thought i installed it...and the profile it generated is there, along with the binaries in the store...
<{^_^}>
[nixpkgs] @nixos-channel-bot pushed 12 commits to nixos-unstable-small: https://git.io/JeRxx
Fare has joined #nixos
<{^_^}>
[nixpkgs] @nixos-channel-bot pushed 2 commits to nixpkgs-19.09-darwin: https://git.io/JeRNb
fendor_ has quit [Client Quit]
<infinisil>
nixtacular: Where's the profile? In /nix/var/nix/profiles/per-user/<your user>/home-manager?
<nixtacular>
infinisil: yes, but i believe that i "fixed" it. turns out that my installation was failing because i had an option in the config that home-manager says is unsupported, even though the home-manager manual says that it is supported. so it never got installed, but probably some hook script (i'm guessing) generated the profile and populated it with
<nixtacular>
stuff.
<infinisil>
What option?
<nixtacular>
i fixed it by removing my custom home-manager config and letting the installer generate the default
<nixtacular>
infinisil: `error: The option 'programs.neovim.plugins' defined in '/home/user/.config/nixpkgs/home.nix' does not exist.`
<pingiun>
how can I view logs for systemd services in nixos containers?
phyfey[m] has joined #nixos
<phyfey[m]>
I believe you have to log into the container
<infinisil>
nixtacular: No idea what this has to do with it but glad you fixed it :)
<phyfey[m]>
then systemctl status or jounalctl -xe pingiun
<nixtacular>
infinisil: haha thanks. i will look into it more and maybe file a bug. btw i see that you're a contributor to home-manager. thanks for your hard work :-)
<pingiun>
phyfey[m]: how do I log in to the container?
<phyfey[m]>
^if you have users/authentication set up
<nixtacular>
infinisil: got it. yeah, i'm still a nix n00b, but i've been digging into it pretty hard. opened up my first PR on nix documentation and have actually been writing my own docs on Nix derivations that i plan to make public when it's ready.
civodul has quit [Quit: ERC (IRC client for Emacs 26.3)]
<infinisil>
nixtacular: Oh nice! We are kind of short on docs, almost nobody contributes to the xml docs hah
Okinan has quit [Quit: Konversation terminated!]
Okinan has joined #nixos
<nixtacular>
infinisil: they are so painful to work with! lol. i'm using GitBook for everything, very convenient and i love the styling (https://gitbook.com). i sort of have an ambition to write a new Nix manual as i learn everything.
kvda has joined #nixos
<johnw>
infinisil: in my case, it's a Python script that for whatever reason keeps getting modified after being placed into the store
<johnw>
I've never had a problem with --repair fixing it in the past, however
<nixtacular>
anyway, i'm out. thanks for your help, infinisil! i'll be back again i'm sure lol
<johnw>
further, I can run nix ping-store --store ssh://hermes just fine, but nix ping-store --store ssh-ng://hermes gives me a permission error.
nixtacular has quit [Remote host closed the connection]
<johnw>
I can't figure out why it's a permission error, or why --repair is being denied access