<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fxfVj
jasongrossman has quit [Ping timeout: 272 seconds]
<{^_^}>
[nixpkgs] @grahamc pushed commit from @dtzWill to release-18.09 « nix-daemon: only add channels dir to NIX_PATH if exists »: https://git.io/fxfwL
<{^_^}>
[nixpkgs] @grahamc closed pull request #45400 → NIX_PATH: don't prepend $HOME-based value in session variable, set later → https://git.io/fAJeX
thc202 has quit [Ping timeout: 252 seconds]
<{^_^}>
[nixpkgs] @grahamc pushed to master « Revert "Revert "doc: Update section about imperative containers"" »: https://git.io/fxfwn
<{^_^}>
[nixpkgs] @grahamc pushed to release-18.09 « Revert "Revert "doc: Update section about imperative containers"" »: https://git.io/fxfwB
Rusty1 has quit [Quit: Konversation terminated!]
<gchristensen>
Dezgeg: ^
<{^_^}>
[nixpkgs] @grahamc pushed to release-18.09 « docs: format »: https://git.io/fxfwE
jasongrossman has joined #nixos
<{^_^}>
[nixpkgs] @grahamc pushed to master « docs: format »: https://git.io/fxfwa
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
silver has quit [Read error: Connection reset by peer]
[Leary] has joined #nixos
<{^_^}>
[nixpkgs] @nek0 opened pull request #47546 → EmptyEpsilon: fix version numbering → https://git.io/fxfru
sb0 has joined #nixos
Kelppo has joined #nixos
Kelppo has quit [Ping timeout: 252 seconds]
Kelppo has joined #nixos
<ldlework>
gchristensen: makefu so I relogged in and there's still no docker service, docker ps doesn't work, I'm not in the docker group, which doesn't exist
<ldlework>
I have virtualization.docker.enable = true; in my config
<{^_^}>
[nixpkgs] @peterhoeg opened pull request #47551 → snipes: init at 20171208 → https://git.io/fxfPs
camsbury has quit [Ping timeout: 245 seconds]
justbeingglad has joined #nixos
justbeingglad has left #nixos [#nixos]
glowpelt has quit [Quit: Restarting...]
glowpelt has joined #nixos
jasongrossman has quit [Ping timeout: 272 seconds]
<ldlework>
clever: I did indeed nixos-rebuild
Thra11 has joined #nixos
<clever>
ldlework: have any reboots occured?
<ldlework>
No I just logged out
jasongrossman has joined #nixos
<clever>
virtualisation.docker.enable
<clever>
2018-09-29 23:49:24 < ldlework> I have virtualization.docker.enable = true; in my config
<clever>
ldlework: you spelled virtualisation wrong
<ldlework>
nooooooooo
<clever>
the mkRenameModule stuff breaks this error detection
sir_guy_carleton has joined #nixos
<typetetris>
is there a fetchFromNexus in nixpkgs?
<ldlework>
clever: didn't this happen before? lol jeeze.
<clever>
ldlework: yeah, i remember somebody in #nixos having this same issue before
<sir_guy_carleton>
so disabled memtest86 on my machine, and it booted up muke quicker, with 5 sec less on boot. not complaining, but i'm not sure why. any ideas?
<clever>
sir_guy_carleton: how did you disable it?
<sir_guy_carleton>
just with nixos option boot.loader.grub.memtest86.enable = false
<sir_guy_carleton>
i believe that is the default
<sir_guy_carleton>
i enabled because i wanted it there just in case, i guess
<clever>
graphical.target reached after 20.117s in userspace
<clever>
the laptop has luks active, so part of the pause is just it waiting for a password
<sir_guy_carleton>
clever: eh, maybe later; it's not the biggest deal. just seemed odd; i can't think of any other recent boot changes that decrease boot time, oh well
<{^_^}>
[nix] @cleverca22 opened pull request #2459 → add a sublist primop → https://git.io/fxfXc
<Zajcev>
guys, please help, what firewall configuration enable ftp? networking.firewall.allowedTCPPorts = [ 20 21 ] is not working, I can connect but ls command is stucked at [Making data connection...]. When I disable firewall, it's working.
simukis has joined #nixos
<Zajcev>
I think I need something else?
<clever>
Zajcev: ftp opens another connection on a somewhat random port, in a somewhat random direction, for the ls traffic
sir_guy_carleton has quit [Disconnected by services]
<clever>
the direction depends on if you are using active or passive ftp
<Mic92>
Zajcev: you need an iptables helper for connection tracking.
<clever>
and that controls which end you have to open the port on
sir_guy_carleton has joined #nixos
<Mic92>
but is not already included in our iptables?
<clever>
Mic92: i can see the conntrack plugin loaded in my laptop&desktop, neither of which have nat setup
<clever>
07:14am up 565 days 7:29, 1 user, load average: 0.05, 0.05, 0.02
alex`` has joined #nixos
<alex``>
Hi
<clever>
Mic92: those are the highest legit times i can find
<alex``>
What is the value of $XDG_CURRENT_DESKTOP when using Plasma?
<Zajcev>
Mic92: I'll try, thanks guys, I have to run now ... :-)
<Zajcev>
clever:
v0|d has quit [Ping timeout: 252 seconds]
goibhniu has joined #nixos
<Zajcev>
Mic92: clever: update, it's kind of working without any modification yet, but ls command takes ages, minutes ...
<Zajcev>
next question, little bit stupid ... machine I want to ftp is behind nat, is neccessary to have firewall enabled there? I forward only needed ports
<clever>
Zajcev: check with `netstat -anp` to see what connections the ftp client is making
<clever>
or enable a verbose mode in it
<Mic92>
Zajcev: sftp is probably faster, for NAT you will also need the ftp nat helper ip_nat_ftp
<colemickens>
Anyone on 'nixos-unstable' and having issues with flatpak apps?
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
mayhewluke has quit [Ping timeout: 244 seconds]
mayhewluke has joined #nixos
norfumpit has joined #nixos
wpcarro has joined #nixos
<norfumpit>
so how do yall backup your postgres databases
wpcarro has quit [Ping timeout: 252 seconds]
thc202 has joined #nixos
<Mic92>
colemickens: do you have the flatpack module enabled?
goibhniu has quit [Read error: Connection reset by peer]
<Mic92>
norfumpit: there is a postgres backup module, I have not migrated to it yet
JonReed has joined #nixos
init_6 has joined #nixos
<teto>
is there a way to convert an attrset into json while keeping the order ? right now order is lost
<symphorien>
an attrset has no order
<Mic92>
it is mapped to an c++ map
<clever>
in the nix side, an attrset is sorted by the int behind each key
<clever>
and those ints are sorted by when the given string was first used as a key in any set
slack1256 has quit [Ping timeout: 268 seconds]
nschoe has joined #nixos
nschoe has quit [Client Quit]
sigmundv has joined #nixos
<colemickens>
Mic92: yeah, I'd been using the FirefoxNightly flatpak for a while without issue.
<colemickens>
It could be an issue with that flatpak, I'll give another one a whirl.
<colemickens>
worse yet, it looks like it's a known issue with Sway. Even though I swear it was working previously. Might've been before I switched to the 1.0 builds...
<colemickens>
anyway, I've got some things to check :/
wpcarro has joined #nixos
<emily>
colemickens: oh, do you have nix(os) stuff for those?
Ariakenom has joined #nixos
Thra11 has joined #nixos
<colemickens>
Yeah, but it's a bit convoluted. I'm using a second nixpkgs enlistment locally with a PR for meson pulled. I'm then referencing that from my regular nixpkgs enlistment so that I can pull in the right sway package and get the sway wrapper. I've also added an option to the sway module to make the package configurable. I was going to send PRs when Sway actually hit 1.0 and the Meson PR lands.
sir_guy_carleton has quit [Ping timeout: 268 seconds]
wpcarro has quit [Ping timeout: 264 seconds]
<colemickens>
I'm also wondering if the addition of the sway wrapper in the module is what broke flatpaks for me (others don't work either)... I'm going to do some testing.
<emily>
I'd vaguely encourage you to send PRs sooner but I guess the Sway maintainer guy gets mad if you do that <_<
<JonReed>
Which package provides `ghcjs`? I have tried `haskell.packages.ghcjs.ghcWithPackages` and it seems to compile packages with ghcjs, but the environment it results in has no `ghcjs` command.
<colemickens>
emily, hm, as much as I love the bleeding edge, I don't usually send PRs for upgrades to unstable builds. I think the pre-1.0 builds are considered more stable of Sway? But I actually don't know that for a fact.
<colemickens>
I can at least send the module change.
<emily>
I've found the release version of Sway to be kind of unusable :s
<emily>
colemickens: 1.0 doesn't need the caps at all, by the way
<emily>
so all that can be dropped
<colemickens>
:)
* colemickens
feels like he hit the IRC jackpot
<colemickens>
thank you! I can at least send PRs for wlroots and sway and let it sit for others to pull and/or maintainers to consider.
<colemickens>
I'll do it right now.
<emily>
ah, I suggest not for sway
<emily>
the reason I said that about the maintainer is I've seen him actively complain about it getting packaged
<emily>
when prerelease
<colemickens>
Ah okay.
<colemickens>
emily: is the dbus-launch stuff in swayWrapped/swayJoin still needed?
<emily>
I don't know. I don't understand why it uses dbus-launch in the first place. in my opinion that should be the user's decision.
sigmundv has quit [Ping timeout: 244 seconds]
<emily>
you need a logind session for it to not need root/setuid though
<emily>
but presumably NixOS should arrange that okay
<emily>
I think for 1.0, since no caps are needed as long as logind is set up correctly, it'd be best to just remove all the wrapping done over upstream.
goibhniu has joined #nixos
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
<norfumpit>
Mic92: do you mean wal-g?
sir_guy_carleton has quit [Ping timeout: 268 seconds]
jasongrossman has quit [Ping timeout: 240 seconds]
<norfumpit>
i was thinking of just packaging that^
<norfumpit>
as i understand it pg needs to be shutdown to reliably take snapshots of its data dir on fs level
<Mic92>
I remember it had an option to do a snapshot that can be dumped
sir_guy_carleton has joined #nixos
jasongrossman has quit [Ping timeout: 252 seconds]
jasongrossman has joined #nixos
<JonReed>
,locate ghcjs
<{^_^}>
Found in packages: haskellPackages.ghcjs-ajax.doc, haskellPackages.ghcjs-base-stub, haskellPackages.ghcjs-codemirror, haskellPackages.ghcjs-websockets.doc
<manveru>
norfumpit: you should use pg_dump for backups
<manveru>
or pg_dumpall, depending on your usecase :)
<manveru>
that works fine while the DB is up too
sir_guy_carleton has quit [Ping timeout: 252 seconds]
<symphorien>
Do you have the message "dumping a large path, this may run out of memory" ?
<symphorien>
Ah this is the subject of the stack overflow thread
<manveru>
Ashy: usually that means you have a `src` set that includes the whole directory, including some huge things like binaries, logs, caches, etc...
<Ashy>
manveru: ah yeap, that's true i do
<manveru>
check `ncdu` to find those, and either use `filterSource` to remove them from `src`, or delete them if possible :)
<Ashy>
oh wow just reading the manual on filterSource, even the git dir is likely being pulled in
orivej has joined #nixos
timon_ has joined #nixos
phreedom_ has joined #nixos
phreedom has quit [Ping timeout: 256 seconds]
iyzsong has joined #nixos
orivej has quit [Ping timeout: 244 seconds]
[Leary] has joined #nixos
Lears has quit [Read error: No route to host]
mayhewluke has quit [Ping timeout: 244 seconds]
mayhewluke has joined #nixos
kyren has quit [Read error: Connection reset by peer]
owickstrom has joined #nixos
<{^_^}>
[nixpkgs] @dtzWill opened pull request #47554 → light: 1.1.2 -> 1.2, use new udev support instead of setuid wrapper. → https://git.io/fxfHK
jtojnar has quit [Ping timeout: 244 seconds]
sb0 has joined #nixos
kreetx has joined #nixos
<kreetx>
if I use runInteractiveCommand from within my haskell app it says that /bin/sh is not found. This makes sense that it is so -- given nixos. What would be a good way to fix this?
<kreetx>
should I pass in the path to shell in the systemd configuration?
<kreetx>
or should I make an alias for it somehow
b has joined #nixos
<symphorien>
NixOS has /bin/sh
<symphorien>
this sounds strange
<kreetx>
the actuall error is this: "app: /bin/sh: runInteractiveCommand: runInteractiveProcess: exec: does not exist (No such file or directory)"
<kreetx>
and this is from a docker image created from nix
<kreetx>
is it the exec that is missing, I'm not really sure
<symphorien>
hum. this error message is obscure. can you strace -f -e trace=process to find what exactly fails to execute ?
<kreetx>
symphorien: I'll try!
orivej has joined #nixos
<srhb>
kreetx: /bin/sh might indeed not exist in your docker image unless you added it to contents.
<JonReed>
kreetx: I'm not sure about shell, but for any extermal dependencies normally you would wrap a haskell executable with `wrapProgram $yourHaskellExecutablePath --prefix PATH : ${makeBinPath buildInputs}`, where `buildInputs` are non-haskell dependencies.
<kreetx>
is therea a way to find a nix package by the binary name?
<Unode>
manveru: :thumbsup:
sir_guy_carleton has quit [Ping timeout: 272 seconds]
<teto>
kreetx: you can install nix-index / nix-locate
<manveru>
kreetx: nix-index :)
<manveru>
,locate firefox
<{^_^}>
Found in packages: msf, warmux, firefox-esr, firefox-unwrapped, firefox-esr-60-unwrapped, python27Packages.selenium, python36Packages.selenium, firefoxPackages.tor-browser
<manveru>
or this bot here
<kreetx>
,locate shasum
jtojnar has joined #nixos
<{^_^}>
Found in packages: perl, meteor
<kreetx>
ok :)
<manveru>
,locate sha256sum
<{^_^}>
Found in packages: busybox, coreutils
<kreetx>
perl it is :p
<kreetx>
wait, which one I should use?
<manveru>
depends on what hash you want
<manveru>
but coreutils has sha1 to sha512
<Unode>
ah having it in the bot is even better!
<manveru>
not sure which nixpkgs the bot queries though
<Unode>
(is there anything the bot can't do these days? :)
<Unode>
nixpkgs master I suppose
<kreetx>
and: are there two bots?
<manveru>
also there's the command-not-found command, which i like
<Unode>
manveru: by the way, in your endeavours with nix-index, you wouldn't happen to have come across any tricks to lower the memory requirement? On my machine 4GB are barely enough. If I have a browser open it will start freezing/swapping
<Unode>
,locate aclocal
<{^_^}>
Couldn't find in any packages
<Unode>
interesting
<manveru>
no, sorry, i only use it on my machine with 32GB :P
<manveru>
but command-not-found uses the db built by hydra i think
<manveru>
so should use next to no memory
<manveru>
,locate command-not-found
jb55 has quit [Quit: WeeChat 2.1]
<{^_^}>
Found in packages: oh-my-zsh, zsh-prezto
<infinisil>
The bot doesn't use a specific nixpkgs version, it's just the one I updated nix-index with last
<infinisil>
Automatic updates to nixos-unstable or so would be nice
<rawtaz>
,locate restic
<{^_^}>
Found in packages: restic.bin
inquisitiv3 has quit [Ping timeout: 252 seconds]
<Unode>
manveru: seems like the latest nix-index doesn't build here. Oh well...
jb55 has joined #nixos
<Unode>
oh nevermind, the hash is outdated
sir_guy_carleton has joined #nixos
iyzsong has quit [Ping timeout: 252 seconds]
<jb55>
woot running on xorg 1.20 now. patch incoming
avn has quit [Ping timeout: 272 seconds]
mkoenig has joined #nixos
sir_guy_carleton has quit [Ping timeout: 252 seconds]
<Unode>
curiosity, has anyone ever tried to use nix (the language) for anything else other than nix the package manager?
<Myrl-saki>
Unode: A calculator?
<Myrl-saki>
Unode: I use it to fetch source code too, if that counts.
<Myrl-saki>
cd $(mktemp -d)
wpcarro has joined #nixos
<Myrl-saki>
tar -xf $(nix-build '<nixpkgs>' -A hello.src --no-out-link)
sir_guy_carleton has joined #nixos
<manveru>
Unode: i use it to build kubernetes configs for example
<Myrl-saki>
I also use it to manage my shell scripts.
<manveru>
also all my desktop via home-manager
<manveru>
but that falls under package manager... kinda
<Unode>
yeah, I was wondering more of standalone things. Like say, could the 'nix' command actually be implemented in nix?
<{^_^}>
[nixpkgs] @knedlsepp opened pull request #47558 → pythonPackages.py-cpuinfo: Fix darwin build → https://git.io/fxfbG
astrofog has quit [Remote host closed the connection]
wpcarro has quit [Ping timeout: 244 seconds]
sir_guy_carleton has quit [Ping timeout: 268 seconds]
<infinisil>
Unode: Nope
<infinisil>
It's a purely functional language, and the only thing it can do is build derivations
chaker has quit [Quit: WeeChat 1.4]
<infinisil>
No I/O
<infinisil>
(Unless you implement some runtime system in another language that interprets nix in some way..)
chaker has joined #nixos
<teto>
any advice on a GUI process manager ? I am tired of looking at ps manpage :'(
<infinisil>
teto: htop?
<teto>
infinisil: was thinking more like gnome-system-monitor, I want to see the environment of a process
<infinisil>
teto: press 'e' in htop to see the env :)
<infinisil>
Yeah not what you're looking for, but htop can really do a lot
<Unode>
atop can do what htop can't
<teto>
infinisil: neat ! Do you know by any chance if it's possible to fold process trees ?
<infinisil>
Heh, don't think htop can do that
<tilpner>
teto - "+" and "-"
<infinisil>
Oh yeah, just found out too
<infinisil>
press 'h' for the help page with available commands
<tilpner>
Also "s" for strace and "l" for open files
<teto>
gnome-systemmonitor fails in strange way. I clik on "ressources" it switches to right window but immediately goes back to the previous window
owickstrom has joined #nixos
<chaker>
Hey, I'm trying to build a package remotely using '--builders' flags. My local nix-daemon was able to connect to the remote one. It sent all deps necessary to build the package and it was built successfully. But when it was copying back to my local machine, I got a "error: cannot add path 'blablabla' because it lacks a hash".
<chaker>
Root does have ssh access to the remote env (hence it was able to sent the deps). And my user is trusted in the nix-daemon.
<teto>
everytime I use htop I get frustrated at how long simple things take but your tips are helpful ty infinisil
<infinisil>
teto: What simple thing takes long?
wpcarro has joined #nixos
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
<manveru>
chaker: you'll need to add a signing key to your remote machine, i think
<manveru>
chaker: also, how did you copy it back?
<manveru>
using `nix copy`?
<teto>
it's just as I use it only from time to time, I forget the mappings so I would rather click somewhere :)
<manveru>
just use it a year or ten... :)
<manveru>
and you can always type `?` to get help too
<manveru>
or `h`, or `F1`
<kreetx>
srhb, JonReed, avn: thanks for the hints earlier! The fix was to add packages like 'bash', 'coreutils' and 'gnutar' to the docker image's 'contents' attribute -- so sh, tar, sha256sum, etc can be used. Also, when diagnosing the problem then apparently docker command 'docker logs <container>' shows only the stderr part of what my app complains, so it's important to print to *that* instead of stdout,
<kreetx>
otherwise the actual errors go un-noticed.
<manveru>
doesn't `docker logs` show stdout if you run docker without `-i`?
<manveru>
(also with `-d` i guess)
camsbury has joined #nixos
<chaker>
manveru: No, without 'nix copy'. nix-build was trying to copying the result of the remote build locally. But it failed with that error.
wpcarro has quit [Read error: Connection reset by peer]
wpcarro has joined #nixos
wpcarro has quit [Client Quit]
<chaker>
Hmm, nix copy fail with "error: hash '' has wrong length for hash type 'sha256'"
mayhewluke has quit [Ping timeout: 268 seconds]
mayhewluke has joined #nixos
goibhniu has joined #nixos
<alex``>
How use Plasma here?
kreetx has quit [Ping timeout: 252 seconds]
<rawtaz>
alex``: "here"?
goibhniu has quit [Ping timeout: 252 seconds]
owickstrom has quit [Ping timeout: 252 seconds]
MrAngel has joined #nixos
<MrAngel>
I've followed the dual boot instructions and applied the resulting config but I don't get a windows option on my GRUB menu. Is there another step I've missed/
<rawtaz>
MrAngel: what instructions did you follow?
<rawtaz>
heh, the autoprober thing looks simpler, tried it? :)
<MrAngel>
Yeah, "useOSProber" isn't recognised as a legal field
<rawtaz>
hey symphorien, our eternal helper hero
<rawtaz>
MrAngel: please pastebin your config :)
<MrAngel>
I'm guessing this means I need to update but I really don't want to try and read the procedure for updating through links :/
<MrAngel>
It's literally what's shown in the wiki article
<symphorien>
what do you mean by "update"
<symphorien>
?
<rawtaz>
MrAngel: yes, but that doesnt let us determine if you put it the right place etc
<MrAngel>
Fair. I'll go pastebin the thing now, brb because I'll have to reboot to nix again
<rawtaz>
thank you
kreetx has joined #nixos
<kreetx>
manveru: 'docker logs' appears only to show stderr when the executable is started via systemd
<kreetx>
which I think the Cmd = "..." does
<kreetx>
otherwise yes, docker logs would print stdout too (I think)
rfold has joined #nixos
MrAngel has quit [Ping timeout: 256 seconds]
<symphorien>
kreetx: systemd has options to decide what happens with stdout and stderr, maybe it can help
MrAngel has joined #nixos
<MrAngel>
Is this thing on? Been a very long time since I touched irssi
<rfold>
Hi, does nix-build spawn a new process which does the actual work? I'm trying to use a Nix expression in /proc/self/fd/... with a file opened with O_TMPFILE.
<rawtaz>
MrAngel: sure it is
<MrAngel>
Cool, now just let me figure how to use gpm to get things onto pastebin
<rawtaz>
would be great if options had a "since version" on them.
johanot has quit [Quit: WeeChat 2.0]
<rawtaz>
MrAngel: so what version are you on?
<samueldr>
alex``: until you log out and back in, it wouldn't work right, but you could `export QT_QPA_PLATFORMTHEME="qt5ct"` in a shell and then start dolphin to confirm without logging out and in
<alex``>
samueldr: I have fixed by adding services.xserver.destopManager.plasma5.enable to true, but it change the look of SDDM alongside
<rawtaz>
MrAngel: whatever you do, be sure to ride this out, cuz we want to make it work :)
<samueldr>
(though if it's a REALLY fresh system, the chances of actively breaking things is much lower)
<rawtaz>
MrAngel: i upgraded my nixos the other week, it was just a matter of upgrading the channels and rebuilding :)
owickstrom has quit [Ping timeout: 245 seconds]
<MrAngel>
Aight, thanks folks, I'll try upgrading the version and see if that makse probeOSVersion love me
<samueldr>
alex``: that's because plasma5.enable installs a bunch of additional stuff, and also changes some defaults in the configuration, so yeah, it's likely to work too
graphene has quit [Remote host closed the connection]
<samueldr>
(there are some assets in the cache that were compressed in a wrong manner, only a few of them, but the previous nix-index revisions did not continue on errors)
<samueldr>
(so you'll still have those errors, but it will complete the indexing; with maybe a couple paths missing)
<ashkitten>
ah
<ashkitten>
okay, thanks
<MrAngel>
OK, so I upgraded my channels with nix-channel --update and then rebuilt with nixos-rebuild switch
<MrAngel>
Should that be sufficient?
<samueldr>
it could very well be
<rawtaz>
i think so yeah
<rawtaz>
what does nixos-version say now?
<MrAngel>
16.09.xxx -_-
<samueldr>
ah, right
* samueldr
should have read better
<samueldr>
nix-channel --list
<samueldr>
(maybe with a dash of sudo)
<MrAngel>
I have a single channel nixos-16.09
<samueldr>
you should have the 16.09 channel listed, thus you updated from an older 16.09 revision to a more recent one
<MrAngel>
Ah
<MrAngel>
That makes sense
<MrAngel>
Is there a generic unversioned channel I can migrate to?
<samueldr>
there is, nixos-unstable
<rawtaz>
why not go for the latest release channel?
<MrAngel>
Latest release channel sounds good to me
<rawtaz>
yeah. 18.09 will soon be, but its not released yet afaik
<samueldr>
18.03 is the current stable, soon to be 18.09
<MrAngel>
OK I've added it
<MrAngel>
Do I need to designate a default channel or something?
<samueldr>
it uses the channel with the name "nixos" in root's channels
<rawtaz>
MrAngel: you are running all these commands as root or with sudo, right?
kreetx has quit [Ping timeout: 252 seconds]
<MrAngel>
I'm even running irssi as root :O
<jeaye>
MrAngel: nixos-in-place sticks with an older version because newer versions broke the process and 16.04 is proven to work. Upgrading is very simple, once it's installed, and NixOS won't care which version you were on to start with.
<rawtaz>
hah, shouldnt :P
<MrAngel>
Fair enough, makes sense
<samueldr>
jeaye: updating from such an older version may break soon, nix 2.x features are appearing in master
<jeaye>
With that said, it could to an auto upgrade, after installing but before rebooting, to bring you to the latest state version.
<jeaye>
MrAngel: In which environment are you using nixos-in-place?
<MrAngel>
I don't mind, I think it probably works unsurprisingly in 99% of cases
<MrAngel>
Most recent Ubuntu release
<jeaye>
Hosted by whom?
<MrAngel>
It's my personal desktop
<jeaye>
Curious. The most common use case is for turning a hosted server from Ubuntu/Debian into NixOS, not a personal machine. Why not just go through the proper NixOS install process?
* jeaye
is coming in late, so sorry if you already said that.
<MrAngel>
Because when I tried to follow the instructions from the LiveCD they choked somewhere around mounting /dev/my-dvice/nixos
<MrAngel>
But since I had the Ubuntu environment already and didn't really care if it got nuked, I figured I'd just install in-place and see how it panned out
<rawtaz>
nice try :)
<MrAngel>
It _almost_ worked :P
<MrAngel>
So I edited ~/.nix-channels to change the channel labelled as nixos but didn't get a substantial change - do I need to run nix-channels --update or reboot as well?
<rawtaz>
MrAngel: just use the command i gave you earlier to change it to 18.03
<rawtaz>
as root
Thra11 has joined #nixos
<MrAngel>
Sorry rawtaz, which command was that? I think I missed it (resolution on my screen in console mode is _absurd_ :/)
<rawtaz>
that just shows /tmp/nixos-rebuild.B4vN7W/nix
<MrAngel>
oh dear
<MrAngel>
It throws a bunch of syntax errors reading from /nix/store
<MrAngel>
syntax error, unexpected $undefined, expecting IND_STR or DOLAR_CURLY or IND_STRING_CLOSE at a whole bunch of locations
<rawtaz>
hm
<rawtaz>
ya know, im thinking that while you can probably figure that out, why not just install nixos from scratch and be done with it, then you got a completely fresh install and can probably fix the grub stuff out of the box using the probe
<rawtaz>
if you want you can show the output and we'll figure it out probably, just thinking it might be easier to get the fresh one instead
<MrAngel>
I think you're probably right and I'd like to use your time respectfully. I'm hugely grateful for your help but this does indeed feel like a dead end
agander has joined #nixos
<MrAngel>
I'll go reinstall from the livecd and see how OSProbe shakes out
<MrAngel>
And I can finally stop looking at IRSSI <3
<MrAngel>
peaced
MrAngel has quit [Remote host closed the connection]
<rawtaz>
oh no he left
<rawtaz>
that wasnt my intention :P
owickstrom has quit [Ping timeout: 245 seconds]
jperras has joined #nixos
sir_guy_carleton has joined #nixos
<yurb>
Hi everyone. A few days ago I was asking how to build SuperCollider with alsa support, and with help I've managed to do it. Now I think it makes sense to work towards a contribution enabling alsa on linux by default. Is that a good starting point? https://github.com/yurkobb/nixpkgs/commit/86e8a195f0587d2a1f1e1b01a2c50885dadfc35b
<yurb>
*with the help of people here:)
<infinisil>
yurb: Looks good to me :)
<yurb>
thanks infinisil (and srhb for the initial guidance). I'm wondering - if alsa is linux-only, maybe I should specify it as linux-only rather than non-darwin?
wpcarro has joined #nixos
<wpcarro>
I'm installing NixOS onto my MBP. I've found some indispensable articles outlining the process, but I currently have a blindspot wrt partitioning using DiskUtil. Does it matter what format I use for the NixOS partition?
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fxJeo
tusj has quit [Remote host closed the connection]
graphene has quit [Remote host closed the connection]
<sir_guy_carleton>
wpcarro: are you dual booting with windows?
graphene has joined #nixos
jperras has quit [Quit: WeeChat 2.2]
<wpcarro>
sir_guy_carleton: no dual booting with OSX
<wpcarro>
eventually going to erase OSX partition
jonge has joined #nixos
endformationage has quit [Ping timeout: 252 seconds]
<sir_guy_carleton>
wpcarro: okay, i don't have any expience with macos and nixos
<sir_guy_carleton>
sorry
<jonge>
hey there. i think there was some kind of command from which the spec.json file that contains pinned nix pkgs with an sha256 hash can be generated, right?>
<wpcarro>
no worries. I'm going to try ExFAT and see what happens!
<wpcarro>
Wish me luck...
<{^_^}>
Good luck!
<sir_guy_carleton>
bonne chance!
<sir_guy_carleton>
when i installed nixos alongside windows 10, i installed it with a boot parition in fat and a root parition in ext4
<jonge>
lassulus: interesting, so nix-prefetch-git emits json stuff, but nix-prefetch-url does not, is that right?
<Unode>
when running inside nix-shell, shouldn't including a package be sufficient for a binary to find a lib provided by the package? Trying to run something compiled manually against X11. Compilation works in the same environment ldd reports libX11.so.6 => not found
<Unode>
'Compilation works *but in the same environment' ...
<Ralith>
Unode: that's enough for a *compiler* to find the lib; for a precompiled binary, you need to use LD_LIBRARY_PATH or patchelf
Xiro` has joined #nixos
<Unode>
Ralith: 'precompiled'? If I just compiled the binary using make, is it still a 'precompiled' binary?
<Ralith>
not if you built it in the nix-shell environment using a supported compiler, no
<lassulus>
jonge: Yeah, seems like the tools were written by different authors ¯\_(ツ)_/¯
<jonge>
lassulus: hehe. thank you!
<Unode>
I mean, I literally do 'nix-shell -p x11 ; make ; ldd ./binary' and I see the libX11.so.6 not found error
Izorkin has joined #nixos
<Unode>
the 'make' part inside the shell, not after
wpcarro has quit []
<alex``>
samueldr: Enabling Qt does not work for me
<Unode>
http://dpaste.com/36Z4TAY <- confused... The aosd.so error is expected but I don't understand the X11 one.
<srhb>
Anyone know why ofborg runs into this error, but local builds are fine (with the usual sandboxing restrictions on.) https://logs.nix.ci/?key=nixos/nixpkgs.47448&attempt_id=94073d0c-591a-485a-92a2-3e49f29084e0 -- is ofborg even more restricty?
<lassulus>
shreyansh_k: there are no goPackages since 16.09
patrl has quit [Ping timeout: 250 seconds]
<lassulus>
"goPackages was replaced with separated Go applications in appropriate nixpkgs categories. Each Go package uses its own dependency set. There's also a new go2nix tool introduced to generate a Go package definition from its Go source automatically"
georges-duperon has quit [Ping timeout: 252 seconds]
<shreyansh_k>
lassulus: Doesn't seem to support go modules yet? correct?
<lassulus>
go2nix? I'm not sure, depends on what you want to do. I'm not sure whats the difference between a package and a module/
<shreyansh_k>
lassulus: Recently, go team enabled "mod" based on the vgo proposal. they have gotten rid of GOPATH
<shreyansh_k>
lassulus: Okay, I was able to get go2nix running. Now I get the error: "error: cannot auto-call a function that has an argument without a default value ('stdenv')". How do I install from it?
<shreyansh_k>
I get this error when invoking nix-shell
<lassulus>
you could try: nix-shell -p '(with import <nixpkgs> {}; callPackage ./my-file.nix {})'
agander has quit [Quit: Leaving]
niksnut_ is now known as niksnut
Boobuigi has joined #nixos
Boobuigi has left #nixos [#nixos]
georges-duperon has joined #nixos
<{^_^}>
[nixpkgs] @xeji opened pull request #47564 → linux kernel: increase build timeout from 2 to 4 hrs → https://git.io/fxJkw
<alex``>
Is nix-shell deprecated for `nix run`?
<shreyansh_k>
lassulus: That worked! I'm able to build it. Now, how do I install it with nix-env?
<lassulus>
shreyansh_k: good, question, it's been a while since I last used nix-env
jb55 has quit [Quit: WeeChat 2.2]
<andi->
Anyone ran into issues with `efibootmgr` regarding "No space left on device" when trying to add an EFI boot entry? The Machine only has default values thus I think it isn't actually a space issue with the amount of entries..
<samueldr>
andi-: agh, memory fails me
<samueldr>
but
<samueldr>
I seem to recall other users hitting this recently
<samueldr>
I think one of the way that was worked around was to install as removable
<samueldr>
(though that's a grub thing only)
<andi->
I found some references to clearning the CMOS settings... Since I do not treat my machines as pets I'll do that...
<samueldr>
I think the actual error message is a red herring, and it could be more related to a read-only guard on the efivar fs, but haven't been able to confirm
<samueldr>
andi-: it'd be interesting to see if it fixes
<samueldr>
it may also be that different unrelated issues end up showing that error message :(
<lassulus>
shreyansh_k: nix-env -i $(nix-build -E 'with import <nixpkgs> {}; callPackage ./default.nix {}') seems to do the trick, but it's a bit hacky
johanot has quit [Quit: WeeChat 2.0]
<lassulus>
There should be a better way, but i'm not sure right now :D
<infinisil>
I once thought it needed to return an attrset, but a single derivation works too apparentyl
catern has quit [Excess Flood]
nDuff has quit [Ping timeout: 252 seconds]
<bigvalen>
When you run 'switch-to-configuration boot', how does it work out where to put the boot loader ? For some reason, it's ignoring my /etc/nixos/configuration.nix and /etc/nixos/hardware.nix, and putting it on a USB device that isn't connected anymore.
<apeyroux>
nothing special. There are French, Parisians in the room?
<gchristensen>
there are
<apeyroux>
gchristensen: I saw that you were in Paris (twitter) a while ago! I would have liked to see you but I could not ... Also my english is really too bad! :)
<tpanum>
Mic92: Do you plan to update your Alacritty fork to v0.2 so we can get scrollback? :-)
gerschtli has joined #nixos
<gchristensen>
apeyroux: my French is probably much much worse :)
<gchristensen>
also I'll be back in Paris in October/November
<gchristensen>
apeyroux: #nixos-fr too
<Mic92>
tpanum: it is in staging since some time
Anton-Latukha has quit [Ping timeout: 252 seconds]
<yurb>
Is there a way to rebuild a package using sandboxing just once (without changing any user or global configuration?) I want to test my pull request.
<Mic92>
due some changes in our rust infrastructure the fork becomes unnessary
<Mic92>
yurb: if you make your user a trusted user you can set --option sandbox true
<Mic92>
or just --sandbox true
<Mic92>
*trusted nix user
<yurb>
Mic92: I think I'm using a single-user configuration (I've installed nix on fedora)
<yurb>
so this should work I guess
simukis has quit [Ping timeout: 268 seconds]
<Mic92>
yurb: no, only if you have nix-daemon, you can use the sandbox
<Mic92>
you can also install that on fedora
<andi->
samueldr: so turns out even resetting to factory defaults, power draining, removing batteries, pressing all the buttons and trying to update the BIOS didn't help.. Fun part is that the BIOS update is 16M but the BIOS chip is just 8MB in size.. and ofc it complains about that m(
redj has joined #nixos
<yurb>
Mic92: Oh I see, thanks. I'm curious, if I submit the pull request without testing in sandbox locally (as I'd rather skip switching to multi-user for now with nix-daemon), would it be considered?
<emily>
"The name of the song is called 'Haddock's Eyes'." "Oh, that's the name of the song, is it?" Alice asked, trying to feel interested. "No, you don't understand," the Knight said, looking a little vexed. "That's what the name is called. The name really is 'The Aged Aged Man'."
<andi->
samueldr: I found the solution in the NIxOS issue tracker... It is old/obsolete/stale `dump-*` files in the efivars
<samueldr>
it is really?
<andi->
yes..
<samueldr>
now that you say that, it rings a bell, but I hadn't seen it for nixos, only other distros
<samueldr>
though, it's a drag that clearing defaults on the bios doesn't fix that
<andi->
I just went to bed. Googled one more time. Saw te NixOS hit.. and now it works..
<andi->
yeah
<ma9e>
thanks tilpner :)
<{^_^}>
[nixpkgs] @Mic92 merged pull request #47407 → terraform: update all providers and move nixos provider under terraform.withPlugins → https://git.io/fAhIQ
<{^_^}>
[nixpkgs] @xeji pushed commit from @r-ryantm to master « gcalcli: 3.4.0 -> 4.0.0a4 (#47068) »: https://git.io/fxJYM
<wpcarro>
I've tried resizing my partition table multiple times to accomodate space, but I think I'm missing something key here
<wpcarro>
I'm booting from a Live USB. I'm unsure if the space issue is coming from my USB or my harddrive
justanotheruser has quit [Quit: WeeChat 2.2]
justanotheruser has joined #nixos
<Diagon>
I just looked at the nix-2.1.2-x86_64-linux/install script, and running a single user install with "/nix" modified to some local directory would be easy. What would I have to rebuild to make nix work with a user writeable directory?
<Diagon>
(user creatable & writeable directory - eg in the user's home directory)
<wpcarro>
Does the /nix/store on the live usb live on the USB device? That might be my problem
<wpcarro>
I have 3.6GB of stuff on a 4GB USB
<wpcarro>
Perhaps I need to use a large USB stick..?
<wpcarro>
I don't see any mention of space requirements on the manual about USBs though, so I might be wasting time with that theory.
__monty__ has quit [Quit: leaving]
wennefer0 has joined #nixos
wennefer0 has quit [Client Quit]
lostman has joined #nixos
[Leary] has quit [Ping timeout: 272 seconds]
<lostman>
I'm trying to write a derivation for a custom LXC container. There is `(import <nixpkgs/nixos/release.nix> {}).containerTarball` but how can I customize it? I want to setup users, packages, ssh keys, etc, like a normal nixos config
<samueldr>
it may have been the issue andi- just faced
<samueldr>
(but wpcarro just left)
avn has joined #nixos
<samueldr>
,tell wpcarro hi, if you haven't figured out a solution to "no space left on device" for nixos-install, ping me back; (I may miss you joining back here)
<Diagon>
Does nix use a chroot build environment? Guix apparently does, and if so that would be a fundamental obstacle to a userspace replacement of linuxbrew.
graphene has quit [Remote host closed the connection]
<__red__>
You asked me to do something a certain way, but it isn't going to work because unstream hard-coded the compiler, ignoring the environment vars
graphene has joined #nixos
<{^_^}>
[nixpkgs] @NeQuissimus opened pull request #47570 → linux: Add hardened test kernel → https://git.io/fxJs7