<adamt>
Has anybody had success with booting the plain netboot-media? (the ones generated using `nix-build -A netboot.x86_64-linux ./nixos/release.nix`)
<adamt>
When I try it on a KVM guest i get a kernel panic: "not syncing: VFS: Unable to mount root fs on unknown-block(0,0)"
<adamt>
Seems like it's either trying to mount something wrong, or failing at mounting the fs inside the initrd image
daveo has quit [Remote host closed the connection]
<nixosnewbie>
clever: I reviewed the source code postgresql.nix that you mentioned. I had read it before but the interaction with systemPackages escaped me. Thank you very much for helping me with detailed references!
leotaku has quit [Quit: WeeChat 2.1]
acarrico has joined #nixos
rain1 has quit [Quit: Leaving]
drakonis has quit [Ping timeout: 245 seconds]
sir_guy_carleton has joined #nixos
sir_guy_carleton has quit [Client Quit]
woodson has joined #nixos
<infinisil>
woodson: What exactly are you trying to do?
<woodson>
infinisil: Thanks for replying
<woodson>
I am building a reflex project with nix
<woodson>
however, after the build
<woodson>
I have to move the all.js file that it produces and use closure compiler to compress
<woodson>
I was just wondering if I could write the script directly from nix
<woodson>
since I heard that nix is able to perform such task
<infinisil>
You can put a bash script in postInstall to do that
obadz- has joined #nixos
<infinisil>
While you can declare that in Nix, it's bash that runs it in the end
<woodson>
so, postInstall = <pathofbash> ?
obadz has quit [Ping timeout: 240 seconds]
obadz- is now known as obadz
drakonis has joined #nixos
<infinisil>
Nah, `postInstall = ''\n echo hi \n''`
<infinisil>
(replace \n by newlines)
silver has quit [Read error: Connection reset by peer]
<woodson>
oh thats what you meant by put a bash script
<adamt>
night. ttl
asuryawanshi has quit [Remote host closed the connection]
asuryawanshi has joined #nixos
adamt has quit [Ping timeout: 256 seconds]
daveo has joined #nixos
daveo is now known as ocho
ocho is now known as mconstant
worldofpeace has quit [Quit: Konversation terminated!]
<mconstant>
Anyone know how to get the latest Discord?
hoshineko has joined #nixos
ericsagnes has joined #nixos
nickoralias has quit [Quit: Connection closed for inactivity]
marusich has quit [Ping timeout: 260 seconds]
hoshineko has quit [Ping timeout: 248 seconds]
oltoAltn has joined #nixos
olto has quit [Ping timeout: 248 seconds]
mahalel_ has quit [Remote host closed the connection]
<ryantm>
steell: As a reference point when I do `let pkgs = import <nixpkgs> {}; in pkgs.openzwave` in my `nix repl` it gives me a derivation as a result.
andymandias has joined #nixos
<steell>
ryantm: i get: attribute 'openzwave' missing
<ryantm>
steell: here's what nix-info is for me: system: "x86_64-linux", multi-user?: yes, version: nix-env (Nix) 2.0, channels(root): "", channels(ryantm): "", nixpkgs: /home/ryantm/p/nixpkgs
<ryantm>
steell: p/nixpkgs is at 2fe842a2000
<steell>
fwiw im on nixos
ckauhaus has joined #nixos
<ryantm>
Can you try `let pkgs = import <nixpkgs> {config = {};}; in pkgs.openzwave`
<steell>
same result
<ryantm>
steell: In your nix-info output your root user has two channels.
<ryantm>
steell: Is it possible that openzwave is not in 18.03?
asuryawanshi has quit [Remote host closed the connection]
<ryantm>
steell: Based on what you are seeing, it's probably looking at every channel, but when you do import <nixpkgs>, it's picking only one, probably the first one.
<steell>
the channel that is output when doing `nix-env -qaP <pkgname>` corresponds to the name of the channel in nix-channel --list-channels?
<steell>
`nix-channel --list`, rather
<ryantm>
steell: I'm not sure, but you could try renaming a channel to test it
<woodson>
Hey everyone, I got this default.nix https://lpaste.net/1512017041551261696 I want nix to execute a bash command after the build but it doesnt seem to work.
<woodson>
clever, recommended me to use pkgs.haskell.lib.overrideCabal which I did but still nothing
<woodson>
Still very knew with nix so I am reading the guide and trying things at the same time
<woodson>
but I still dont have a clear understanding of nix
<woodson>
I want my postInstall to create a file hello.txt file
<ryantm>
woodson: You are not using the overrideCabal anywhere
<woodson>
ryantm: these example overriding packages
<woodson>
how do I tell it to override the overrideCabal of the project
johnw has quit [Read error: Connection reset by peer]
johnw has joined #nixos
<ryantm>
woodson: Are you saying you want to redefine pkgs.haskell.lib.overrideCabal?
<woodson>
ryantm: I want the postInstall to execute once the nix-build is done building my whole project
<woodson>
so, I dont think that I am supposed to override the pkgs?
Have-Quick has quit [Quit: Have-Quick]
<ryantm>
woodson: I don't really understand what is going on, there are a bunch of imports. But postInstall is some normal thing you can use inside of any makeDerivation-like thing.
<unlmtd>
with content-addressed filesystems, nixpkgs can not only be lazily-evaluated, but it can also be lazily-fetched
<unlmtd>
then it could be broken up in a lot of small repot
<unlmtd>
repos*
griff_ has joined #nixos
ckauhaus has joined #nixos
ckauhaus has quit [Ping timeout: 240 seconds]
lord| has quit [Ping timeout: 240 seconds]
throwboy has joined #nixos
throwboy has quit [Remote host closed the connection]
katyucha has joined #nixos
sary has quit [Quit: Changing server]
justbeingglad has joined #nixos
justbeingglad has left #nixos [#nixos]
roconnor has quit [Remote host closed the connection]
roconnor has joined #nixos
lord| has joined #nixos
<sphalerite>
so netsurf is its own little package set with some particularities — it's built with netsurf = recurseIntoAttrs (let callPackage = newScope pkgs.netsurf; in rec { … };
<sphalerite>
there's no way to get into the fixpoint introduced by that rec, is there? I want to override the ui attr :/
Ariakenom has joined #nixos
kreetx has joined #nixos
saltsa has joined #nixos
robstr has joined #nixos
Ariakenom has quit [Read error: Connection reset by peer]
<ij>
I'm in a noDesktop xfce session and I'm trying to start up xfce4-notifyd, but it says dbus refused the connection. Why is that and what odes that mean?
<{^_^}>
[nixpkgs] @orivej pushed commit from R. RyanTM to master « pari: 2.9.4 -> 2.9.5 »: https://git.io/vpj2T
deepfire` has joined #nixos
<ndrei>
Hi, I'm getting, all of a sudden, this strange error when trying to build my config: "infinite recursion encountered, at undefined position [...] error: while evaluating the attribute 'config.system.build.toplevel' at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/nixos/modules/system/activation/top-level.nix:263:5" .
<{^_^}>
[nixpkgs] @orivej pushed commit from R. RyanTM to master « chirp: 20180512 -> 20180519 »: https://git.io/vpjVh
<nikivi>
Is there any setting you can set so that nix-shell always chooses zsh without passing `--command zsh` all the time to nix-shell?
justbeingglad has joined #nixos
<srhb>
nikivi: Nope.
justbeingglad has left #nixos [#nixos]
<srhb>
best bet is to make an alias.
<srhb>
But that's also cumbersome.
<srhb>
I've considered just switching to bash to get over it, but ugggh. :)
* etu
runs fish and has this issue from time to time
<etu>
But I've made an abbreviation that expands "nsh" to "nix-shell --run fish -p" so I can type "nsh<space>" and then just continue typing packages and whatever
<srhb>
etu: Funny, my alias is exactly nsh. :)
<nikivi>
srhb I currently have `alias ns='nix-shell --command zsh` set. What can be cumbersome about that?
<srhb>
nikivi: I remember being bothered by some of the other flags I'd want to pass, but I don't recall exactly what the problem was. Maybe my alias was bad.
<disasm>
I know a) json is parseable by yaml and b) nix can read json with builtins.fromJSON. I use both of these facts to take a nix attribute set, dump to JSON and write a file that yaml can parse, but it doesn't work the other way, to read a yaml file and convert it to an attribute set. Anyone know a solution to do that?
<disasm>
oops, I meant write JSON with toJSON :)
<sphalerite>
disasm: yaml2json?
<sphalerite>
combined with builtins.fromJSON
<disasm>
yeah, yaml -> json -> nix. Essentially I want to read a yaml file in a git repository, convert it to nix, apply a `//` operator to it to alter a couple values and write that file instead of the original.
<{^_^}>
cannot import '/nix/store/bigaskr5gznym0vr0iv0aw1vgrgiafi0-foo.nix', since path '/nix/store/9jhghw1anzz9vccgphr3wjsg3wjbla5y-foo.nix.drv' is not valid, at (string):39:1
<sphalerite>
hehe doesn't work with {^_^} of course
<sphalerite>
but yeah, that becomes interesting when you have more complex derivations like something involving yaml2json
<fendor>
hello, guys. apparently, some ghc versions are not in the unstable channel or the stable 18.03 channel. If i have to build a haskell project with ghc version 8.0.2, it seems that i cant do that anymore, is that correct?
coot has quit [Quit: coot]
Ariakenom has joined #nixos
<crystalgamma[m]>
where does separate-debug-info.sh get its $READELF, $STRIP and $OBJCOPY variables? because I'm getting errors when building with stagesNative
chaker has joined #nixos
adamt has joined #nixos
kim0 has joined #nixos
adamt is now known as Guest8912
Guest8912 has quit [Changing host]
Guest8912 has joined #nixos
Guest8912 is now known as adamt
<adamt>
Has anybody had success with booting the plain 18.03 netboot-media? (generated using `nix-build -A netboot.x86_64-linux ./nixos/release.nix`)
<adamt>
When I try it on a KVM guest i get a kernel panic: "not syncing: VFS: Unable to mount root fs on unknown-block(0,0)"
<Myrl-saki>
Okay. I've tried networking as much as I could, but I'm really lost now. How do I connect multiple containers together?
<disasm>
etu: definitely hit me up in IRC :) github == too much noise nowadays!
jmiven has joined #nixos
gm152 has quit [Client Quit]
<chaker>
Hey, I stopped a deployment couple of days ago. When I started it back today, the deploy kept waiting for SSH access to one of the instances (I'm using EC2 here). I checked AWS console, and found that 1 of the instance check is failing "Instance reachability check failed at May 21, 2018". By checking the "System Log" I found that Stage 1 failed with this error "switch_root: can't execute
<chaker>
'/nix/store/rmv5fg3gi9h25gi8ylqlkwjnba5gya39-nixos-system-steve-dev-17.09.2875.c2b668ee726/init': No such file or directory". Here's the relevant part from System log https://pastebin.com/raw/YujUir0Q
m0rphism has quit [Quit: WeeChat 1.9.1]
m0rphism has joined #nixos
m0rphism has quit [Client Quit]
gm152 has joined #nixos
m0rphism has joined #nixos
<disasm>
etu: you're currently using it I'm guessing right? I can assume it works and don't need to manually test it myself? Looks good from a glance.
m0rphism has quit [Client Quit]
<etu>
disasm: I think I've tried to ping you in here about it before, but it probably disappeared in the log since it's a quite active channel :)
<etu>
Yes, I have a locally patched nixpkgs with the same changes copied (not manually edited)
m0rphism has joined #nixos
nschoe has joined #nixos
<etu>
disasm: And if I ls /var/lib/gitea I find "gitea-dump-1526437866.zip gitea-dump-1526524267.zip gitea-dump-1526610666.zip gitea-dump-1526697066.zip gitea-dump-1526783467.zip gitea-dump-1526869867.zip" and they are created at expected times :)
Forkk has quit [Quit: No Ping reply in 180 seconds.]
<{^_^}>
[nixpkgs] @disassembler merged pull request #40565 → nixos/gitea: Enable configuring of derivation and a systemd timer for creation of backups → https://git.io/vp5Pi
<{^_^}>
[nixpkgs] @disassembler pushed 3 commits to master: https://git.io/vpjy8
<{^_^}>
→ e166aee8 by @etu: nixos/gitea: Allow customizing derivation to use
<{^_^}>
→ ce42182d by @etu: nixos/gitea: Add options to enable a timer with optional interval
<{^_^}>
→ 5830b038 by @disassembler: Merge pull request #40565 from etu/gitea-improvements
<disasm>
etu: merged!
<etu>
yay, thanks :)
knupfer has quit [Ping timeout: 245 seconds]
Forkk has joined #nixos
<nwspk>
nix always wants to upgrade my stable octave-version (installed octaveFull) to the dev-version served by octaveHg
<nwspk>
however, the Hg-version doesn't come with a GUI and needs to be compiled on my machine
<nwspk>
how can I "pin" octave to the stable version?
<{^_^}>
→ d2329184 by R. RyanTM: bind: 9.12.1 -> 9.12.1-P2
<{^_^}>
→ 193dedff by @peti: Merge pull request #40867 from r-ryantm/auto-update/bind
<disasm>
nwspk: are you calling purePackages.octave in your config?
<nwspk>
disasm: I just stumbled about the …/pure-packages.nix-file where octave is set to octaveHg
<nwspk>
disasm: but how do I change this? atm I have installed octave with `nix-env -iA nixos.octaveFull`
<disasm>
looking at nixpkgs, the default for pkgs.octave and pkgs.octaveFull are both 4.2.2. Only pkgs.octaveHg and pkgs.purePackages.octave should use the hg derivation.
<sphalerite>
nwspk: basically, nix-env -u is terrible for the same reasons as -i without -A ^
<adamt>
I see that my netboot issue might be due to using efi. Does anybody know what magic to append to the ipxe-script to make the netboot not kernel panic due to not finding the root fs?
ThatDocsLady_ has joined #nixos
ThatDocsLady has quit [Ping timeout: 245 seconds]
<sphalerite>
adamt: you could add the kernel parameter boot.debug1devices to make it stop and offer to drop to a shell, if what you want to do is debug why it's failing to find the root device
<disasm>
adamt: I know clever ran into some issues with efi netbooting as well. I haven't gotten around to testing it myself here yet. Maybe next time I need to touch one of my macs running nixos I'll try it out.
<adamt>
disasm: Do you know whether he solved it, or gave up on efi? I suppose i could easily avoid efi if i wanted to, but it sure would be nice to get efi working.
<{^_^}>
[nixpkgs] @peti merged pull request #40824 → Dont test enclosed exceptions → https://git.io/vphAq
<sphalerite>
the 1 there is for stage 1, I believe
<adamt>
ah, makes sense.
robstr has quit [Ping timeout: 252 seconds]
<adamt>
Can't get it working though, this is what is fed to ipxe: kernel bzImage init=/nix/store/7anxhzmh2vx8121s1rykihlswmiigvrc-nixos-system-nixos-18.03pre56789.gfedcba/init loglevel=4 boot.debug1devices
<adamt>
i don't expect the order to be important
<sphalerite>
yeah, shouldn't be
<sphalerite>
You do have the initramfs as well right?
<sphalerite>
in fact it shouldn't be trying to mount anything, just booting straight in the initramfs
mariel__ has joined #nixos
<adamt>
yeah, i got a line with "initrd initrd"
puckipedia has quit [Quit: *eh*]
spear2 has joined #nixos
ThatDocsLady_ has quit [Ping timeout: 245 seconds]
Neo-- has joined #nixos
puckipedia has joined #nixos
ThatDocsLady has joined #nixos
leat has quit [Ping timeout: 245 seconds]
mariel__ has quit [Ping timeout: 245 seconds]
schjetne has quit [Ping timeout: 265 seconds]
schjetne has joined #nixos
knupfer has joined #nixos
<nwspk>
disasm, sphalerite: thanks for the octave-thing! It was, as mentioned, `nix-env -u`s "fault" by just comparing the version numbers
<nwspk>
Adding the `octaveFull`-package to my configuration.nix fixed it. I should just get out of the habbit of using nix-env
iyzsong has joined #nixos
<sphalerite>
nwspk: you can use nix-env declaratively as well though, see the overlay linked in the wiki article
puckipedia has quit [Ping timeout: 245 seconds]
karlguy has joined #nixos
<sphalerite>
nwspk: personally I keep systemPackages fairly minimal and put most of my stuff in my user environment declaratively
<nwspk>
sphalerite: yeah, but I thought of it as some kind of hacky overkill
acarrico has joined #nixos
<nwspk>
perhaps I will take a look at home-manager one day
<crystalgamma[m]>
I see build-support/setup-hooks/separate-debug-info.sh uses $READELF, $OBJCOPY and $STRIP, but they are empty for me. Where are their values supposed to come from?
<sphalerite>
it's not really hacky IMO, and it has the advantage of working on non-nixos systems as well. But yeah it is a matter of personal preference, if systemPackages is what works for you then it's the right thing for you to use :)
schjetne has quit [Ping timeout: 245 seconds]
<nikivi>
What is the best way to reuse a custom shell environment in Zsh inside nix-shell?
puckipedia has quit [Remote host closed the connection]
<disasm>
nwspk: yeah, friends don't let friends use `nix-env` :) I'm a big fan of just putting things in systemPackages or writing separate shell.nix files for things I don't want in my path all the time.
<disasm>
nwspk: but that implies nixos or nix-darwin
<sphalerite>
disasm: hey! nix-env with --set or -ir is great!
ThatDocsLady has quit [Ping timeout: 245 seconds]
Rusty1_ has joined #nixos
<sphalerite>
:p
<sphalerite>
nikivi: yeah there's basically no way to have it all AFAIK.
<disasm>
nikivi: I alias nix-shell --run zsh to nshell. Use that 90% of the time. If it's something that breaks, just run nix-shell and deal with bash.
ThatDocsLady_ has quit [Remote host closed the connection]
maingo has quit [Quit: Connection closed for inactivity]
<nschoe>
Hi everyone, I'm having a small issues. I'm trying to follow meson's basic tutorial, basically creating a GTK hello world, and learning to compile with meson / ninja.
<clever>
nschoe: try adding pkgconfig to the buildInputs
<nschoe>
when running 'meson build', it complains not to be able to find gtk+-3.0, but I have created a shell.nix file with 'gnome3.gtk' in the 'buildInputs', and ran nix-shell.
<nschoe>
clever, ok, I'll try this. I had thought of this, but since the outputs tells "Found pkg-config: /home/nschoe/.nix-profile/bin/pkg-config (0.29.2)" I thought it was not related.
<nschoe>
Could you explain?
ThatDocsLady has joined #nixos
<clever>
nschoe: pkgconfig breaks if you manually install it
<clever>
it must be in the buildInputs to be able to find other buildInputs
<{^_^}>
→ ad399afd by @pmiddend: pythonPackages.pysdl2: init at 0.9.6
<nschoe>
clever, okay so it means I should not have pkgconfig installed on my system, but I should always add it to my projects's buildInputs when I need it?
<{^_^}>
→ fc1ccb36 by @Mic92: Merge pull request #36506 from plapadoo/pysdl2-init
<Mic92_>
Plato[m]: merged
<clever>
nschoe: correct
<nschoe>
clever, (thanks btw, it worked like a charm :) )
<nschoe>
clever, good to know, I'll remove it then, thanks!
<nschoe>
clever, (is this due to the fact that *.pc files are traditionally installed in a "global" location, and this doesn't work with nixOS well? A bit like library and /usr/lib or heade rfiels in /usr/include?)
<adamt>
I finally got into the nixos stage 1 boot after setting initrd=initrd and root=/dev/ram0 (though i thought that were already the default values..)
schjetne has joined #nixos
zdisk[m] has joined #nixos
<sphalerite>
nschoe: yes, exactly
<sphalerite>
nschoe: pkgconfig has a setup hook which goes through all the buildInputs and adds any that have .pc files to PKG_CONFIG_PATH
<gchristensen>
adamt: iPXE + UEFI?
<adamt>
gchristensen: Yup. Think i got it working now, just confirming it right now.
<gchristensen>
probably don't need root=/dev/ram0, I don't
<gchristensen>
but initrd=initrd will getcha
ThatDocsLady_ has joined #nixos
ThatDocsLady has quit [Ping timeout: 245 seconds]
<sphalerite>
oooh we now have a warning for stateVersion not being set! That's good
<{^_^}>
→ d9dadce7 by @teto: libnl: 3.3.0 -> 3.4.0
<{^_^}>
→ 0d17a57a by @teto: pythonPackages.libnl-python: init at 3.4.0
<{^_^}>
→ 99c1d030 by @Mic92: Merge pull request #40470 from teto/libnl_python
TonyTheLion has quit [Remote host closed the connection]
<adamt>
gchristensen: root=/dev/ram0 is certainly required to get my kvm guest booting
<gchristensen>
weirdd
<adamt>
gchristensen: I'll be trying it out on actual hardware (and on vmware/vsphere) later this week, and maybe i'll turn out to be kvm specific? Hmm.
<nschoe>
sphalerite, okay thanks. So it's something nixOS dev had to do, right? I mean is there a "--prefix" equivalent to tell pkgconfig where it should gather its .pc files, or did the devs had to manually scan through the buildInputs, grepping for .pc files and "manually" add them to pkgconfig?
<adamt>
gchristensen: Well, I can only say that this works: kernel bzImage init=/nix/store/p9m48ipqw8z9lrna6nnhfwld3xdxdg6p-nixos-system-nixos-18.03pre-git/init loglevel=4 nomodeset initrd=initrd root=/dev/ram0
<adamt>
and if i leave out root=/dev/ram0 it fails with the not syncing vfs error
<gchristensen>
cool
<adamt>
thx for the help all of you, but don't worry, i'll be back.
<sphalerite>
I'm fiddling about with nixos on scaleway C1 (ARM) servers and it seems to insist on building the kernel, but I don't actually need the kernel since it's just running scaleway's anyway. Can I get nixos to not depend on the kernel?
<sphalerite>
Or is hacking it to use allnoconfig or something a better idea?
<sphalerite>
I just don't want to wait every time
<teto1>
adamt: i had problems with root when using a bzimage with nixops. Maybe I can help if you have a pb
Orbstheorem has joined #nixos
<{^_^}>
[nixpkgs] @seppeljordan opened pull request #40879 → nixos/ipfs: Add option to disable local port scanning for ipfs daemon → https://git.io/vpj5u
<adamt>
sphalerite: Oh, aha. Thx teto1, i'll ping you if issues arrise. :-)
<teto1>
adamt: maybe you can use init=/nix/var/nix/profiles/system/init instead of the fullpath ? my problems is related to nix boot not creating the /dev/root symlink hwne specifying root on command line
coot has joined #nixos
<teto1>
I got a small patch for nixops but if you don't have the problem than that's cool
<teto1>
sphalerite: thanks for making me realize. I thought that was as universal as "taxi" :)
<gchristensen>
teto1: I don't think you can
<adamt>
teto1: i'll try using that path instead, it would make things easier if i can just hardcode it.
<gchristensen>
teto1: (use the symlink path) since at PXE it doesn't exist, I don't think
<sphalerite>
:) I think it's related to how in French it's more clearly cut into pro-blème. But anyway if we want to talk about language, #nixos-chat :D
<adamt>
teto1: We don't use nixops though (rolled our own), so if your issue is nixops-specific I/we isn't going to run into it
dispanser has quit [Ping timeout: 260 seconds]
<Orbstheorem>
Alright, thanks!
dispanser has joined #nixos
ThatDocsLady_ has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @Mic92 pushed 2 commits to release-18.03: https://git.io/vpjdL
<{^_^}>
→ e9b9e344 by R. RyanTM: linuxPackages.wireguard: 0.0.20180413 -> 0.0.20180420
<{^_^}>
→ f40961ff by @r-ryantm: linuxPackages.wireguard: 0.0.20180420 -> 0.0.20180514 (#40631)
<adamt>
teto1: gchristensen is correct, the symlink path doesn't work. Great idea though
schjetne has quit [Ping timeout: 245 seconds]
freeman42x]NixOS has joined #nixos
puckipedia has joined #nixos
<srhb>
Okay, I'm stumped. I have a derivation for stdenv which I'm unable to build on one machine (is not allowed to reer to the following paths: ...-bootstrap-tools, ...-busybox) but can build just fine on a different machine. Is there any option that affects this in the same hash? I only know of allowedReferences and friends.
dispanser has quit [Remote host closed the connection]
<srhb>
s/reer/refer
<{^_^}>
[nixpkgs] @Mic92 pushed commit from R. RyanTM to release-18.03 « wireguard: 0.0.20180514 -> 0.0.20180519 »: https://git.io/vpjdE
<srhb>
The only other thing I can think of is sandboxing on/off, but that's on in both cases.
katyucha has joined #nixos
puckipedia has quit [Ping timeout: 245 seconds]
<sphalerite>
I've got a project building for ARM by patching out a -msse2 from its build scripts. Should I just do this unconditionally, in spite of the potential performance impact on x86? If not, what's the One True Way™ of determining whether we're building for x86 or something else?
puckipedia has joined #nixos
dispanser has joined #nixos
<clever>
sphalerite: there is also the issue of building on an sse2 cpu, then nix-copy-closuring to a non-sse2 cpu
orivej has joined #nixos
<sphalerite>
clever: hence my first question.
<sphalerite>
But nowadays I'd wager that non-SSE2 hardware is pretty rarely used.
<chaker>
Hey, I stopped a deployment couple of days ago. When I started it back today, the deploy kept waiting for SSH access to one of the instances (I'm using EC2 here). I checked AWS console, and found that 1 of the instance check is failing "Instance reachability check failed at May 21, 2018". By checking the "System Log" I found that Stage 1 failed with this error "switch_root: can't execute
<chaker>
'/nix/store/rmv5fg3gi9h25gi8ylqlkwjnba5gya39-nixos-system-steve-dev-17.09.2875.c2b668ee726/init': No such file or directory". Here's the relevant part from System log https://pastebin.com/raw/YujUir0Q
<clever>
id just unconditionally remove it, maybe add a withSSE2 ? false override
toby1851 has quit [Ping timeout: 245 seconds]
rauno has quit [Ping timeout: 252 seconds]
katyucha has quit [Ping timeout: 248 seconds]
waleee has joined #nixos
<Myrl-saki>
Gahhhhh
<Myrl-saki>
Why is host to open
katyucha has joined #nixos
<Myrl-saki>
Why is host to container open
<Myrl-saki>
but container to container closed
<{^_^}>
[nixpkgs] @lheckemann opened pull request #40880 → tdesktop: enable on other platforms → https://git.io/vpjFi
<Myrl-saki>
i've been working on this since last night ree
<Myrl-saki>
PORT STATE SERVICE
<Myrl-saki>
1234/tcp open hotline
<Myrl-saki>
PORT STATE SERVICE
<Myrl-saki>
1234/tcp filtered hotline
<Myrl-saki>
And I can ping from container to cntainer.
toby1851 has joined #nixos
karlguy has quit [Ping timeout: 260 seconds]
ihar has joined #nixos
<Myrl-saki>
And yes, I tested for false negatives.
<srhb>
ixxie: Usually they were fewer layers (often just one) so I think you get rid of that overhead at least.
<gchristensen>
rebuilds are b/c the graph is smarter than the layers
<srhb>
I'm not sure how big that is though
* gchristensen
needs a personal factoid for "can't type much today"
<srhb>
gchristensen: Save your hands. :)
<ixxie>
gchristensen: that is what I thought :)
<goertzenator>
gchristensen: Thanks, but I still get `error: attribute 'mono58' in selection path 'mono58' not found`
<ixxie>
gchristensen: thanks!
<gchristensen>
oh nixos.mono58 or nixpkgs.mono58
<srhb>
goertzenator: It's probably nixpkgs.mono58 or nixos.mono58
<srhb>
Depending on your channel name
<goertzenator>
There it goes, thanks!
<Slabity>
If I don't have any channels in `nix-channel --list` or `sudo nix-channel --list`, then what channel does the system use when I run `sudo nixos-rebuild`?
<Slabity>
Looks like `nix-channel` just isn't listing the channels that exist for some reason.
justbeingglad has joined #nixos
<tilpner>
Are you on Nix 1 or 2?
<Slabity>
2
<tilpner>
Huh
<tilpner>
Does /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs look like a nixpkgs checkout?
contrapumpkin has joined #nixos
<Slabity>
Yea, it's a symlink to its own folder
<Slabity>
`$ ls /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/
<tilpner>
What's the content of /root/.nix-channels?
<Slabity>
Oh... There's nothing in `/root`
cyris212 has joined #nixos
<Slabity>
I think I might of wiped it out of habit a little while ago
<tilpner>
.nix-channels is the file nix-channel would list
<Slabity>
That makes sense.
<tilpner>
And your /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs might be leftover from before you broke your channels
<Slabity>
Is there a way to completely reset my system from scratch then? Something that would restore all of that?
smallville7123 has joined #nixos
<gchristensen>
no need to
<gchristensen>
just add the channel back as root
cyris212 has quit [Ping timeout: 240 seconds]
<Slabity>
Getting lots of `warning: Nix search path entry '$HOME/.nix-defexpr/channels' does not exist, ignoring` messages after doing that and rebuilding
<gchristensen>
is $HOME your home, or root's home?
<Slabity>
Well I'm just running `sudo nixos-rebuild boot --upgrade`, so I'm assuming root's home
smallville7123 has quit [Client Quit]
goibhniu has quit [Ping timeout: 256 seconds]
<Slabity>
Nevermind. Looks like it's keeping the current user's $HOME
smallville7123 has joined #nixos
chaker` has left #nixos ["ERC (IRC client for Emacs 25.3.1)"]
<Slabity>
`.nix-defexpr/channels` exists in both `/root`and my $HOME directory though, so that's pretty weird that it says it doesn't exist
unkn has joined #nixos
Ariakenom has quit [Ping timeout: 245 seconds]
justbeingglad has left #nixos [#nixos]
jperras has quit [Quit: WeeChat 2.1]
endformationage has joined #nixos
balsoft has joined #nixos
<{^_^}>
[nixpkgs] @fgaz opened pull request #40883 → zeronet: init at 0.6.2 → https://git.io/vheLg
jperras has joined #nixos
grp has joined #nixos
leat has quit [Ping timeout: 245 seconds]
smallville7123 has quit [Quit: rosa]
<ocharles>
I just updated my hydra to Nix 18.03, and now I see `error: access to path '/nix/store/nbs8is7ni7yjw6ndd1s64v0x1m2cckgz-github-pulls-sorted.json' is forbidden in restricted mode`
<ocharles>
Do I need to worry about this?
<srhb>
ocharles: If you care about it, you'll have to patch it out..
<srhb>
ocharles: I think fundamentally it's a good restriction though
<srhb>
But rewriting expressions to avoid it can be too hard to do all at once
<infinisil>
ocharles: srhb: You can pass paths explicitly in NIX_PATH to make them accessible even in restricted mode
<ocharles>
Does it mean that my hydra can no longer build PRs?
<srhb>
Not fundamentally, no.
<srhb>
You're probably using some IFD shenanigans that hit the restricted eval limitation? That seems to be the most usual case.
<ocharles>
My Hydra logs all seem to have <3> at the start of them now, too
<srhb>
fwiw the thing to patch is in hydra-eval-jobs/hydra-eval-jobs.cc: settings.restrictEval = true -- but I do think that is the wrong (if sometimes necessary) solution.
karlguy has joined #nixos
fendor has quit [Ping timeout: 264 seconds]
karlguy has quit [Remote host closed the connection]
maingo has joined #nixos
<cransom>
when i was setting up a hydra, i didn't see anyway around patching out the restrict eval in order to get the pulls working appropriately. the docs didn't mention anything about it really
<ocharles>
i'm a bit confused, but it sounds like i'm being told that if I want to build PRs (I do), I should patch that
<{^_^}>
[nixpkgs] @xeji pushed to release-18.03 « faust2: fix build with llvm 5.0.2 (#40672) »: https://git.io/vhesK
<srhb>
stdenv is becoming too polluted somehow
<ocharles>
yay for unquoted bash scripting
<srhb>
ocharles: fwiw that refers to the whole environmnt, so it's usually environment variables taking up too much space rather than the arguments themselves..
alexteves_ has joined #nixos
<ocharles>
that error looks to me like cd is being called with multiple arguments. and line 160 is `cd $dir`, but should really be `cd "$dir"`
<srhb>
Ah
<srhb>
I misread the error
<srhb>
:-)
<srhb>
Disregard
kim0 has quit [Quit: Connection closed for inactivity]
<clever>
ocharles: are there git submodules at play?
<ocharles>
yes
<ocharles>
I think the git submodule status format changed
<ocharles>
I'm trying to work out what this sed expression used to do
<adamt>
I read somewhere about an option to disable the predictable NIC naming (that is, return to the good old ethX-naming), but can't find the option, and can't remember where i read about it. Any hints?
<clever>
ocharles: nix-prefetch-git was already fixed in nixpkgs, but hydra has its own copy of the fix
<ocharles>
thanks
<ocharles>
I'll try this
<clever>
ocharles: this PR includes a patch for hydra to fix it
<LnL>
adamt: it's a kernel option
<ocharles>
huh, you guys have kris jenkins working with you?
<clever>
cant think of anything that would do that
<srhb>
Me neither.
thblt has joined #nixos
<srhb>
Oh actually
<srhb>
That was a broken path
<srhb>
Maybe that's related.
woodson has joined #nixos
lonokhov has quit [Quit: WeeChat 2.0]
markus1189 has quit [Ping timeout: 248 seconds]
markus1189 has joined #nixos
tilman_ has joined #nixos
coot has joined #nixos
markus1189 has quit [Ping timeout: 245 seconds]
markus1189 has joined #nixos
<tilman_>
hi all, I am trying to run the armv6 image on a pi zero. I've seen betaboon mention he had issues in Dec. 2017 but nothing new since then. I have the same symptoms: blinking pattern long-short-pause, no HDMI output. Any suggestions where I might get some ideas what to check?
worldofpeace has joined #nixos
kmels has joined #nixos
asuryawanshi has joined #nixos
<worldofpeace>
Anyone know how to set wineBuild to "wine32" in a nix expression?
<drakonis>
it is wine32 by default
<worldofpeace>
It seems to be wineWoW
<{^_^}>
[nixpkgs] @vbgl opened pull request #40884 → ocamlPackages.earley_ocaml: init at 1.0.2 → https://git.io/vhelP
Sonarpulse has joined #nixos
iyzsong has quit [Ping timeout: 245 seconds]
cyris212 has joined #nixos
<ocharles>
If I have imported nixpkgs, is there a way to turn that into a path? I need to do something like `import "${nixpkgs.???}/nixos/lib/eval-config.nix"`
<tilpner>
ocharles - nixpkgs.path
pxc1 has joined #nixos
<ocharles>
ah, path
<ocharles>
thanks, I tried src
ckauhaus has joined #nixos
cyris212 has quit [Ping timeout: 245 seconds]
drakonis has quit [Remote host closed the connection]
<worldofpeace>
How do I call a package with an argument to use 32bit only wine?
<clever>
worldofpeace: pkgsi686Linux or pkgs.callPackage_i686 may be of use
<worldofpeace>
clever: Yeah that sounds good. It'll check that. :)
asuryawanshi has quit [Remote host closed the connection]
cnidario has quit [Read error: Connection reset by peer]
asuryawanshi has joined #nixos
seppellll has joined #nixos
<nyanloutre[m]>
disasm: Hi, I just saw your message about my PR. Isn't the build failure because of a dependency (numpy) ?
ixxie has joined #nixos
<worldofpeace>
nikivi: Saw you were asking about antibody. The pr was merged. But it's only on master... You can use antibody any way you were before but It wouldn't be very nix'y.
<nyanloutre[m]>
It seems Hydra doesn't have time to compile Cython for aarch
worldofpeace has quit [Ping timeout: 260 seconds]
worldofpeace has joined #nixos
<crystalgamma[m]>
thoughtpolice: You are mentioned as maintainer of libseccomp in nixpkgs … I'm getting forbidden reference errors on my system. Since there is already a hack in the expression, do you know what's up with that?
fendor has joined #nixos
<{^_^}>
[nixpkgs] @pmiddend opened pull request #40885 → pyogg: init at 0.6.2a1 → https://git.io/vhegO
sigmundv__ has quit [Ping timeout: 245 seconds]
<thoughtpolice>
crystalgamma[m]: I'm afraid I don't know anything without an actual error/log with a reproduction case, if you can muster those. The RPATH fix in the libseccomp expression seems unrelated; it's just to work around (presumably) a linking glitch in the libseccomp build system
coot has joined #nixos
fragamus has joined #nixos
fragamus has quit [Read error: Connection reset by peer]
fragamus has joined #nixos
<fragamus>
howdy is there a haskell platform package on nixos
<electrocat>
fragamus: i'd argue you don't need the platform
<fragamus>
yeah I just found nix-env -iA nixos.ghc
<fragamus>
that'll do
emmanuelrosa has joined #nixos
<crystalgamma[m]>
thoughtpolice: well the error I'm talking about is about RPATHs in the output directory
taeradan has joined #nixos
Synthetica has joined #nixos
orivej has quit [Ping timeout: 240 seconds]
unkn has quit [Ping timeout: 240 seconds]
<__monty__>
fragamus: Definitely read the haskell section in the nixpkgs manual, lots of useful stuff
<fragamus>
will do and thanks
<crystalgamma[m]>
thoughtpolice: specifically, it says "RPATH of binary /home/user/nix-store/j78q9fn22slvh1haqm8ha42v75jk2vpc-libseccomp-2.3.3/bin/scmp_sys_resolver contains a forbidden reference to /tmp/nix-build-libseccomp-2.3.3.drv-0"
ThatDocsLady has quit [Ping timeout: 245 seconds]
iqubic has joined #nixos
<fragamus>
__monty__ : I should avoid installing stack on nixos right? I tried once and it was hell.
coot has quit [Read error: No route to host]
<__monty__>
fragamus: I don't use it. I assumed it'd work well. As long as you avoid stack's "nix integration."
Mateon3 has joined #nixos
dottedmag_ has joined #nixos
dottedmag_ has quit [Changing host]
dottedmag_ has joined #nixos
<__monty__>
Fwiw, I prefer nix to stack for haskell on non nixos.
dottedmag has quit [Quit: QUIT]
dottedmag_ is now known as dottedmag
coot has joined #nixos
drakonis has quit [Read error: Connection reset by peer]
Mateon2 has quit [Ping timeout: 252 seconds]
Mateon3 is now known as Mateon2
worldofpeace has quit [Remote host closed the connection]
roosemberth[hll] has joined #nixos
<roosemberth[hll]>
Hey, is it possible to delete purge events, cache, and everything related to rooms that every user in the hs left?
aarvar has joined #nixos
<gchristensen>
what?
<adamt>
Sounds like a matrix-question.
<adamt>
Actually I'm fairly confident that's the case :-)
<adamt>
roosemberth[hll]: try asking in #matrix (or whatever the matrix-equivalent is of that room)
<MichaelRaskin>
Joining that room via Matrix can crash your homeserver, though
<LnL>
lol
<roosemberth[hll]>
Ups, wrong roomx )
<roosemberth[hll]>
x) **
<adamt>
Brilliant design. :-)
<roosemberth[hll]>
Sorry xDD
<roosemberth[hll]>
MichaelRaskin: Yeah, I'm joining using irc xD
<disasm>
fragamus: if you want to use stack, use nix-shell -p stack instead of installing with nix-env. You can also do something like this if you need other dependencies: `nix-shell -p "haskell.packages.ghc842.ghcWithPackages (pkgs: with pkgs; [ stack turtle ])"` but yeah, in general use nix and not stack :)
<fragamus>
i tried to install stack on nixos and I felt like a total idiot
<gchristensen>
are there any terminal emulators which allow for either programmatic- or hotkey-based color scheme switching?
<samueldr>
I wouldn't be surprised if kitty allows it, it seemed to allow binding anything
<hodapp>
I'm sure gnome-terminal has some DBus-based atrocity you can tap into
tmaekawa has joined #nixos
<adamt>
Is anybody aware of any applications that parses the kernel cmdline, and makes it possible to query the values? Or does everybody implement the parsing from scratch? (not difficult, I know, just wondering)
<gchristensen>
samueldr: all these GPU-based terminal emulators ...
tmaekawa has quit [Client Quit]
<gchristensen>
samueldr: imagine "Yeah, I have 4,000 cores backing my text based interface." except in the 70s
Ariakenom has joined #nixos
<andi->
gchristensen: st supports that with a default patch
ckauhaus has quit []
<gchristensen>
does st scroll yet?
<andi->
gchristensen: in general st is pretty "Scriptable" (if you consider writing patches for C file scripting)
<andi->
gchristensen: yes, with the correct (Standard) patch
<hodapp>
o_O
<hodapp>
C... scripting...
<andi->
:D
<seraxis>
st is really easy to configure tbf
<andi->
thats as bit of the philosophy of st. They don't want to handle anything like config parsing
<hodapp>
I still don't use st because I had too many problems with things just not rendering right :-/
<samueldr>
now now, you never specified "simpler" terminal emulators :)
<gchristensen>
IMO the best terminal emulator is iTerm2 on macOS
<seraxis>
hot take
<andi->
hodapp: really? st is the first terminal emulator that just works for me.. all the others required special fonts, perl plugins (urxvt…) etc
<cryp2nomicon>
any tips, how to install aterm in nixos?
<LnL>
gchristensen: I've been trying out kitty for the last few weeks and I like it sofar
<hodapp>
andi-: yes; a lot of normal terminal things for me, in and outside of tmux, would just fail to work right
<samueldr>
(tbh, compositing glyphs on the GPU seems as dumb as pushing pixels on the CPU, when using the GPU isn't an issue)
<andi->
hodapp: do you have an exact use case?
<andi->
I haven't come across any in >1.5y of st
<neonfuz>
anyone know how to configure a finger print reader on nixos?
<neonfuz>
like back when I used fedora it used the fingerprint reader to do everything, log in, sudo, etc
<gchristensen>
LnL: this is looking pretty good, yeah! though I can't seem to make the config file editing work.
<neonfuz>
I see some options for nixos, but I don't really know what to set them to to get it working
nh2 has joined #nixos
<hodapp>
andi-: will try it tonight and see if I can reproduce the issues
<gchristensen>
]$ screen -dr
<gchristensen>
Cannot find terminfo entry for 'xterm-kitty'.
<gchristensen>
:D
<andi->
mhm kitty is laggy for me :/
<andi->
I see considerable input lag
nh2 has quit [Client Quit]
<LnL>
gchristensen: yeah, term xterm-256color
dispanser has quit [Remote host closed the connection]
<gchristensen>
lol I took the default config file from github, did `kitty --config ./kitty.conf` and it started and immediately crashed with an exception. this is going to be a fun yak
balsoft has quit [Quit: balsoft]
<steell-atwork>
so i have a ~/.config/nixpkgs/config.nix to override some packages, is there a way to apply it to a specific channel?
<hodapp>
hmm, st seems to be working fine now for me (at least, in resuming my tmux sessions started wherever/whenever)
<hodapp>
I feel like all my problems occurred when I was on Arch, not NixOS, whether that matters or not
<tilpner>
steell-atwork - It should be applied to any channel you import
<andi->
hodapp: I have the same feeling very often but then again I can not really say it with any confidence..
<steell-atwork>
tilpner: any and all? should i do a hasAttr check if im trying to target a package that only exists in unstable?
<hodapp>
will try it for a few days and see how it goes
<gchristensen>
LnL: kitty seems great!
dispanser has joined #nixos
<samueldr>
in the end I settled on alacritty, seemed pretty much the same, but it has less features; alacritty handles mouse selection better than kitty
<tilpner>
steell-atwork - Importing nixpkgs should by default load that config, but you can of course prevent that from happening
* cransom
hops on the kitty bandwagon for a while to see how it is.
<infinisil>
samueldr: You mean the double tap to select?
woodson has quit [Ping timeout: 245 seconds]
Deknos has joined #nixos
<infinisil>
Oh wait, mouse selection
goertzenator has quit [Ping timeout: 260 seconds]
seanparsons has quit [Read error: Connection reset by peer]
taeradan has quit [Quit: Leaving]
<gchristensen>
cransom: I stopped using all of my other switches this weekend and moved fully over to the junos one. it has been a lot of fun, struggling through that world :D
Czen has left #nixos [#nixos]
symphorien has joined #nixos
<cransom>
gchristensen: so. many. levers.
Deknos has left #nixos [#nixos]
<gchristensen>
all named very similarly
<symphorien>
hello, is it possible to do something like (import "channel:nixpkgs-unstable" {}).hello ?
scoobydooo[m] has joined #nixos
<samueldr>
infinisil: yeah, double and triple-click to select words/lines
rauno has quit [Ping timeout: 245 seconds]
<symphorien>
I tried some variations but none work
<samueldr>
especially chained by keeping it pressed and dragging to select multiple words/lines
<cransom>
yeah, there's a chunk of nuance in there. it's fun to learn new things though
<infinisil>
samueldr: Yeah, and you can even change the selection regex in the config
tor7200 has joined #nixos
Czen has joined #nixos
<ij>
I'm in a noDesktop xfce session and I'm trying to start up xfce4-notifyd, but it says dbus refused the connection. Why is that and what odes that mean?
goertzenator has joined #nixos
nh2 has joined #nixos
<emmanuelrosa>
ij, try asking at #xfce, since xfce4-notifyd is their product.
<ixxie>
oh so you put whatever you need in there including the kernel
<zimbatm>
yes
<zimbatm>
this one only has the notebook but I have some examples with kernels lying around
<ixxie>
jupterlab can run without the ipykernel so I guess it does make sense not to force that on the user
<ixxie>
but it would be nice to have an easy way to have a system installation of jupyterlab
<ixxie>
although I can really see the sense in your approach, its very nixy
<ixxie>
well, I will have to think of this :) thanks zimbatm
<zimbatm>
+
sigmundv__ has quit [Ping timeout: 245 seconds]
<zimbatm>
most of the time I end-up with custom dependencies for the project so the shell.nix makes more sense to me
<zimbatm>
what would be nice is to have a deeper integration. the web UI could be installed globally, and then it would load the shell.nix before spawning a notebook
<zimbatm>
that means changing jupyterlab I guess
<gchristensen>
that sounds awesome
<ixxie>
zimbatm: arborsu has been working on a Nix based custum kernel builder :)
goibhniu1 has joined #nixos
<ixxie>
zimbatm: so it would be as simple as a nix expression for your kernel of the day
<ixxie>
zimbatm: indeed! I am all for do NixData stack :) have tried to package python stuff to this end over the last months
<ixxie>
zimbatm: hopefully I will manage to help aborsu with the jupyter + jupyterhub and eventually jupyterlab services, but I never did a service module PR so its all new
<ixxie>
anyway, bedtime for now
<ixxie>
have a good evening
ixxie has quit [Quit: Lost terminal]
<zimbatm>
see you!
ni291187 has joined #nixos
fenedor has joined #nixos
dispanser has quit [Ping timeout: 245 seconds]
dispanser has joined #nixos
fenedor has quit [Client Quit]
fenedor has joined #nixos
dispanser has quit [Remote host closed the connection]
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<nwspk>
Quick question regarding the (forced) switch from the Mailinglist to Discourse: is it possible to just sign up and get the posts in my inbox or do I have to create a account?
<nwspk>
Metaquestion: why even drop the mailinglist?
mahalel_ has joined #nixos
<MichaelRaskin>
I think you need to create an account (and set it to mailing list mode); there are no mandatory fields beyond email/displayname/subscription password
<MichaelRaskin>
I am not sure Google mailinglist (what about no normally linkable archives) is any better
<MichaelRaskin>
Maintaining an actual mailing list turned out too much hassle, I guess
<nwspk>
Well, I disliked the Google thing. However, the "third party-sharing" stuff in the Discourse's Privacy Policy sucks
kreetx has quit [Ping timeout: 245 seconds]
<muzzy>
If a have a few nixos devices on my network, does it make sense to use nixops to manage them all?
grp has quit [Quit: box shutting down...]
<infinisil>
muzzy: I'm doing that with my 3 machines, works pretty well :)
baconicsynergy has joined #nixos
<muzzy>
infinisil, cool! How do you configure each device? I've noticed that inside a vm deployed by nixops, I can't edit /etc/nixos/configuration.nix (doesn't exist)
<infinisil>
Well you'd do it from a single machine
<clever>
muzzy: you edit the config on the machine thats running nixops
<adamt>
muzzy: basically you're generating the entire remote host locally, including configuration, and then pushing it out.
<muzzy>
So there is one central device that manages the network with nixops?
<clever>
yeah
<adamt>
muzzy: Well, you could put the config in git and push it to github (or w/e), just be careful with the silly (sorry) sqlite db that nixops uses.
<bennofs[m]>
is there something like a stateless nixops for small networks? where I can just list IPs and it pushes the config to nixos systems running at those ips?
jtojnar has joined #nixos
<muzzy>
okay I think I understand, thank you guys
<clever>
bennofs[m]: if every host is using the "none" targetEnv, you can technically just `nixops create` the same deployment on several machines, and deploy from any
<adamt>
bennofs[m]: We made our own (not published yet), and so did other people as well i assume.
<gchristensen>
bennofs[m]: nix-deploy
<clever>
bennofs[m]: there is no real state in such a system
<{^_^}>
[nixpkgs] @copumpkin pushed to no-more-nixpkgs-symlink « Stop requiring the nixpkgs symlink in NixOS channel tarballs »: https://git.io/vhe75
emmanuelrosa has left #nixos [#nixos]
<adamt>
bennofs[m]: Actually, if you ignore the part about creating the system for the target host, the magic of pushing a derivation and activating it can be done in less than 10 lines of bash
<{^_^}>
[nixpkgs] @copumpkin opened pull request #40892 → Stop requiring the nixpkgs symlink in NixOS channel tarballs → https://git.io/vhe7N
<bennofs[m]>
cool! nix-deploy looks great
adamt has quit [Quit: WeeChat 2.0]
atu has joined #nixos
atu has quit [Changing host]
atu has joined #nixos
atu is now known as adamt
toby1851 has quit [Read error: No route to host]
toby1851 has joined #nixos
<muzzy>
So clever, you use one device (like a desktop or laptop) to configure your network including the router and misc servers?
cmacrae has joined #nixos
cmacrae has left #nixos [#nixos]
<clever>
muzzy: currently, it only configures the router (because it was too slow to build itself), and everything else is nixos-rebuild
<clever>
muzzy: but i plan to move more things to nixops when i have time
<clever>
there is an example deployment with 2 netbooks in the same repo, they have a similar problem
<clever>
but the drive in those is also soo small you can barely fit 2 generations of nixos
fragamus has joined #nixos
<clever>
you have to practically strip the OS naked to even deploy a 2nd version
<muzzy>
clever: huh, I'd be afraid of the network dying somehow and being unable to configure the router with nixops
<gchristensen>
muzzy: it is nice to be able to access its console to revert sometimes
<clever>
muzzy: you still have rollback options in the grub menu of the router
<clever>
muzzy: and i know enough CLI wizardry that i can force the network to come online without using the proper services
<clever>
muzzy: ive even done network in the initrd, several times
<muzzy>
clever: oh I see, seems like that would work fine then
<adamt>
muzzy: If you're afraid of nixops, then just see how it works under the hood. Probably easier to just read the nix-deploy src for that though, they probably do exactly the same for updating the remote host.
nschoe has quit [Quit: Program. Terminated.]
<ij>
how does gentoo do things? do you have to build everything? do you have build caches? how are they worse than nix caches?
<adamt>
ij: When I used Gentoo (10+ years ago) you could build everything, but they also had prebuild packages for things like libreoffice
jtojnar has quit [Ping timeout: 245 seconds]
jtojnar_ is now known as jtojnar
<adamt>
ij: Remember that many people use custom build flags and optimizations on Gentoo, so a build cache wouldn't be that useful unless you used the same flags as everybody else
tertle||eltret has joined #nixos
russiancow[m] has joined #nixos
<symphorien>
what are all the roots called {temp:31182:101} in nix-store --gc --print-roots ?
<{^_^}>
[nixpkgs] @xeji pushed commit from @woffs to master « shotcut: 18.03.06 -> 18.05.08 (#40887) »: https://git.io/vhejD
<hoshineko>
i've had it happen in Gentoo when i tried to firejail it, but it worked without it
<hoshineko>
it always happens on NixOs though
<worldofpeace>
Someone said in that thread that they fixed it by uninstalling discord and then removing the configuration files then reinstalling. But that's an entirely different os.
Neo-- has quit [Remote host closed the connection]
<hoshineko>
oh i probably need to add myself to the audio group
<hoshineko>
brb rebooting
hoshineko has quit [Quit: hoshineko]
jasongrossman has joined #nixos
srk has quit [Ping timeout: 265 seconds]
hoshineko has joined #nixos
<hoshineko>
well that didn't do it
bennofs has quit [Ping timeout: 245 seconds]
ericsagnes has quit [Ping timeout: 260 seconds]
brendanzab has quit [Ping timeout: 256 seconds]
sanscoeur has quit [Remote host closed the connection]
brendanzab has joined #nixos
srk has joined #nixos
burton__ has joined #nixos
eqyiel has quit [Ping timeout: 256 seconds]
<hoshineko>
okay apparently there's a new bar (or whatever it's called) in alsamixer called "digital" and that's how i get my mic input now, but the sound quality is terrible
<hoshineko>
but even then discord is detecting no input/output sound devices
srdqty has quit [Quit: WeeChat 1.9.1]
jasongro` has joined #nixos
jasongrossman has quit [Read error: Connection reset by peer]
<hoshineko>
wait,i'm getting the same thing again" i can't connect to voice channel, haha
Ross has quit [Ping timeout: 260 seconds]
sir_guy_carleton has joined #nixos
<hoshineko>
well ok now i connected to voice channel again for no reason
eqyiel has joined #nixos
<hoshineko>
brilliant
toby1851 has quit [Ping timeout: 260 seconds]
goibhniu1 has quit [Ping timeout: 245 seconds]
toby1851 has joined #nixos
Ross has joined #nixos
bennofs has joined #nixos
<manveru>
hmm
<manveru>
i mean, it takes a few seconds here, but voice in discord works, afaict
<hoshineko>
ye i think the problem right now is with alsa
gb has quit [Quit: Page closed]
erasmas has quit [Quit: leaving]
<manveru>
i'm using PA, fwiw
<hoshineko>
micrphone "works" but in a different way, in other distros i'd just use the "Mic" switch https://i.imgur.com/waUkBPE.png
<hoshineko>
that doesnt do anything here, i have to go on the capture tab and there is a "digital" switch there, which seems to be microphone, but the sound quality is terrible, it's mostly static
<hoshineko>
so maybe i have the wrong audio modules
<hoshineko>
in gentoo all i needed was snd_hda_codec_realtek, and i can see it here too with lsmod
<iqubic>
How hard is it to add a new keyboard layout to NixOS? And can I customize that keyboard to chosee what characters go where?
<bhipple[m]>
See `$ nixos-option services.xserver.xkbOptions`. This allows you to add `/etc/X11/xkb/rules` options to your /etc/nixos/configuration.nix.
<bhipple[m]>
I'm not sure about adding a whole layout, but I use it for swapping caps -> ctrl and things like that.
<clever>
xkbOptions = "caps:shiftlock";
<clever>
i made my capslock affect numbers as well
<bhipple[m]>
`xkbOptions = "caps:ctrl_modifier";` is what I have
<iqubic>
clever: I get how that works. What if I want to add an AltGr layer or something, or just switch to dvorak?
<iqubic>
Is that possible?
jperras has joined #nixos
ericsagnes has quit [Ping timeout: 260 seconds]
<clever>
iqubic: i think you need to use the xkbDir option
<clever>
then give it a dir that has xkb config files