<attente[m]>
clever: thanks, that bypasses that error
<attente[m]>
Ashy: ^
<dtz>
Ashy: I am dtzWill and sometimes wdtz. Not sure about mako, apologies if I broke something. I think I touched it recently, will look into it shortly...
drakonis_ has joined #nixos
<dtz>
oh I pushed an update back in november O:). Okay so I forgive myself for not remembering immediately :D. If this doesn't get resolved please do file an issue on nixpkgs and feel free to cc me (yes please).
wolfmantjg123 has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Read error: Connection reset by peer]
o1lo01ol1o has joined #nixos
<Ashy>
attente[m]: so setting thaht works?
<Ashy>
seems a little hacky to just set that envvar, im guessing there's something missing from our configuration.nix
<wolfmantjg123>
I needed to make some changes to directories and files, but it keeps telling me this is a read only file system. Is this how nixos supposed to be or is this the way it is partitioned, I’m confused.
<attente[m]>
Ashy: yeah, something is missing. but mako still doesn't pop up notifications
<attente[m]>
Ashy: (this is from source btw)
<ottidmes>
Ashy: a hacky solution would be to just create a user service that makes a symlink: ln -s $DBUS_SESSION_BUS_ADDRESS /run/user/1000/bus, if the problem is that that software expects it to be there
<wolfmantjg123>
If someone could clarify my problem, it would be greatly appreciated
<wolfmantjg123>
?
<ottidmes>
wolfmantjg123: what directories and files?
<ottidmes>
wolfmantjg123: /nix/store is readonly, so the symlinks to it, will also be readonly like most things in /etc
<wolfmantjg123>
ottidmes: so I cannot change anything in /etc
<wolfmantjg123>
?
hamishmack has joined #nixos
<wolfmantjg123>
I need to change my keyboard layout settings in there
<ottidmes>
generally no, you would have to change your configuration that produces the files in /etc, but you can do various tricks to modify them, but these changes will be made undone with the next rebuild
<ottidmes>
wolfmantjg123: so what you want to do, is change the relevant NixOS configuration, not the files produced by the NixOS configuration
shibboleth has joined #nixos
<jasongrossman>
wolfmantjg123: There's something about setting the keyboard layout in the manual (and IIRC also something on the wiki).
o1lo01ol1o has quit [Remote host closed the connection]
<wolfmantjg123>
ottidmes: I tried looking in manual and wiki but it was to confusing, I tried doing what I normally do in ubuntu for a custom keyboard layout but everything is read only
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
Supersonic112 is now known as Supersonic
<ottidmes>
wolfmantjg123: if its in /etc you might get away with doing: environment.etc."dir/file.ext".text = lib.mkForce '' ... your stuff ... ''; but I advice just learning how to do it in NixOS. Do not expect NixOS to be like any other distro. If you try and force it to be like others, you will be disappointed by NixOS, because it will be a struggle while in return you will not get the most out of NixOS that way, so
<ottidmes>
lose-lose situation
acarrico has quit [Ping timeout: 246 seconds]
<wolfmantjg123>
jasongrossman: ottidmes thanks I will try to figure this out later, yeah it is going to take some time before I get used to this distro
<ottidmes>
wolfmantjg123: all I can say, unless you are a casual user, its worth the effort :)
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<wolfmantjg123>
ottidmes: I hope so
vk3wtf has joined #nixos
<jasongrossman>
wolfmantjg123: You will either love it or hate it - probably love it - and if you hate it you can ditch it!
<wolfmantjg123>
jasongrossman: I have been very happy with it so far, I just haven’t figured out how to put my custom keyboard layout.
<wolfmantjg123>
jasongrossman: I guess I’m just too used to ubuntu
<attente[m]>
Ashy: hey, it seems to work for me now. the only thing is firefox doesn't seem to use that dbus interface for notifications
<attente[m]>
(had to set DBUS_SESSION_BUS_ADDRESS manually, still need to figure out how to get that automatically set on launch)
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fhNSR
winem_ has quit [Ping timeout: 264 seconds]
ajs124 has joined #nixos
infinii has quit [Ping timeout: 250 seconds]
<hyper_ch>
Mic92: yes, using zfs git head
<hyper_ch>
Mic92: this line needed changing $(MAKE) -C @LINUX_OBJ@ M=`pwd` $@ \ in your version it's a bit different so applying your patch on current git head fails
xkapastel has quit [Quit: Connection closed for inactivity]
rcshm has quit []
eadwu has quit [Quit: WeeChat 2.4]
o1lo01ol1o has quit [Remote host closed the connection]
stepcut has quit [Remote host closed the connection]
stepcut has joined #nixos
stepcut has quit [Ping timeout: 240 seconds]
jackdk has quit [Ping timeout: 257 seconds]
o1lo01ol1o has joined #nixos
vidbina has joined #nixos
jasongrossman has quit [Remote host closed the connection]
pie___ has joined #nixos
fusion809 has quit [Remote host closed the connection]
wfranzini has quit [Remote host closed the connection]
orivej has joined #nixos
ddellacosta has quit [Ping timeout: 245 seconds]
ottidmes has quit [Ping timeout: 255 seconds]
fusion809 has joined #nixos
endformationage has quit [Quit: WeeChat 2.3]
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hellrazor has joined #nixos
<{^_^}>
[nixpkgs] @peterhoeg opened pull request #56508 → python3Packages.aiounifi: init at 4 + a few other minor updates to satisfy HA → https://git.io/fhN9V
<srhb>
Oh, that's a full rebuild of all go packages. I doubt the list is exhaustive then..
palo1 has joined #nixos
<yl[m]>
srhb: that the list suggested by nox
<yl[m]>
I want to see how it does on Darwin
vidbina has quit [Ping timeout: 264 seconds]
<yl[m]>
srhb: I will need help figuring out the full list of packages that needs to rebuilt
<srhb>
You might hit some timeouts, not sure how ofborg behaves with that change
<srhb>
yl[m]: Honestly, the usual approach is to merge the PR (either to master or staging, depending how severe we think it is) and check what breaks on Hydra.
infinii has quit [Ping timeout: 250 seconds]
<yl[m]>
I'll retry the one that timedout
<srhb>
go might have become so big that it should go to staging these days, but we've been fine on master so far for the bigger bumps.
<yl[m]>
srhb: I wish there's a better way
<yl[m]>
srhb: this one has one breaking change, at least to us
<yl[m]>
GOCACHE=off is no longer allowed
palo1 is now known as palo
palo has quit [Ping timeout: 244 seconds]
<yl[m]>
so a lot of packages fail trying to write to /homeless-shelter/.cache
<srhb>
That sounds like something we'll probably have to patch out.
<{^_^}>
#56500 (by kalbasit, 5 hours ago, open): go_1_12: init at go 1.12
slyfox has quit [Ping timeout: 246 seconds]
<yl[m]>
srhb: you can set GOCACHE=$TMPDIR/go-cache and it works
<yl[m]>
so I'd rather not patch that, as it will change the behavior for the end user
<srhb>
This feels like the wrong approach.. If we need a system wide change, we should do it in the go builder infrastructure.
<yl[m]>
Go 1.12 implements go modules that depend on this change
<yl[m]>
srhb: can you elaborate on the go builder infra?
<yl[m]>
I'm currently working on NixOS box and a darwin box to migrate
<srhb>
I don't know it specifically, but making changes to every package seems wrong. It should be a change in buildGoPackage or something, if we must enable that feature.
hyper_ch2 has joined #nixos
<yl[m]>
srhb: that's a good point
<yl[m]>
srhb: but not all packages use it. Most simply have `go` in buildInputs
<yl[m]>
srhb: so given a derivation name, how can I list all the packages that has it in buildInputs with the nix tools? Should I have to write an expression to extract that info?
<yl[m]>
s/with the nix tools/using the nix tools
<{^_^}>
[nixpkgs] @teto opened pull request #56510 → [wip] vimPlugins.vim-markdown-composer: init at 2018-11-05 → https://git.io/fhNHU
<{^_^}>
[nixpkgs] @vcunat pushed to release-18.09 « zeroc_ice: disable problematic parallel make »: https://git.io/fhNHI
<hyper_ch2>
Mic92: well, didn't try to make it work on latest kernel though :)
<{^_^}>
[nixpkgs] @lheckemann merged pull request #56480 → Mark Riak and Riak-cs as insecure → https://git.io/fhNP2
<nefix>
'm following https://nixos.wiki/wiki/Nginx. The issue comes when it uses `base = locations: { inherit locations; forceSSL = true; enableACME = true; };` How is locations supposed to be?
<ashkitten>
hi, i'm having an issue with trackpoint configuration where it seems that the trackpoint activation script isn't doing anything (executing the same line afterward does work, but the udev rules don't seem to be in place somehow when the `udevadm trigger` line is executed during system activation)
FRidh has quit [Remote host closed the connection]
<ashkitten>
it's pretty weird that the line is even necessary for boot
<ashkitten>
i don't see why
Ariakenom has joined #nixos
troydm has joined #nixos
knupfer has quit [Ping timeout: 268 seconds]
reinhardt has joined #nixos
NickSeagull has joined #nixos
ThatDocsLady has joined #nixos
kiloreux has joined #nixos
<kiloreux>
How can I get "ld-linux-x86-64.so.2" path in nix ?
<kiloreux>
It seems to be linking to Ubuntu ld-linux and I am not sure if that's the way to go
Ariakenom has quit [Remote host closed the connection]
Ariakenom has joined #nixos
<kiloreux>
clever, this is weird but the error doesn't happen when I run inside gdb
<kiloreux>
:confused:
<clever>
kiloreux: then do `ulimit -c unlimited`, and open the coredump it makes
Glider_IRC_ has quit [Ping timeout: 245 seconds]
<tA>
anyone got reccomendations for automatically backing up folders?
<tA>
as well as a trash folder deally
goibhniu has joined #nixos
<__monty__>
tA: On zfs/btrfs, filesystem snapshots.
ng0 has joined #nixos
<__monty__>
Otherwise I think borg is most popular.
<__monty__>
Restic's also interesting.
<hyper_ch2>
before I used zfs, I use rsync hardlinking
<jasongrossman>
tA: I second or third zfs snapshots.
<tA>
im on ext4 :(
<__monty__>
Ah, yes. rsync's definitely not a bad option.
<tA>
might give restic a go
<ajs124>
You can also do snapshots with LVM
adamt has joined #nixos
<hyper_ch2>
I even wrote a nice little zfs snapshot and backup too for myself and got it included into nixos... well, it's just created for what I need
adamt is now known as Guest78808
hedning has joined #nixos
<clever>
i once wrote a defrag tool for lvm
<kiloreux>
clever, If I openthe file with core dump through gdb it runs fine again. `gdb -x script.sh coredumpfile`
<kiloreux>
(I run my command through script.sh (necessary))
<clever>
kiloreux: when opening a coredump, you must give gdb the ELF that created the core, and not a script
<clever>
kiloreux: it wont run the command, but just open the dump of the memory from when it previously crashed
qbiot has joined #nixos
<ashkitten>
when i boot up my laptop (thinkpad t450s) or resume from suspend, when i first click with the touchpad it gets stuck until i switch to a tty and back, then works normally. not sure why.
<kiloreux>
clever, I get this `Program terminated with signal SIGSEGV, Segmentation fault.
<ramses_>
Hey guys, anyone running NixOS succesfuly on Azure? I cannot seem to manage to get it up and running...
<ij>
If I wanted to have a different directory for /nix, then I couldn't use the nixos cache?
<etu>
ij: yep
<etu>
ij: because all links in all binaries point to /nix/store/...
<ij>
Cool. I'm was just wondering whether I understand this right.
__monty__ has quit [Quit: Lost terminal]
<nefix>
(sorry for asking again) Hello! I'm trying to configure Nginx. I'm following https://nixos.wiki/wiki/Nginx. The issue comes when it uses `base = locations: { inherit locations; forceSSL = true; enableACME = true; };` How is locations supposed to be?
<pie_>
is there an easy way to update the glibc version of a specific package?
georgyo has quit [Quit: Connection closed for inactivity]
<pie_>
id like to help a coworker figure out whats causing a specific problem with openvpn and we figured it might be easy with nixos to confirm the glibc version is indeed the issue
domogled has quit [Quit: domogled]
<pie_>
specifically, glibc 2.27 -> glibc 2.28
<{^_^}>
[nixpkgs] @jyp opened pull request #56515 → update to tensorflow 1.13.1 → https://git.io/fhNdK
<manveru>
pie_: i think you can override the glibc of the stdenv passed to openvpn?
<manveru>
but... never done that, so not sure :|
hedning has joined #nixos
<jasongrossman>
ivegotasthma: FWIW, I'm in favour of old computers. Mine is 7.
<{^_^}>
[nixpkgs] @jacereda opened pull request #56516 → lndir: get rid of xorgproto dependency → https://git.io/fhNdF
<ivegotasthma>
can someone help out with packaging a vim plugin that's written in typescript? I can't figure out how to package the node modules and install the plugin correctly. This is the installation manual https://github.com/neoclide/coc.nvim/wiki/Install-coc.nvim however, yarn cannot fetch the packages from the web, it's sandboxed. I cannot also get it to find them offline.
<ivegotasthma>
jasongrossman: the only dislike I have is the fan is too loud, otherwise, it's a great dev machine
IRCsum has joined #nixos
hedning has quit [Quit: hedning]
hedning has joined #nixos
pmiddend has joined #nixos
<pmiddend>
How do executables end up in PATH when I do nix-shell -p program?
dwdr has quit [Remote host closed the connection]
<pmiddend>
I have a shell script that I'd like to add to my shell(.nix) and am not sure how. Is putting it into $out/bin enough?
hedning has quit [Quit: hedning]
<srhb>
pmiddend: Yes, exactly that.
<srhb>
pmiddend: Though mind, using -p and nix-shell foo.nix are very different
<pmiddend>
Hmmm. So bin/ has a special role for Nix. Interesting!
<srhb>
pmiddend: (-p is something like having a mkDerivation that has your derivation in buildInputs)
<pmiddend>
Ah, I see. I knew there was a difference, but couldn't really explain it.
timor has joined #nixos
tmaekawa has joined #nixos
<__monty__>
I'm having some trouble getting brittany installed. I had to jailbreak because ghc863's base is too new but now it won't build. Is there any way around this? http://ix.io/1Cel
<pmiddend>
__monty__: I've filed an issue about that months ago.
<sphalerite>
> fullyEval = x: builtins.deepSeq x x
<{^_^}>
fullyEval defined
<mikeplus64>
i'm trying to install a haskell package (brittany) but need to turn off its test suite to (hopefully) get it to work; i thought nix-env -iE '(import <nixpkgs> {}).haskellPackages.brittany' would work but it doesn't ... help? lol
<mikeplus64>
(i mean, i thought i would need the latter to work to do something like nix-env -iE 'let nixpkgs = ...; in nixpkgs.haskell....dontCheck nixpkgs.haskellPackages.brittany')
<sphalerite>
mikeplus64: just add an "x:" at the beginning
<sphalerite>
mikeplus64: nix-env's -E is weird
drakonis_ has quit [Read error: Connection reset by peer]
drakonis_ has joined #nixos
drakonis has quit [Ping timeout: 240 seconds]
<mikeplus64>
sphalerite: ah, gotcha
<nefix>
ok, next step then: I want to pass a list to a function, and return a set. This function builds the set with the result of a call to another function for each item in the list
<adamt>
nefix: It might be easier to understand if you use a pastebin to show us what you've done so far
<nefix>
so far I have this: 'static = websites: { map (website: base website) websites }'
drakonis_ has quit [Read error: Connection reset by peer]
drakonis_ has joined #nixos
<nefix>
where base is the inner function
<mikeplus64>
any idea why `
<mikeplus64>
whoops
<sphalerite>
nefix: (website: base website) is equivalent to just (base)
<nefix>
I see
<nefix>
then how can I "build" the set?
<sphalerite>
nefix: and you probably want genAttrs, as long as websites is a list of strings which you want to use as keys in the resulting attrset
<mikeplus64>
__monty__ i'm not sure why, even when `dontCheck (doJailbreak brittany)` is used, it still tries to build the test suites :-(...
<nefix>
and how can I import lib inside nix-repl?
<__monty__>
mikeplus64: I fear dontCheck might mean don't *run* the tests but not don't *build* the tests.
reinhardt has quit [Quit: Leaving]
<__monty__>
Just a guess though.
<nefix>
and how can I import lib inside nix-repl?
<nefix>
woops sorry
<mikeplus64>
__monty__ ah. drat
<mikeplus64>
still, they fail to build because of a hspec version bound -- i guess doJailbreak also doesn't affect test suite deps?
<Mic92>
hyper_ch2: Do we need to update zfsUnstable at the time, i.e. are there incompatibilities with the current kernel release. I don't think we should have features branches so, since just maintaining zfs master with the pace of the kernel is challenging.
rtjure has joined #nixos
<nefix>
sorry for asking again, but I can't figure out how to import lib inside nix repl
<hyper_ch2>
there were also other fixes since 0.8.0-rc3 that are required
<hyper_ch2>
the only thing altered was one line in your patch to get it to run with current git head
<samueldr>
nefix: I like using `nix repl '<nixpkgs>'` to start it with nixpkgs in scope
<hyper_ch2>
but kernel incompatbility with 4.19+ (or 4.20) stays
<nefix>
samueldr: I see! lib is inside nixpkgs! Thanks
mobile_c has quit [Read error: Connection reset by peer]
<mpickering>
What does the `-B` option do in the `ghc` wrapper?
<nefix>
samueldr: and how can I print a set without it being shortened?\
hedning has quit [Quit: hedning]
<samueldr>
nefix: not sure, but try :help for everything specific to the repl
<samueldr>
(e.g. you could have used `:l <nixpkgs>` to import nixpkgs in scope)
<nefix>
thanks!
<avn>
Folks, I have funny question -- how safe is to bump stateVersion to something better than 15.09? ;)
<tilpner>
That depends on what parts of NixOS you're using, but generally it's not safe at all
<tilpner>
Read release notes if you really want to update it
<tilpner>
,stateVersion avn
<{^_^}>
avn: 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.
<{^_^}>
[nixpkgs] @dpaetzel opened pull request #56520 → vdirsyncer: fix Google calendar synchronization → https://git.io/fhNAm
<avn>
tilpner: Yup, but it need to me done one time. Otherwise I'd get stone age postgres for example, if try to install it
ericsagnes has quit [Ping timeout: 250 seconds]
<jasongrossman>
avn: Changing stateVersion doesn't actually upgrade anything. I know it sounds like it does, but it's just a bad name.
wfranzini has joined #nixos
<avn>
jasongrossman: it affect installed postgresql server and database location as I see (at least)
<avn>
But on my machine it not change anything ;)
<tilpner>
Huh, the ISO uses 18.03 as stateVersion
<tilpner>
That sounds wrong
<tilpner>
(Won't actually change anything, but still)
<adamt>
Wont old state versions get deprecated over time? I mean, 15.09 sounds pretty ancient, for instance.
silver has joined #nixos
ninjin has joined #nixos
<jasongrossman>
adamt: I doubt it, because it would be a lot of work for someone to work out the upgrade paths for all the old stateVersions.
<jasongrossman>
adamt: What would be the point? Maybe I'm missing something.
<adamt>
jasongrossman: It surely must take time for packages and modules to support all the old state versions?
<jasongrossman>
adamt: I don't think so. It could in principle. I think it's just a matter of fixing anything that breaks.
<jasongrossman>
adamt: My understanding is that very little uses stateVersion.
<jasongrossman>
It does desperately need a new name, IMO.
<adamt>
"just a matter of fixing anything that breaks" sounds time consuming.
<adamt>
But yeah, you're probably right in that not too much rely on it in the first place.
<{^_^}>
[nixpkgs] @bzizou opened pull request #56522 → messer-slim: init at 3.2.1 → https://git.io/fhNAN
rprije has quit [Ping timeout: 250 seconds]
rprije has joined #nixos
ericsagnes has joined #nixos
lawlesseel has joined #nixos
danielrf has joined #nixos
<emily>
is there a convenient way to get Nix to do a build on a tmpfs (downloading/extracting sources there, outputting build output there, etc.)?
<emily>
I guess it'd need to be at /nix/store to reuse Hydra binaries so I'd need some chroot fuss :/
endformationage has joined #nixos
stepcut has joined #nixos
reinhardt has joined #nixos
<tilpner>
emily: Supposedly you can do nix build --store /tmp/foo nixpkgs.hello, but that never works for me
<gchristensen>
make /tmp a tmpfs and you're done, emily
<emily>
gchristensen: really? Doesn't e.g. chromium.tar.xz get downloaded into the Nix store and a bunch of intermediate build products end up in there too?
<{^_^}>
[nixpkgs] @xeji pushed commit from @romildo to master « mate: enable gvfs service (#56469) »: https://git.io/fhNxq
<emily>
or I guess each job itself might be run in /tmp so it's good enough...?
<gchristensen>
you want all of /nix/store to be tmpfs? or just build time stuff?
<{^_^}>
[nixops] @AmineChikhaoui merged pull request #1106 → introduce a persistOnDestroy option for s3 buckets → https://git.io/fhN37
<{^_^}>
[nixops] @AmineChikhaoui pushed 2 commits to master: https://git.io/fhNxY
<avn>
gchristensen: actualy would be nice to pick tmpfs/disk depending from size of source packages
_lawlesseel has joined #nixos
<emily>
gchristensen: the X problem to my Y is that I want to see how fast I can build Chromium without reading .ccs and writing .os getting in the way
<gchristensen>
ah
lawlesseel has quit [Ping timeout: 256 seconds]
<gchristensen>
make /tmp a tmpfs
<avn>
emily: just remember, that chromium is huge, and you need LOT of ram then
<emily>
right.
<avn>
emily: I moved builds out of tmpfs mainly due chromium, because machine become unuseable for anything other during build time
<emily>
I have 32 GiB. I don't know if that's enough.
<emily>
maybe "source on disk, output to tmpfs" is what I really want
<emily>
gchristensen: hm, my /tmp already is a tmpfs
<emily>
but the build was only using like, six gigabytes of RAM, so I assumed it couldn't possibly be holding all of the Chromium source in memory and also running like 10 clang++s simultaneously
ottidmes has joined #nixos
<avn>
emily: what filesystem you use? I trust zfs' arc/l2arc for this, but I haven't enough mem to be really effective
<avn>
emily: does you work on package improvement?
<gchristensen>
emily: with jumbo builds and like 48 threads and a million gb of ram I was able to build chromium in like 30min
<emily>
avn: zfs
* emily
has no direct productive purpose here, just seeing how fast the shiny new box can build big things ^^;
<jasongrossman>
FWIW, I find that zfs is more conservative than I'd like about using RAM (it uses less of it than I'd like).
<jasongrossman>
I mention that because it's the opposite of ZFS's reputation.
<avn>
emily: so try increaze arc, add ssd for l2arc
<gchristensen>
jasongrossman: you can tune it if you'd like to get in to the weeds :)
<emily>
avn: right; I saw talk about configuring zfs.zfs_arc_max, but I have no real idea what to set it to (or what the defaults are)
<jasongrossman>
gchristensen: I don't think so. I can increase the maximum amount of RAM, but I can't make it actually use it.
<gchristensen>
ah
<avn>
emily: 4g arc_min, 8g arc_mac for beginning?
<avn>
I have 2-4 range, but I have 16 of memory only
<emily>
thanks for the tip ^^
<mikky>
got bunch of `/etc/kbd directory contains user files. Symlinking may fail. at /nix/store/amhpx347b7n6m2bq24siw0qq27w3np8n-setup-etc.pl line 114.`, just out of the blue, no idea what happened
<mikky>
for multiple '/etc/*' directories
<mikky>
anyone got any idea what's wrong?
agander has quit [Ping timeout: 244 seconds]
patrl has quit [Ping timeout: 268 seconds]
_lawlesseel has quit [Quit: Leaving]
_lawlesseel has joined #nixos
<avn>
emily: if you interesting in build speed/determinism improvement, I'd like to share my patches (if they not yet merged)
<emily>
mikky: I'm getting stuff like that too since N days ago so I assume it's a bug.
<mikky>
emily: that was my initial assumption, too
<avn>
emily: thing which speed up build significantly -- is split angle and skia (and may be some third_party as well).
erictapen has joined #nixos
<avn>
mikky: better to have whole /etc generated, and have no human written files there
WhittlesJr has joined #nixos
<mikky>
avn: that's what I have, except /etc/nixos/*nix
jomik has joined #nixos
knupfer has joined #nixos
<avn>
mikky: I tend to move /etc/nixos to /nix/etc ;)
nefix has quit [Ping timeout: 256 seconds]
<avn>
Hmm. Folks anyone remember what need to be done (except `services.postgresql.enable = true;`) to have local psql servers? (initial passwords, etc?)
<mikky>
avn: I'm still quite new to nixos but this is something I've been also thinking about, just didn't have time to figure out how to do that yet :)
<hyper_ch2>
postgres is just too complicated for average computer users like me
Guest87567 has quit [Ping timeout: 240 seconds]
<tilpner>
I don't think you qualify as an average computer user
instantepiphany has joined #nixos
Lears has joined #nixos
[Leary] has quit [Ping timeout: 268 seconds]
<instantepiphany>
Just posting a gotcha I ran into for search engine visibility: Don't use `patchelf` to fix paths in a "*.run" file as it may well be an AppImage. If you do this and the image is a Type 1 AppImage, it make the image look like a Type 2 AppImage which will cause unrelated errors when using appimage-run.
<instantepiphany>
Simply use appimage-run `path-to-unmodified-image` to run the image.
<tilpner>
Huh
<tilpner>
Why did you try to patchelf in the first place?
<avn>
instantepiphany: use ld-linux.so.2 trick when you can't patch binaries, works well for games (and should work for non-games)
<tilpner>
avn: What trick do you mean?
alex`` has quit [Ping timeout: 244 seconds]
<instantepiphany>
tilpner: I was tired and hadn't run into AppImages before so I assumed it was a regular binary. When I opened it in vim, the format looked similar (I could see the ld-linux.so.2 path near the start).
<instantepiphany>
I thought "Oh, this `.run` extension must be some kind of filetype association thing for other distros.
__monty__ has quit [Quit: leaving]
<jomik>
Ugh. Anyone here that can point me at how to add a vim plugin for my personal setup? https://nixos.wiki/wiki/Vim shows me how to update nixpkgs repo with a new plugin, but I just want to make a simple derivation to add one.
<tilpner>
Well, AppImages are regular binaries everywhere else :/
<instantepiphany>
Sure, but I had some other error after using patchelf to fix the ld-linux path and set rpaths to needed libraries. I think the error was FUSE related. I searched to see if someone had written some kind of wrapper to help with this and found appimage-run in nixpkgs. appimage-run had errors when running the image, and they eventually brought me to the commit in nixpkgs that added support for Type 1 images, and I figured out my p
<instantepiphany>
- the file header and made the appimage-run wrapper detect it as a Type 2 image instead of seeing it as a Type 1 image. tilpner fyi
<{^_^}>
[nixpkgs] @xeji pushed commit from @dtzWill to master « minio: 2019-01-31 -> 2019-02-26 (#56475) »: https://git.io/fhNhT
<tilpner>
instantepiphany: Oh, yes, the error was very unhelpful. Glad you found the newer version :)
<instantepiphany>
tilpner: Just to make sure I have explained clearly - I always had the latest version of appimage-run. But my (misguided) efforts to make it run simply with patchelf changed the file enough that the appimage-run wrapper detected the image as a Type 2 image, and therefore didn't extract the Type 1 paths to the `~/.cache/appimage/abc/` directory.
drakonis_ has quit [Ping timeout: 252 seconds]
<instantepiphany>
So once I extracted the original unmodified image and tried that with AppImage, it loaded and started correctly. It happened to fail in its install process but I'm sure thats a library or nixos structural difference causing that.
vmandela has joined #nixos
<tilpner>
instantepiphany: I see. So it still doesn't run properly? (Or does the install process fail, but it runs anyway?)
<petrkr>
Ok I found which package blocks that boot with "fsck unknown option"
<petrkr>
busybox;... when it's installed, you will not boot anymore :D
<instantepiphany>
The image runs (shows its GUI installer) but the installer says "Aborted" after freezing for a while. The image is Davinci Resolve, and considering many third party linux installers like to put files in /opt/* or /etc/* I suspect a structural difference with Nixos is to blame. I'll debug it another time as it isn't urgent and it is 2AM for me :)
<tilpner>
Oh, requires registration for download :/
<tilpner>
You can use APPIMAGE_DBEUG_EXEC=bash to get a cleaner strace output
domogled has quit [Quit: domogled]
<tilpner>
That should tell you what makes it abort
<tilpner>
*_DEBUG_
sigmundv__ has quit [Ping timeout: 245 seconds]
WhittlesJr has quit [Quit: Page closed]
instantepiphany has quit [Ping timeout: 256 seconds]
<laas>
is there a way to add options to NIX_LDFLAGS?
<immae>
It’s not technically an argument of a function, but you can use that for optional parameters
wolfmantjg123 has quit [Client Quit]
vidbina has joined #nixos
<nefix>
immae: the thing is that I want to inherit it only if the value is passed (or default or nil). Should I do that with a typical if statement?
ixxie has joined #nixos
<immae>
I don’t see how you can use if’s here, but how important is it that the value get *not* set in case it is absent? Would a null value be not good either?
hyper_ch2 has quit [Quit: Page closed]
<nefix>
Makes sense, thanks!
<yl[m]>
Given a derivation name, how can I list all the packages that has it in buildInputs using the nix tools? Should I have to write an expression to extract that info? I'm trying to find the list of packages that have `go` in buildInputs to finish up https://github.com/NixOS/nixpkgs/pull/56500
<{^_^}>
#56500 (by kalbasit, 14 hours ago, open): go_1_12: init at go 1.12
<{^_^}>
[nixpkgs] @xeji merged pull request #56511 → mercury: build on Darwin → https://git.io/fhN5t
<{^_^}>
[nixpkgs] @xeji pushed commit from @jacereda to master « mercury: build on Darwin (#56511) »: https://git.io/fhNjj
<PirBoazo>
goibhniu: Kde application menu thunderbird can not be launch..
<goibhniu>
PirBoazo: are you using NixOS?
<PirBoazo>
goibhniu: Yes :-)
<PirBoazo>
example : when i launched signal i receive this message : "/nix/store/pxx1hw33g1icpxlq7nfnnzxj2bfk08k4-signal-desktop-1.18.1/bin/signal-desktop" %U
<PirBoazo>
is not valid
<goibhniu>
hrm, where does thunderbird fit into this?
<nefix>
It should work (I tested it separately) what I'm searching is formatting and possible improvements
<goibhniu>
PirBoazo: hrm, if I understand correctly, the problem is that the menu hasn't been refreshed. I'm surprised that running kbuildsyscoc5 didn't fix that :/
<PirBoazo>
goibhniu: and if icontinue : i received : Unable to make the service Thunderbird executable, aborting execution
reinhardt has quit [Quit: Leaving]
<tilpner>
nefix: Typo on line 43. Did you test this?
<tilpner>
nefix: But how could it work with "defice"?
<PirBoazo>
goibhniu: perhaps i need to give parameters?
<scientist>
$(nix-build --no-out-link '<nixpkgs>' -A xorg.xkeyboardconfig)/etc/X11/xkb/rules/base.lst , when I try to execute this command as root I get: Permission Denied ?
rprije has quit [Remote host closed the connection]
scientist has quit [Quit: WeeChat 2.2]
PirBoazo has joined #nixos
rprije has joined #nixos
<lucus16>
I was kind of under the impression that nixos-unstable only progresses once all packages build, but apparently it doesn't care about some haskellPackages not building
<Taneb>
I presume we're encoding 256 bits in base 32, which needs 51.2 symbols which we have to round up
yl has joined #nixos
<nefix_>
is there any way to update the packages and channels automatically? I know there's system.autoUpgrade.enable & system.autoUpgrade.channel, but they doesn't seem to work
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
<adamantium>
hey guys -- the firejail wrappers... i have it working for e.g. launching "chromium" from the command line, but how can i also make it have a .desktop entry that will show up in application menus ?
<jomik>
Different question. I am trying to access `buildVimPluginFrom2Nix`, which... I can't seem to figure out where to find... Help? :)
<jomik>
this does not seem to work :( `inherit (pkgs.vimUtils) buildVimPluginFrom2Nix;` says that I need to call vimUtils with a `name`.
<makefu>
lucus16: for nixos-unstable to advance a couple of integration tests need to test plus a set of "mandatory" packages need to build successfully
winem_ has quit [Ping timeout: 255 seconds]
<yl>
jomik: vimUtils.buildVimPluginFrom2Nix should work
<jomik>
That works too, from release-18.09. Thanks yl! :)
alex_giusi_tiri has joined #nixos
<yl>
jomik: no problem
<waleee>
I got a segmentation fault when running nix-channel --update =/ The subsequent one didn't sefault though
jomik has quit [Quit: WeeChat 2.2]
<yl>
waleee: which OS?
<waleee>
nixos 18.09, from the previous advancement (from the notice just now)
<waleee>
(well from 7 minutes ago)
<yl>
waleee: I'm not sure what the problem is in this case then, I did experience a segfault before but on Darwin and only in multi-user mode but that cannot possibly be the same issue as your so nvm :)
_kwstas has joined #nixos
alex_giusi_tiri has quit [Ping timeout: 245 seconds]
_kwstas has quit [Client Quit]
<waleee>
the 1374ba6080b commit of the 18.09-channel did include a new version of nix
<yorick>
so I needed another instance of a module... import (builtins.toFile "ghjkl.nix" (replaceStrings ["asdf"] ["ghjkl"] (builtins.readFile ./asdf.nix))
rauno has joined #nixos
<nefix_>
error: 'mkOption' at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/options.nix:30:5 called with unexpected argument 'options', at /nix/store/4lfs1751qc86lidq55x70g6ipzzwdgnk-nixops-1.6.1/share/nix/nixops/gce.nix:382:19
<nefix_>
I'm getting this error when using NixOps
<nefix_>
With libvirt or virtualbox
<nefix_>
And with my custom expressions or the trivial one that's in the manual
<nefix_>
Any clue what's going wrong?
<yl>
Izorkin: I left a comment on you PR
<yorick>
nefix_: get the nixops from github
<yl>
nefix_: I had the same issue the other day, it got fixed after updating the channels
_kwstas has joined #nixos
<nefix_>
I updated this morning the channels
<nefix_>
Let's see if there are updates
<nefix_>
NixOps 1.6.1
<nefix_>
Should I override the derivation?
adamt has joined #nixos
<nefix_>
yl: yorick ^
adamt is now known as Guest66951
<yl>
nefix_: I'm also using nixops 1.6.1
<yl>
but the bug is not in nixops, it's in nixpkgs
xkapastel has quit [Quit: Connection closed for inactivity]
<yl>
when I updated my channels (few days ago), the problem got fixed
<Izorkin>
yl: error: undefined variable 'lib' at .../nixpkgs/pkgs/tools/networking/dd-agent/6.nix:54:31
<yl>
Izorkin: you need to add it to the top of the file
<yl>
Izorkin: { stdenv, fetchFromGitHub, ...
<yl>
Izorkin: same for hostname
<nefix_>
yl: I just updated my nix channels and it's still breaking
<alex_giusi_tiri>
therealwaphire[m: it all looks ok to me. one thing that I noticed (not sure if the config is case sensitive): PubKeyAuthentication should probably be PubkeyAuthentication? the other thing that I can think of is an incorrect password?
<nefix_>
(I'm in unstable and in kernel 4.20)
<therealwaphire[m>
yeah I've tried that
<yl>
nefix_: I'm not really sure what's going on. I suggest filing an issue with nixops
<therealwaphire[m>
and nope, password is all correct
<Izorkin>
yl: new error: undefined variable 'hostname'
freeman42x has joined #nixos
<therealwaphire[m>
this also happened when I tried kexecing with password auth
<alex_giusi_tiri>
in other web examples, I see match using indentation
<yl>
Izorkin: same thing, you need to add it to the same place
<talqu>
hi, i have nixos machine from which i want to copy a clojure to a ubuntu machine with nix package mananger. both have the same nix-env version. however, `ssh usr@my-ip nix-env --version` outputs bash: nix-env: command not found
<alex_giusi_tiri>
perhaps the error lies on another layer, then?
<alex_giusi_tiri>
therealwaphire[m: what does the log say? just permission denied? what about pam?
<therealwaphire[m>
says pam authentication failed
<Izorkin>
yl: thanks, fixed.
<yl>
Izorkin: cool, I'll take a look in a couple of hours, I have to run to a meeting then lunch!
<therealwaphire[m>
1error: PAM: Authentication failure for sozu from 159.69.72.164`
<therealwaphire[m>
`error: PAM: Authentication failure for sozu from 159.69.72.164`
<therealwaphire[m>
`Failed password for sozu from 159.69.72.164 port 34834 ssh2`
tnks has joined #nixos
<tnks>
man... if I'm having a mysterious "error: unexpected end-of-file" when doing a nix-env install of nixpkgs.hello, what's a likely culprit?
<tnks>
I'm on a Mac.
<yl>
tnks: it's a known issue
<yl>
tnks: let me find the issue link
Ariakenom has joined #nixos
<tnks>
yl: thanks a lot... I was Googling, but didn't feel like I was getting the right thing.
<alex_giusi_tiri>
talqu: I'm not sure this would change anything, but try ssh'ing to the ubuntu machine and then try running `nix-env --version` at the prompt...
<freusque>
does anyone know of a way to make nix-shell automatically reload its environment when the expression changes?
<freusque>
I'm enjoying cabal+ghcid's ability to do this based on cabal file changes when using callCabal2nix. Just wondering if there are similar tools out here
<semilattice>
I tend to use direnv with nix for this, and it does an okay job about it, maybe not great
<semilattice>
but direnv reload makes it work correctly in every terminal window if it doesnt
<freusque>
oh, does direnv auto-reload when the shell file changes?
<mekeor>
freusque: which package contains nix-locate? :D
<mekeor>
i used "nix search" :)
<gchristensen>
,locate sed
<{^_^}>
Found in packages: cheat, gnused, busybox, sonic-pi, plan9port, gnused_422, vimPlugins.caw
<gchristensen>
,locate nix-locate
<{^_^}>
Found in packages: nix-index
<mekeor>
thanks, it was gnused :)
<mekeor>
nice :D
<freusque>
:o
ashkitten has joined #nixos
tmaekawa has quit [Quit: tmaekawa]
Ariakenom has quit [Read error: Connection reset by peer]
Ariakenom has joined #nixos
arjen-jonathan has joined #nixos
<mekeor>
i installed nix on macOS. i installed zsh, curl, wget, R and emacs with nix. when i curl a https-url inside the shell, it works. it works, when i invoke curl inside an R-script inside the shell. but when i invoke curl within the R-script within emacs, i get an ssl-error: "SSL certificate problem: unable to get local issuer certificate". any ideas whats going on? -- instead of invoking curl within the R script within emacs, i also
<mekeor>
tried to invoke curl within zsh within R within emacs and it worked (after sourcing $HOME/.nix-profile/etc/profile.d/nix.sh)
<mekeor>
i also tried to set the NIX_SSL_CERT_FILE variable inside the R script inside emacs but it didn't help AFAICS
<{^_^}>
[nixos-hardware] @ashkitten opened pull request #102 → t450s: fix trackpoint configuration at boot → https://git.io/fhAUo
<freusque>
try vim
<freusque>
:p
<mekeor>
true
<mekeor>
xD
drakonis has quit [Quit: WeeChat 2.2]
<avn>
mekeor: probably you need unset NIX_SSL_CERT_FILE (or some other NIX_*SSL* variable)
<yl>
nefix_: so it's a nixops issue? Thanks for letting me know!
<mekeor>
interesting: when i set SSL_CERT_FILE="~/.nix-profile/etc/ssl/certs/ca-bundle.crt" in the environment that doesn't work, i get a different error: curl: (77) error setting certificate verify locations: \\ CAfile: ~/.nix-profile/etc/ssl/certs/ca-bundle.crt \\ CApath: none
drakonis_ has quit [Ping timeout: 250 seconds]
scientist has joined #nixos
<scientist>
hey guys I am trying to create my own custom keyboard layout, but the instructions on the nixos manual and wiki are horrible, do you guys know of an easier way to do this ?
<alex_giusi_tiri>
rather, not bing automatically sourced when you ssh?...
ThatDocsLady has quit [Ping timeout: 252 seconds]
<scientist>
avn: I have two files: us_custom (that contains my custom keyboard layout) and xkb_rules.odt(that I use to past into the xml file), I just have no idea on how todo this in nixos
rprije has quit [Remote host closed the connection]
fusion809 has quit [Remote host closed the connection]
ym555 has joined #nixos
<scientist>
avn: if you could post step by step instructions on how you did this, I am very confused, thanks !
wedens has quit [Quit: Connection closed for inactivity]
sigmundv has quit [Ping timeout: 255 seconds]
<talqu>
alex_giusi_tiri, i do have that in my .bashrc
xkapastel has joined #nixos
<avn>
scientist: https://gist.github.com/24a45c235ab1bee50147a08b4fd1cf91 my toplevel file, includes searched in ~/.xkb from command I posted above, where I keep tructure similiar to standard one (so symbol/your_custom_file)
<avn>
scientist: But I suggest you read some xkb manuals first, and have remote access
mekeor has joined #nixos
<scientist>
avn: thank you, I'll take a look now
<avn>
scientist: so all components looked in appropriate directory in .xkb or standard path (but ~/.xkb not searched by default, you need -I ~/.xkb)
ThatDocsLady_ has quit [Ping timeout: 250 seconds]
rprije has quit [Remote host closed the connection]
* mekeor
wonders if PATH=$HOME/.nix-profile/bin will work fine on mac-os and is trying it out
<scientist>
avn: I don't know where to paste my custom keyboard layout?
<{^_^}>
[nixpkgs] @xeji pushed commit from @dotlambda to master « postfix: 3.3.2 -> 3.4.0 (#56537) »: https://git.io/fhATt
<avn>
scientist: in theory is possible, but I used includes always. Logic is simple -- xkb_symbols { uinclude "us+foo" looked as ${-I}/.xkb/symbols/us then $default/symbols/us, all other files processed similiar
sigmundv has joined #nixos
<scientist>
avn: if you want i could paste the content of the two files so you can see what I am trying to do ?
<{^_^}>
[nixpkgs] @xeji pushed commit from @dotlambda to master « qutebrowser: 1.5.2 -> 1.6.0 (#56349) »: https://git.io/fhATB
alex_giusi_tiri has left #nixos [#nixos]
ddellacosta has joined #nixos
<scientist>
avn: https://hastebin.com/icitadafiq.xml , the 1st section is my custom keyboard layout and the 2nd section on the bottom is the part that I paste to evdev.xml
<scientist>
avn: I am just not sure how to configure this stuff in nixos
<avn>
scientist: I don't know what .xml does, it something specific to ubuntu
<avn>
if you put first file as ~/.xkb/symbols/custom_us
rfold has joined #nixos
<gchristensen>
systemd friends, I have a service which regularly fails to start, and I'd like systemd to restart it. but: systemd doesn't _know_ it has failed.
<avn>
and do simples ~/.xkb/main.xkb based on my with xkb_symbols { include "us+custom_us(basic)"; }; -- I believe you will able to load it
<gchristensen>
can I have a separate unit which if it fails to start within 10min, the other unit is restarted?
<avn>
scientist: but I suggest to have second machine around with remote access, in case if you make your keyboard unusable
o1lo01ol1o has quit [Remote host closed the connection]
<scientist>
avn: ok I'll give it a try now, if my keyboard becomes unusable can't I just boot into an older nix config
<roni>
hi all--anyone have any tips for gephi starting up and then hanging before the gui fully renders?
o1lo01ol1o has joined #nixos
<avn>
scientist: close to it. I'd suggest make a tree in $out - $out/symbols/... $out/keycodes/... etc, and main file in top $out/main.kkb. then build it with xkbcomp -I$out/ $out/main.kkb $out/main.xkb
Glider_IRC_ has joined #nixos
<avn>
xkbcomp -I$out/ $out/main.xkb $out/main.xkm
<avn>
and then use xkbcomp $out/main.xkm $DISPLAY to load
<avn>
so generally yes, is sort of my method
<avn>
I feel, that I re-do my setup this way (although I'd like to make reload script as well, to update stuff if keyboard re-plugged, or keymap was discarded due some systemd events)
<scientist>
avn: I need to get better with the command line, this is confusing the hell out of me, is the nixos-dev channel a pretty good place for problems like this ?
o1lo01ol1o has quit [Remote host closed the connection]
<ddellacosta>
so I'm trying to build a haskell project per the instructions (see https://github.com/taffybar/taffybar/blob/master/default.nix#L2) and it's telling me "...default.nix:1:1 called without required argument 'gi-cairo-connector'..." I'm familiar with derivations on a basic level but I'm not sure how to approach this. Any suggestions on where to start?
Glider_IRC__ has quit [Ping timeout: 258 seconds]
agander has quit [Quit: Leaving]
<scientist>
avn: thanks, I think I will spend the rest of this day reading the manuals and try again tomorrow
matix has joined #nixos
<{^_^}>
[nixpkgs] @orivej-nixos merged pull request #56384 → Use C++ 11 for MySQL 5.7 to fix build in mac → https://git.io/fhbF9
<{^_^}>
[nixpkgs] @orivej-nixos pushed commit from @jules2689 to master « Use c++ 11 for MySQL 5.7 to fix build in mac (#56384) »: https://git.io/fhATj
<avn>
scientist: once, when I work on web based terminal server, I wrote totally original 200 keyed keymap with no switch between cyrillic/latin
<ddellacosta>
scientist: I've been using NixOS exclusively for about a month now, read about 60% of the docs (recommend the pills and wiki in particular) and still find it challenging, but the fog is slowly lifting and I'm more and more impressed...fwiw
<ddellacosta>
the docs are weirdly terrible and great at the same time
<ddellacosta>
that gave me a better understanding than anything of how derivations work
<gchristensen>
I would really love it if all four of you ddellacosta hyperfekt jasongrossman illegalprime , and anyone else who agrees with that to PM me your feedback as to why that is true _in private_ (so you don't get your feedback changed by other people's)
<ddellacosta>
not that I'm done--I'm about 3/4 of the way done
<illegalprime>
how do you build a multi-crate rust package? so far I'm trying to use a linkFarm to collect all my dirs into one source directory
<illegalprime>
ddellacosta: yup
<ddellacosta>
gchristensen: sorry didn't mean to talk crap about Nix/NixOS--I love it
<gchristensen>
no way
<gchristensen>
you're not talking crap
<ddellacosta>
definitely have a lot to say about docs, composing my thoughts recently, will ping you!
<gchristensen>
I really want your feedback!
<gchristensen>
please do, or email me -- graham@grahamc.com
<ddellacosta>
absolutely will do. Okay cool, thanks!
<ddellacosta>
yet another great thing about Nix community, also why I love it ^
<avn>
sometimes would be nice to have something like `rust --explain` but for nix/nixos
<gchristensen>
ddellacosta: me too =)
<scientist>
ddellacosta: thanks I'll take a look
<avn>
because when you work on modification of your system, `git grep` usually your best friend
<ddellacosta>
scientist: hope it helps!
<avn>
and for non-nixos specific stuff arch wiki still be source number one ;)
<illegalprime>
^ on multi-crate rust packages, the linkFarm works but buildRustPackage wants to chmod +w the source dir, which breaks if the source dir is in /nix/store'
doyougnu has joined #nixos
<ddellacosta>
avn: to be fair, probably true for a lot of non-Arch distributions, lol
<{^_^}>
[nixpkgs] @xeji pushed commit from @r-ryantm to master « libsolv: 0.7.2 -> 0.7.3 (#55259) »: https://git.io/fhAkn
<scientist>
ddellacosta: https://hastebin.com/icitadafiq.xml , I am trying to create my own custom keyboard layout but it seems much harder to do in nixos than in ubuntu. I am glad theres references but I cannot find no step by step instructions
acarrico has joined #nixos
<ddellacosta>
scientist: hrm I may not be a lot of help with that--I did little more than remap caps lock and alt for my keyboards, and I still find it to be a black art
<ddellacosta>
scientist: one thing I will say is that this is not really necessarily NixOS specific, so you may find more help looking in other communities, then tweaking their solution to fit NixOS
<{^_^}>
[nixpkgs] @xeji pushed commit from @r-ryantm to master « ace: 6.5.3 -> 6.5.4 (#54859) »: https://git.io/fhAk8
counting1 is now known as countingsort
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
<scientist>
ddellacosta , well all the xkb files are read only, why are the files read only
<scientist>
?
<jevonearth>
Hi All, I have a thinkpad X1 extreme. My nvidia card had been working pretty well, until recently. I'm not sure when it broke. My xorg runs, I have my bios set to 'discreet' instead of hybrid. But based on xorg graphical performance, it's not using the nvidia card.
<ddellacosta>
scientist: ah okay so, this is definitely a challenging aspect of Nix--you have to reorient yourself to assume everything should be managed through the Nix config
<jevonearth>
Wondering if any one here has hints, or run into issues recently?
Erasmus has joined #nixos
<ddellacosta>
scientist: so maybe first thing to do is look and see if there is an xkb option that looks like what you want, via https://nixos.org/nixos/options.html
<Erasmus>
why should I switch to NixOS?
<{^_^}>
[nixos-hardware] @danbst closed pull request #101 → thinkpads: refactorings + modularization + some new options → https://git.io/fhd2H
<Erasmus>
safer rollbacks?
<ddellacosta>
scientist: I think 75% of my initial learning curve was figuring out how to configure stuff, especially desktop env
<ddellacosta>
scientist: you shouldn't have to touch that
kisik21 has quit [Ping timeout: 252 seconds]
<ddellacosta>
you may need options exposed there
Ariakenom has quit [Quit: Leaving]
<ddellacosta>
scientist: sorry, again we're out of my zone of familiarity when it comes to xkb and X11, but take a look at e.g. https://nixos.org/nixos/options.html#xkb
<scientist>
ddellacosta, I am very frustrated, I have been using ubuntu for the last three years, nixos seems completely different
<ddellacosta>
scientist: it absolutely is
<scientist>
ddellacosta: is it worth the switch ?
<ddellacosta>
scientist: I personally think so, but it also aligns with my personal idea of (closer to) an ideal system
<scientist>
ddellacosta: is the #nixos-dev channel pretty good ?
<ddellacosta>
scientist: I've only really hung out in here, so can't say
goibhniu has quit [Ping timeout: 250 seconds]
<scientist>
ddellacosta: ok well i'm going to give it a try
<drakonis1>
okay so, good news everyone that like video games i guess, the lutris flatpak is almost reaching an usable state
<scientist>
later guys
scientist has quit [Quit: WeeChat 2.2]
<ddellacosta>
scientist: keep asking questions, there are many super-knowledgeable and helpful people here! Sorry I couldn't help you with the keyboard stuff
<ddellacosta>
good luck!
semilattice has joined #nixos
<ottidmes>
scientist: if you are an user who's ideal system is that of things just working out of the box, instaling software through a software manager, i.e. more like Windows experience in terms of software usage, then NixOS is most likely a bad fit. If you want to have a lot of control over your system, and have the effort you put in make concrete as some artifact (your config), than NixOS is awesome.
<jevonearth>
ddellacosta; yes I have seen that. I'm trying bumblebee now. What mode/approach are you using?
<mekeor>
illegalprime: i.e. i did 'nix-env -i man' at some point and i'm using that man binary from nix
<ddellacosta>
jevonearth: so I had just the intel i915 driver for a bit, but went back to nvidia only just because I don't care as much about battery life, I mostly use mine at home
<illegalprime>
mekeor: not sure then, i'm sorry!
<ddellacosta>
jevonearth: I'm happy to share my config if it'd help
<jevonearth>
ddellacosta, that would be great! I also don't give a hoot about battery, perfer to run hot and fast :)
<drakonis1>
what's the current optimal approach to use different channels?
<mekeor>
mekeor: when i do 'export MANPATH=$HOME/.nix-profile/share/man', and run 'man tail', i get: 'Cannot open the message catalog "man" for locale "de_CH.UTF-8" (NLSPATH="<none>") No manual entry for tail'
<drakonis1>
there's half a dozen ways to do that but i can't figure out which one is best
scientist has joined #nixos
<jasongrossman>
mekeor: That's what I'd expect, because man is finding MacOS man pages (many of which are BSD man pages). I haven't tried this, but you should be able to fix the problem by changing the order of entries in MANPATH.
<mekeor>
drakonis1: where do you wanna use the different channels? you can just install several channels with nix-channel
<scientist>
does anyone here understand xkb really well ?
<infinisil>
scientist: I kinda do
<ddellacosta>
jevonearth: I think that's all the relevant bits
<drakonis1>
now that's the thing, nix-channel exists but its messy
<simpson>
scientist: Kind of, but not to the degree necessary to answer the questions that you've half-asked in various channels recently. Do you have a more precise question?
<{^_^}>
[nixpkgs] @xeji pushed commit from @johanot to release-19.03 « kubernetes: 1.13.3 -> 1.13.4 (#56524) »: https://git.io/fhAkd
<ddellacosta>
one of these days I'm going to actually commit my nix config and put it up on a public repo...
<infinisil>
ddellacosta: What's keeping you from doing that?
<scientist>
https://hastebin.com/icitadafiq.xml , I am trying to create a my own custom keyboard layout, but the instructions on how to do this in nixos are very complicated
<mekeor>
jasongrossman: but 'tail' is also part of coreutils... ah, maybe the problem is that i didn't nix-env -i coreutils... lets see :D
<ddellacosta>
infinisil: pathological perfectionism, which I will eventually win against, but not as of yet...
<mekeor>
mekeor: 'nix-env -i coreutils' didn't help
<jasongrossman>
mekeor: Damn.
<scientist>
if you guys know someone that could help me with this let me know, thanks
<infinisil>
ddellacosta: I don't think anybody out there has a perfect configuration, mine is mostly really messy and bloated :P (this is it btw: https://github.com/Infinisil/system)
<ottidmes>
drakonis1: optimal depends on your use case, but what has been working well for me for the last few years, is to manage my own nixpkgs checkout based on the nixpkgs-channels repo, for which I have an added git worktree for the nixos-unstable branch, which I include via an overlay, works really well for my usage
<jasongrossman>
mekeor: You could try asking in the Nix reddit group or on discord, or wait for Nix Darwin users to turn up here and ask again. Or I think there's a freenode channel for Nix on Darwin.
<mekeor>
jasongrossman: does 'tail' have a man page from nix on your system?
<gchristensen>
#nix-darwin
<scientist>
?
<jasongrossman>
mekeor: I'm not on Darwin/MacOS. (But yes it does.)
<ddellacosta>
infinisil: see, you're trying to use facts and wisdom to help me change my behavior
<infinisil>
scientist: Run the command `setxkbmap -print > layout.xkb` then check out what the layout.xkb file looks like
<mekeor>
jasongrossman: ok, and r u on nixos?
<jasongrossman>
mekeor: Yes.
<ddellacosta>
infinisil: my demons are immune to such things
<infinisil>
ddellacosta: Hehe
<ddellacosta>
but seriously, will get it up soon, almost there :-p
<mekeor>
ok hehe :)
<infinisil>
soon (tm)
<ddellacosta>
heh
semilattice has quit [Ping timeout: 246 seconds]
xeji has quit [Quit: WeeChat 2.2]
_kwstas has quit [Quit: _kwstas]
<{^_^}>
[nixpkgs] @acyuta108 opened pull request #56545 → Proposal to changes in contribution guidelines for custom nixpkgs → https://git.io/fhAIe
<infinisil>
scientist: Got it?
doyougnu has quit [Ping timeout: 244 seconds]
<scientist>
infinisil ok
<infinisil>
scientist: Notice how it has an xkb_symbols section, like the one you have in your hastebin
<mekeor>
nix on darwin is a bit of a pain. still better than darwin without nix though. i just love nixos. thank y'all, adios <3
<infinisil>
scientist: You want to replace that section with yours
<hyperfekt>
how do i build a package without forking nixpkgs or adding ? import <nixpkgs> {} to the default.nix again?
mekeor has quit [Quit: digital revolution = cryptoanarchism + cybercommunism]
<jasongrossman>
bye mekeor
<infinisil>
hyperfekt: What default.nix?
<scientist>
infinisil: ok, I'll give it a try, i'll let you know how it goes
semilattice has joined #nixos
jasongrossman has quit [Quit: ERC (IRC client for Emacs 26.1)]
<hyperfekt>
infinisil: The one of my package. I'm trying to package something outside of nixpkgs
arjen-jonathan has quit [Ping timeout: 252 seconds]
<hyperfekt>
but i do want to use nixpkgs' stdenv
<infinisil>
hyperfekt: Why not just `{ pkgs ? import <nixpkgs> {} }: ...`?
<jevonearth>
ddellacosta: thanks. Not working here, but I'm still fiddling with it. I'm curious, do you import `<nixos-hardware/lenovo/thinkpad/x1/6th-gen>` ? Or do you have any other thinkpad x1e stuff in your config?
Philonous has joined #nixos
<hyperfekt>
infinisil: Then I can't use the same format as in nixpkgs of adding dependencies to the formal parameters.
<ddellacosta>
jevonearth: oh that's too bad, but maybe still helpful for figuring things out. No, I don't have that as far as I know, you mean in main /etc/nixos/configuration.nix (or included somehow)?
<ddellacosta>
I don't think I have any thinkpad-specific config here, in terms of having that kind of name, now that you mention it
<infinisil>
hyperfekt: Ah, then you want to define your package in a separate foo.nix with the nixpkgs structure (`{ stdenv, fetchFromGitHub, }: ...`), and use `{ pkgs ? import <nixpkgs> {} }: pkgs.callPackage ./foo.nix {}` in your default.nix
<hyperfekt>
I see. So there isn't a nix-build invocation that will do the equivalent of callPackage?
<jevonearth>
ddellacosta, I have it imported in my /etc/nixos/configuration.nix I'm not sure if it makes a difference. I must remove it and see if there's a difference.
<ddellacosta>
jevonearth: btw one thing that I found helpful was enabling services.xserver.exportConfiguration, it was just nice being able to find that file easily to review what nix was generating
<infinisil>
scientist: Probably, use `xkbcomp layout.xkb $DISPLAY` to load it
<infinisil>
scientist: Ah, I guess you didn't load any default keys, I'm taking a look
<hyperfekt>
yl: don't call it stable tho, i broke it just yesterday :b
fendor_ has joined #nixos
<yl>
hyperfekt: good point! it's just on my side, I do my own testing before considering stable, for one, it's breaking the build on all of my machines: https://github.com/kalbasit/shabka/pull/187
<hyperfekt>
infinisil: i figured out why i couldn't just use ' nix-build "with import <nixpkgs> {}; callPackage ./default.nix {}" '. I only added a pname attribute so the derivation name was empty D':
<yl>
it's probably some dumb overlay that I have interfering with it
clever_ has joined #nixos
clever_ has quit [Changing host]
<yl>
hmmm, I guess cachix is broken for me: cannot build derivation '/nix/store/dbqqyyjj82hynd3jzlbkngs7msa8v4kd-cachix-0.1.3.drv': 1 dependencies couldn't be built
clever_ is now known as clever
<hyperfekt>
yl: damn that's a cool setup. one day ill have ci for my configuration, too
<yl>
hyperfekt: it's not as cool as I wanted to be yet, I want hydra cluster instead of CircleCI. I can't do nix-build there so I just do nix-instantiate instead
<yl>
I kept getting my builds killed with nix-build :)
fendor_ has quit [Remote host closed the connection]
<samrose>
if I have a configuration file that I want a systemd service to run, and I am going to fetchurl it, and would like to link it in /run/current-system/sw somewhere, what is a good practice way of doing this/
<scientist>
infinisil: default partial alphanumeric_keys modifier_keys , so I need to move this ?
<hyperfekt>
yl: i guess you'd call out to hydra via webhooks from github or something?
<infinisil>
scientist: Yes
<yl>
hyperfekt: yea. I started installing it on Zeus (That's my server) the other day, but I'm lacking time to finish it.
<aanderse>
any advice on single hard drive encryption which causes me the least amount of effort? (least amount of effort = easy to setup, won't break, minimum amount of password typing, etc...)
<yl>
hyperfekt: I also need to learn how to use Hydra
rfold has quit [Quit: leaving]
<scientist>
infinisil: ehere
<scientist>
infinisil: where ?
<infinisil>
yl: hyperfekt: What's the point of a CI if you can just run it yourself? I mean you're the only person using it
<infinisil>
scientist: In the xkb file
<hyperfekt>
yl: my next project is doing remote builds on a 32 core ec2 spot instance
<infinisil>
To* the xkb file
wfranzini has quit [Remote host closed the connection]
<scientist>
infinisil: ok i'll make the changes then show you
wfranzini has joined #nixos
luigy has joined #nixos
<matix>
aanderse: did you try good old cryptsetup/LUKS on everything except /boot?
<drakonis1>
ottidmes: that's exactly want i want to do and i need some advice on it
jb55 has quit [Ping timeout: 245 seconds]
<drakonis1>
as i'd like to update a bunch of outdated things
<aanderse>
matix: have not tried anything. ever. (regarding encryption on hard drive)
<hyperfekt>
ok so i got the build of my package to start but i put src = ./. and the only file in the build environment is env-vars instead of the ones in the same folder as the default.nix?
fendor_ has quit [Ping timeout: 250 seconds]
<clever>
hyperfekt: can you pastebin your default.nix?
<aanderse>
i just found out my work laptop doesn't encrypt at the bios level or whatever, so when i install nixos on it i'll have to take care of that myself (boo)
<aanderse>
right now it uses mcafee encryption and the only password i have to type in is the windows login
<mudri>
Does anyone know about getting gsettings schemas set up for NixOS modules? `ibus-table` updated recently to use gsettings, and it always errors out because it can't find its settings.
<clever>
hyperfekt: unpackPhase is what is responsible for copying src to the current directory
<clever>
hyperfekt: youve set it to "true", so it will never copy src in
<mudri>
An actual error message: `(ibus-setup-table:7326): GLib-GIO-ERROR **: 21:45:05.878: Settings schema 'org.freedesktop.ibus.engine.table' is not installed`
doyougnu has joined #nixos
<hyperfekt>
clever: i see, so i do cp src/* . or something like that i guess
<matix>
aanderse: if you're the only user of the machine you could just set up autologin in which case the only password you'd need to type is the disk encryption pass
Erasmus has joined #nixos
<clever>
hyperfekt: just delete your unpackPhase line
<gillmanash>
I moved at some point from stable channels to unstable, but I find that almost every time I upgrade anything I have to build a lot of packages, not download a cache
doyougnu has quit [Quit: WeeChat 2.2]
<simpson>
gillmanash: Yes, it's common to have to build stuff from unstable.
<averell>
qt build takes ages, so it's probably not done if you update a lot
<gillmanash>
simpson: thanks, I might have to look at going back
vk3wtf has quit [Ping timeout: 258 seconds]
<gillmanash>
averell: right.. I was worried I was lagging to far so I have been updating a lot hoping to get the current caches
<simpson>
gillmanash: Is building stuff a problem?
<gillmanash>
averell: I thought the unstable channel only updated once the cache was up-to-date
<aanderse>
ddellacosta: ok cool, i'll give that a try, thanks!
<averell>
ah, by channel. i was thinking building from master for some reason
<averell>
do you have any overrides that could be dependencies?
<averell>
or configuration changes
o1lo01ol1o has joined #nixos
<simpson>
gillmanash: Oh. I'm sorry that you've been misled; NixOS is not a binary-package distro, but a build-from-source distro. NixOS might not be for you.
<infinisil>
scientist: Try adding `include "pc+us+inet(evdev)+capslock(backspace)"` on line 7
<infinisil>
scientist: Without a semicolon at the end
<infinisil>
scientist: If you want help, and I'm helping you, reply to me instead of just asking again
<infinisil>
Otherwise I won't help you anymore
<averell>
hmm. i get most of my caches from the cache. it's not as bad as gentoo or something.
<averell>
most of my packages*
<mudri>
scientist: I was going to say, yeah, you probably want to inherit from an existing layout.
<gillmanash>
simpson: Its been good previously with the binary cache
<simpson>
gillmanash: You have gotten lucky.
jevonearth has quit [Remote host closed the connection]
o1lo01ol1o has quit [Remote host closed the connection]
talqu_ has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
gudea[m] has joined #nixos
<scientist>
infinisil: thanks brother, i'll give that a try
<gillmanash>
averell: I have some overrides but only high level, but not for dependencies I'm building currently
<gillmanash>
simpson: So will it be better if I drop back to Jellyfish?
<scientist>
mudri: that's what i'm trying to do, my custom keyboard layout works in ubuntu
<simpson>
gillmanash: I don't know what Jellyfish is, sorry. I don't know what's better for you; IMO Nix is better than binary-only package managers, but I also came from Gentoo and don't think that compiling from source is bad.
<avn>
scientist: I gave you a top example, pick few items to combine with your addition ;)
<gillmanash>
simpson: 18.09 stable sorry.
<scientist>
avn: ok
<averell>
if you're on a stable channel and don't change the dependency input to the packages in some way then most of the time you should get binaries.
<simpson>
gillmanash: Oh. Being on a stable release doesn't mean that you won't compile stuff. What matters to you is likelier stuff like how stale the cache is: http://howoldis.herokuapp.com/
<mudri>
scientist: My feeling is that xkbcomp is really shaky, and building your new layout into the system works out nicer. That's what I do, and I could dig out my config files if you want.
xkapastel has quit [Quit: Connection closed for inactivity]
jackdk has joined #nixos
<infinisil>
scientist: And then test it with `xkbcomp layout.xkb $DISPLAY && sleep 10 && setxkbmap us` (will automatically switch back to us layout after 10 seconds)
<scientist>
mudri: well how did you do it, and yes I would like to see your config files, thanks
<scientist>
infinisil: ok
<scientist>
infinisil: give me a sec then i'll show you my results
<infinisil>
mudri: I'm currently reviewing #47764, you're probably doing something like that
phreedom has quit [Remote host closed the connection]
phreedom has joined #nixos
ng0 has joined #nixos
<badmutex[m]>
hi folks. just want to say I really appreciate the function docs in the nixpkgs manual. thank you for all the work that has gone into them
<samrose>
how do folks typically go about linking a file in mkDerivation from it's `/nix/store` location, to a symlink in /run/current-system/sw/ ?
<mudri>
scientist: It turns out that the config I have is rather complicated, and waiting for the PR infinisil mentions is probably better (using xkbcomp for the time being).
<mudri>
infinisil: What do you mean by “a symbols only file”?
<scientist>
mudri: Ok thanks, I think I am make progress, i'll get my custom keyboard layout eventually
<infinisil>
scientist: Huh, I can't reproduce that error, where did you get xkbcomp from? What NixOS system are you running?
<{^_^}>
[nixpkgs] @worldofpeace pushed to master « pantheon.elementary-code: use C.UTF-8 »: https://git.io/fhALL
<talqu>
https://pastebin.com/vq9XsCRq, addbuildtools is function which take a derivation and a list of 'extra' packages as i understand from this snippet. The hoogle part is confusing, shouldn't generate hoogle docs be available only on the package defined below, and not on Snap, which comes from the derivation in default.nix?
<scientist>
infinisil: thanks again :)
<elvishjerricco>
talqu: I'm having trouble parsing your question. What exactly are you trying to accomplish?
oida has quit [Remote host closed the connection]
<talqu>
elvishjerricco, sorry :), I want to understand what exactly happens on the line 8, where i use ghcWithHoogle. My purpose in general was to have a shell.nix which depends on everything default.nix does + plus whatever i put on after line 8
mek42_laptop has joined #nixos
<talqu>
what i don't understand is once in shell i can run hoogle server and query Snap types
<talqu>
shouldn't i only be able to query package defined after the line 8?
sigmundv has joined #nixos
<mek42_laptop>
New laptop arrived today! Does the live NixOS have zfs support?
<elvishjerricco>
mek42_laptop: As of 18.09, I believe so. But it can be manually added to earlier versions easily
rpg has joined #nixos
<elvishjerricco>
talqu: I don't think addBuildTools is what you want for that
scientist has quit [Quit: WeeChat 2.2]
<elvishjerricco>
talqu: The `env` nix-shell is going to provide a GHC of its own, which may or may not override the one you add there
<elvishjerricco>
talqu: You could use `shellFor`
<mek42_laptop>
elvishjerricco, 18.09 is what I'm downloading, tyvm - now, the big question is am I smart enough for NixOS or will I need to slink back to Gentoo :)
<{^_^}>
[nixpkgs] @Infinisil opened pull request #56550 → nixos/xserver: Point to man page for options available in monitorConfig → https://git.io/fhAL5
<elvishjerricco>
talqu: ^
sondr3 has quit [Read error: Connection reset by peer]
<elvishjerricco>
mek42_laptop: If you're smart enough for Gentoo, you'll probably be fine with NixOS :P
xkapastel has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
<mek42_laptop>
I hope so, but part of the reason I'm checking NixOS out is that I'm not smart enough to sort out a couple months of not upgrading packages
<talqu>
elvishjerricco, and how would you add extra packages in your shell.nix?
<elvishjerricco>
mek42_laptop: Hm, I've never used Gentoo so I can't say how they compare. But I will say I've found updates to be very pleasant with NixOS
scientist has joined #nixos
<mudri>
scientist: Just curious: how do you have a 101-key keyboard? No win key, &c?
<elvishjerricco>
talqu: shellFor can take any stdenv.mkDerivation arguments, so you can add a `nativeBuildInputs = [ghcid];` argument
o1lo01ol1o has joined #nixos
eadwu has joined #nixos
sondr3 has joined #nixos
<mek42_laptop>
do people have opinions on what packages should be declared as root vs installed as a user?
<elvishjerricco>
mek42_laptop: I pretty much just always install stuff globally.
<clever>
elvishjerricco: you can use overrideAttrs on .env
<elvishjerricco>
talqu: That can work too. Should have an identical effect, since they'd both result in just changing the args to stdenv.mkDerivation in shellFor (now that env is based on shellFor)
Guanin has quit [Remote host closed the connection]
<scientist>
mudri: I don't know, the keyboard seems to working but some of the key positions are in different positions than my layout states and the other keys don't do anything when I press them. I am just glad I got something to work, I think I just need to fix the errors then add some things to the nix.configuration file to make the custom keyboard layout permanent
<scientist>
infinisil: I think I need to add a few more things to the layout to get it to work properly then add a few more things to nix.configuration to connect it and make it permanent, i'm not sure though