sphalerite changed the topic of #nixos to: NixOS stable: 19.03 \o/ https://discourse.nixos.org/t/nixos-19-03-release/2652 || https://nixos.org || Latest NixOS: https://nixos.org/nixos/download.html || Latest Nix: https://nixos.org/nix/download.html || Logs: https://logs.nix.samueldr.com/nixos/ || #nixos-dev, #nix-darwin, #nixos-aarch64, #nixos-chat, #nixcon ... nixcon videos: https://tinyurl.com/nixcon2018
<fresheyeball> if I rev down to my old hash of nixpkgs it works fine
<fresheyeball> but with the new hash of master it doesn't
<clever> fresheyeball: bisect time!
<fresheyeball> clever: do you know how postgesql.conf gets setup in nix?
<fresheyeball> I have never had to worry about it
<clever> fresheyeball: services.posgresql.enable = true;
<fresheyeball> clever: I am just using the package in a nix-shell
<clever> fresheyeball: then postgresql wont be running properly
<fresheyeball> why?
<{^_^}> [nixpkgs] @alyssais opened pull request #64270 → python3Packages.django: fix CVE-2019-12781 → https://git.io/fj6G9
<clever> only the entry under services.postgresql can properly start it on nixos
<fresheyeball> clever: so I have done this for few years now without issue
<fresheyeball> where an integration test gets a free port
<clever> then a default must have changed somewhere
<clever> bisect nixpkgs to find out where
<fresheyeball> and starts postgres on that port
fionnan has joined #nixos
mkoenig has quit [Ping timeout: 245 seconds]
bakakuna has quit [Ping timeout: 248 seconds]
<fresheyeball> clever: sorry its been years since I've used bisect
<fresheyeball> I run git bisect start and it tells me I am alrady on master
<fresheyeball> if I have the hash of a good commit, can't I bisect between my current master and it?
<{^_^}> [nixpkgs] @NeQuissimus pushed to master « docker: 18.09.6 -> 18.09.7 »: https://git.io/fj6Gp
<{^_^}> [nixpkgs] @NeQuissimus pushed to release-19.03 « docker: 18.09.6 -> 18.09.7 »: https://git.io/fj6Gh
<clever> fresheyeball: checkout the good rev, and run `git bisect good`, then checkout the bad rev, and run `git bisect bad`
<clever> fresheyeball: then repeat testing and running good/bad after each test
silver has quit [Quit: rakede]
dsx has quit [Quit: dsx]
dsx has joined #nixos
mkoenig has joined #nixos
dsx has quit [Client Quit]
dsx has joined #nixos
dsx has quit [Client Quit]
dsx has joined #nixos
mexisme_ has quit [Ping timeout: 248 seconds]
ericsagnes has quit [Ping timeout: 252 seconds]
ericsagnes has joined #nixos
<fresheyeball> clever: on it
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fj6ZT
<{^_^}> [nixpkgs] @alyssais opened pull request #64271 → pari: 2.11.1 -> 2.11.2 → https://git.io/fj6Zk
joehh has joined #nixos
jluttine has quit [Ping timeout: 245 seconds]
<{^_^}> [nixpkgs] @alyssais opened pull request #64272 → powerdns: 4.1.9 -> 4.1.10 (CVE-2019-10162, CVE-2019-10163) → https://git.io/fj6Zm
<fresheyeball> clever: how do I abort a bisect?
tmaekawa has joined #nixos
<clever> fresheyeball: git bisect --reset
fusion809_ has joined #nixos
selfsymmetric-mu has joined #nixos
fusion809 has quit [Ping timeout: 252 seconds]
pareidolia has quit [Ping timeout: 245 seconds]
<{^_^}> [nixpkgs] @aanderse merged pull request #62175 → wordpress: create module to replace the httpd subservice → https://git.io/fjRjT
<{^_^}> [nixpkgs] @aanderse pushed 4 commits to master: https://git.io/fj6Zl
pareidolia has joined #nixos
vmandela has joined #nixos
<vmandela> samueldr, ping
clacke_movim has joined #nixos
amakthel has joined #nixos
<{^_^}> Channel nixos-19.03 advanced to https://github.com/NixOS/nixpkgs/commit/8edf24a379e (from 12 hours ago, history: https://channels.nix.gsc.io/nixos-19.03)
<fresheyeball> clever: this is not working for me
wildtrees has quit [Quit: Leaving]
thc202 has quit [Ping timeout: 252 seconds]
kyren has quit [Ping timeout: 258 seconds]
Galaxies has joined #nixos
Galaxies has quit [Remote host closed the connection]
psy3497 has joined #nixos
<clever> fresheyeball: how is it not working?
<fresheyeball> clever: I am just too tired maybe
<fresheyeball> but the flow is unfamiliar and it stopped autoprogressing
tmaekawa has quit [Quit: tmaekawa]
ddellacosta has joined #nixos
mexisme_ has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace opened pull request #64273 → pantheon.switchboard-plug-pantheon-shell: Fix setting lightdm background → https://git.io/fj6nJ
drakonis_ has joined #nixos
<{^_^}> Channel nixpkgs-19.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/a5b451165a2 (from 80 minutes ago, history: https://channels.nix.gsc.io/nixpkgs-19.03-darwin)
mexisme_ has quit [Ping timeout: 248 seconds]
<{^_^}> [nixpkgs] @aanderse opened pull request #64274 → nixos/limesurvey: module fixes & cleanup → https://git.io/fj6nq
<{^_^}> [nixpkgs] @jonringer opened pull request #64275 → Keybase → https://git.io/fj6nm
Drakonis has quit [Ping timeout: 252 seconds]
shandogs has joined #nixos
stepcut has quit [Remote host closed the connection]
cjpbirkbeck has quit [Quit: Quitting now.]
baconicsynergy has quit [Remote host closed the connection]
ym555_ has quit [Quit: leaving...]
mexisme_ has joined #nixos
gyroninja___ has quit [Ping timeout: 272 seconds]
gyroninja___ has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/c0a32366cbe (from 73 minutes ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
Miyu-chan has joined #nixos
zacts has quit [Quit: WeeChat 2.4]
Supersonic has quit [Ping timeout: 276 seconds]
yuken has joined #nixos
<yuken> I may be ready to try NixOS again after getting a handle on functional languages, maybe.
<gchristensen> heading to bed, but woohoo!
Supersonic has joined #nixos
Supersonic has quit [Ping timeout: 252 seconds]
alp has quit [Ping timeout: 252 seconds]
<{^_^}> Channel nixos-19.03-small advanced to https://github.com/NixOS/nixpkgs/commit/a5b451165a2 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-19.03-small)
kvda has joined #nixos
Supersonic has joined #nixos
jluttine has joined #nixos
xcthulhu has joined #nixos
day|flip has joined #nixos
stites has quit [Ping timeout: 260 seconds]
<day|flip> just wondering. is ther a faster way to make fb0 used nouveaufb. im using modesetting for drivers
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
IRCsum has joined #nixos
clacke_movim has left #nixos [#nixos]
IRCsome has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @thoughtpolice opened pull request #64276 → mimalloc: init at 1.0pre104_1125271 → https://git.io/fj6ny
IRCsum has quit [Remote host closed the connection]
freeman42x has quit [Ping timeout: 252 seconds]
IRCsum has joined #nixos
<hyper_ch> In a nixos module option: is it not possbile to have a type = types.path but then also default = null; meaning either provide nothing or give a full filesystem path?
zacts has joined #nixos
<clever> hyper_ch: there is a types.nullOr types.path
phreedom has quit [Quit: No Ping reply in 180 seconds.]
<hyper_ch> thx
IRCsum has quit [Remote host closed the connection]
andreas303 has quit [Ping timeout: 260 seconds]
phreedom has joined #nixos
IRCsum has joined #nixos
andreas303 has joined #nixos
<{^_^}> [nixpkgs] @jonringer opened pull request #64277 → pythonPackages.praw: 6.0.0 -> 6.3.1 → https://git.io/fj6nF
polman has quit [Ping timeout: 248 seconds]
polman has joined #nixos
Supersonic has quit [Ping timeout: 264 seconds]
Supersonic has joined #nixos
day|flip has quit [Remote host closed the connection]
clacke_movim has joined #nixos
ilikeheaps has quit [Ping timeout: 272 seconds]
sushi_ has joined #nixos
mexisme_ has quit [Ping timeout: 272 seconds]
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/74049dfd5c6 (from 5 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
mkoenig has quit [Quit: Lost terminal]
mkoenig has joined #nixos
kvda has joined #nixos
clacke_movim has left #nixos [#nixos]
ee1943 has quit [Read error: Connection reset by peer]
dansho_ has quit [Ping timeout: 248 seconds]
ee1943 has joined #nixos
dansho_ has joined #nixos
IRCsum has quit [Remote host closed the connection]
<rprije> Is anyone familiar with yarn2nix around?
IRCsum has joined #nixos
shandogs has quit [Remote host closed the connection]
allenj12 has joined #nixos
<allenj12> so if I see something like https://github.com/NixOS/nixpkgs/blob/master/pkgs/desktops/xfce/art/xfwm4-themes.nix how can I figure out how to configure it?
xcthulhu has quit [Quit: xcthulhu]
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Supersonic has quit [Ping timeout: 264 seconds]
IRCsum has quit [Remote host closed the connection]
clacke_movim has joined #nixos
IRCsum has joined #nixos
Myhlamaeus1 has quit [Remote host closed the connection]
Supersonic has joined #nixos
adamantium has joined #nixos
domogled has quit [Ping timeout: 246 seconds]
<typetetris> `nix-env -iA nixos.haskellPackages.ghcWithPackages'(p: [p.cabal-install])'` stopped working for me with nix 2.2.2, it now interprets '(p: [p.cabal-install])' as literal part of an attribute key. How can I do that now?
shandogs has joined #nixos
kvda has joined #nixos
<Miyu-chan> Hm. That is weird.
<Miyu-chan> You can do it with -iE, I think
IRCsum has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @sifmelcara opened pull request #64278 → powerline-go: 1.12.1 -> 1.13.0 → https://git.io/fj6cw
<allenj12> anyone else have trouble installing steam? seems to have run into an issue with cp `cp: cannot create regular file '~/.local/share/Steam/bootstrap.tar.xz'`
<allenj12> when I try to run it for the first time
IRCsum has joined #nixos
zacts has quit [Quit: WeeChat 2.4]
<Miyu-chan> Yeah, you can just go with -iE
kvda has quit [Client Quit]
<typetetris> With `-iE` I have to import nixpkgs first in the expression and then it ignores my `~/.config/nixpkgs/config.nix`.
<Miyu-chan> typetetris: nix-env -iE '{nixos, ...}: (nixos{}).haskellPackages.ghcWithPackages (p: [p.cabal-install])'
<Miyu-chan> TL;DR, you can specify a custom channel.
<Miyu-chan> Also, ~/config/nixpkgs/config.nix is part of the default import of the nixpkgs's default.nix, so it shouuld import that, I think.
<typetetris> This is really inconvenient.
<Miyu-chan> config ? let
<Miyu-chan> configFile = getEnv "NIXPKGS_CONFIG";
<Miyu-chan> configFile2 = homeDir + "/.config/nixpkgs/config.nix";
<Miyu-chan> Maybe your NIXPKGS_CONFIG is set too?
<typetetris> Miyu-chan, thanks for your help
<{^_^}> [nixpkgs] @jonringer opened pull request #64279 → pythonPackages.seekpath: mark as broken → https://git.io/fj6cK
<typetetris> Miyu-chan, it loads my config now.
<Miyu-chan> :)
<allenj12> hmm, is it just me, or should more things be configurable through configuration.nix? for example is it weird to want to move the status bar in xfce around etc.. in configuration.nix?
<Miyu-chan> allenj12: That's the scope of home-manager TBH.
vmandela has quit [Quit: Leaving]
<allenj12> ahh good point!
<allenj12> ive read a little about that, but havent tried it yet
<Miyu-chan> If I had to describe it, it's NixOS, but for users.
<Miyu-chan> I personally haven't tried it out myself.
<Ralith> it is good
<Miyu-chan> I think alternatively, less things should be configurable through configuration.nix.
<Miyu-chan> configuration.nix should be more on the sysadminny aspect, and it actually is for the most part.
<Miyu-chan> I think the only thing that directly affects users is environment.systemPackages.
<Miyu-chan> Oh, and user environment variables.
<Miyu-chan> I kinda want to move some of my stuff to home-manager, but I've already had too much stuff linked to configuration.nix.
<allenj12> idk, could you not argue that the configuration should be able to reproduce a system completely assuming similar hardware? since nixos is in the devops realm
<Miyu-chan> Yeah, that's one reason why I still use configuration.nix, because it's much easier to manage one file than two.
kvda has joined #nixos
<allenj12> yea I think for that reason I would like everything to be able to be reproducable in a nixconfig
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/c0a32366cbe (from 4 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
kvda has quit [Client Quit]
Drakonis has joined #nixos
<allenj12> so... is there a place I can view home-manager configurations? like if I want to set xfce configurations
zacts has joined #nixos
<Ralith> man home-configuration.nix
drakonis_ has quit [Ping timeout: 252 seconds]
<allenj12> hmm kk, I have to relogor install brbf
allenj12 has quit [Remote host closed the connection]
growpotkin has left #nixos [#nixos]
allenj12 has joined #nixos
<allenj12> o yea, has anyone else had a problem with shutting down/rebooting/ and logging out just halting for a very long time/forever
wfranzini has quit [Remote host closed the connection]
hyper_ch2 has joined #nixos
<hyper_ch2> Hmmm, in a let statement I try to convert an integer to a string using: notify.intervalString = toString $cfgZED.notify.interval; but it keeps complaining. So, how do I properly do conversion? Google was no help
hyper_ch2 has quit [Remote host closed the connection]
hyper_ch2 has joined #nixos
drakonis_ has joined #nixos
mexisme_ has joined #nixos
m0rphism has joined #nixos
Drakonis has quit [Ping timeout: 252 seconds]
hyper_ch2 has quit [Remote host closed the connection]
kvda has joined #nixos
sb0 has quit [Quit: Leaving]
noudle has joined #nixos
hyper_ch2 has joined #nixos
cxx_newb has joined #nixos
<hyper_ch2> ok, it seems I figured it out meanwhile :)
alp has joined #nixos
sushi_ has quit [Quit: Konversation terminated!]
<cxx_newb> Hey guys. I am starting out with nixos and need to adjust my config coming from arch. Some scripts reference stuff from /usr/share of other tools which doesn't work anymore, as all that is now in the nix store. An actual example is that the fzf completion scripts are currently in /nix/store/6dn8jhgymvr9ws7piv4n2zvmcbwijj8v-fzf-0.17.5-bin/share/fzf
<cxx_newb> which is a path that will change with update (is that correct?). How can I reliably reference stuff in the nix store across updates?
cxx_newb has quit [Remote host closed the connection]
<hyper_ch2> cxx_newb: you could look in /run/current-system/.....
cxx_newb has joined #nixos
hyper_ch2 has quit [Remote host closed the connection]
<cxx_newb> I just had a disconnect. In case anyone answered to my question if kindly ask to repeat the answer :)
allenj12 has quit [Ping timeout: 260 seconds]
hyper_ch2 has joined #nixos
knupfer has joined #nixos
hyper_ch2 has quit [Remote host closed the connection]
alp has quit [Ping timeout: 264 seconds]
palo1 has joined #nixos
palo has quit [Ping timeout: 246 seconds]
palo1 is now known as palo
cxx_newb has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @teto opened pull request #64280 → nixos/iperf: add openFirewall setting → https://git.io/fj6Cv
Okinan has quit [Quit: Konversation terminated!]
anon has joined #nixos
anon is now known as Guest68314
Okinan has joined #nixos
mexisme_ has quit [Ping timeout: 268 seconds]
clacke_movim has left #nixos [#nixos]
adamantium has quit [Ping timeout: 244 seconds]
endformationage has quit [Quit: WeeChat 2.5]
clacke_movim has joined #nixos
dansho_ has quit [Remote host closed the connection]
dansho_ has joined #nixos
sb0 has joined #nixos
hyper_ch2 has joined #nixos
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kvda has joined #nixos
kvda has quit [Client Quit]
hyper_ch2 has quit [Remote host closed the connection]
mexisme_ has joined #nixos
noudle has quit [Ping timeout: 264 seconds]
hyper_ch2 has joined #nixos
dansho_ has quit [Ping timeout: 268 seconds]
noudle has joined #nixos
hio has joined #nixos
noudle has quit [Ping timeout: 248 seconds]
noudle has joined #nixos
hyper_ch2 has quit [Remote host closed the connection]
<Izorkin> How to nedd access to enable build in darwin?
mexisme_ has quit [Ping timeout: 245 seconds]
markus1189 has joined #nixos
markus1189 is now known as predator117
mac10688 has quit [Ping timeout: 268 seconds]
predator117 is now known as markus1189
clacke_movim has left #nixos [#nixos]
Edes has joined #nixos
<teto> trying to write a nixos test. I have seen very little of perl. I would like to save the output of a command and echo it in the shell later on. I do " my ($retcode, $output) = $client->execute("tshark -2 -R 'mptcp' -r test.pcap -Tfields -e frame.interface_id"); print $output;" but the display is empty :s can i capture stderr as well ?
<Edes> Does anyone know how to use gnome extensions on NixOS?
<Edes> whenever I install one it breaks and screams at me for not having packagekit
<Edes> but I'm not entirely sure if that's required
wfranzini has joined #nixos
mexisme_ has joined #nixos
alp has joined #nixos
clacke_movim has joined #nixos
<Edes> I saw that
<Edes> they seem easy enough to package
bakakuna has joined #nixos
<Edes> maybe I can just package the one I'm interested in
<Edes> oh
<Edes> it doesn't work because it requires a newer version of gnome
<dminuoso> Mmm, how do I enable xcompose?
Thra11 has quit [Quit: WeeChat 1.9.1]
asheshambasta_m has joined #nixos
asheshambasta_m has quit [Client Quit]
ddellacosta has quit [Ping timeout: 272 seconds]
hamishmack has quit [Remote host closed the connection]
aramiscd has quit [Ping timeout: 248 seconds]
aramiscd has joined #nixos
<teto> dminuoso: what is it ? a grep in nixpkgs for it returns nothing (case sensitive)
hyper_ch2 has joined #nixos
<hyper_ch2> what string are allowed in a '' '' (two sinqle quotes) enclosure?
<rnhmjoj> can someone with commit access take a look at prs #63876, #63791, #63793? the have been tested and should be ready
<{^_^}> https://github.com/NixOS/nixpkgs/pull/63876 (by tadeokondrak, 6 days ago, open): vapoursynth: R45.1 -> R46
<{^_^}> https://github.com/NixOS/nixpkgs/pull/63791 (by tadeokondrak, 1 week ago, open): vapoursynth: wrap vspipe
<{^_^}> https://github.com/NixOS/nixpkgs/pull/63793 (by tadeokondrak, 1 week ago, open): ffms: symlink vapoursynth plugin
cfricke has joined #nixos
aramiscd has quit [Ping timeout: 246 seconds]
clacke_movim has left #nixos [#nixos]
Jackneill has joined #nixos
clacke_movim has joined #nixos
aramiscd has joined #nixos
gagbo has quit [Ping timeout: 258 seconds]
<Edes> how unsafe is using nixpkgs-unstable?
Edes has quit [Remote host closed the connection]
hyper_ch2 has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @etu merged pull request #63414 → [19.03] gitea: 1.8.2 -> 1.8.3 → https://git.io/fja5m
<{^_^}> [nixpkgs] @etu pushed 2 commits to release-19.03: https://git.io/fj6Cd
clacke_movim has left #nixos [#nixos]
__monty__ has joined #nixos
veske has joined #nixos
ilikeheaps has joined #nixos
hyper_ch2 has joined #nixos
clacke_movim has joined #nixos
<rnhmjoj> Edes: you can get breaking changes without any warning, unless you follow daily the stream of commits in master
mmercier has joined #nixos
<{^_^}> [nixpkgs] @etu merged pull request #64196 → zaz: init at 1.0.0 → https://git.io/fjKdC
<{^_^}> [nixpkgs] @etu pushed 2 commits to master: https://git.io/fj6Wk
shandogs has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @peti pushed 8 commits to haskell-updates: https://git.io/fj6W8
<{^_^}> [nixpkgs] @peti pushed 5 commits to haskell-updates: https://git.io/fj6WR
<{^_^}> [nixpkgs] @peti pushed 6 commits to master: https://git.io/fj6W0
<{^_^}> [nixpkgs] @etu opened pull request #64282 → phpPackages.phpstan: 0.11.8 -> 0.11.9 → https://git.io/fj6Wu
tilpner[m] has joined #nixos
Guest72333 has joined #nixos
civodul has joined #nixos
mexisme_ has quit [Ping timeout: 245 seconds]
lacesz has joined #nixos
<{^_^}> [nixpkgs] @tadeokondrak opened pull request #64283 → adapta-backgrounds: 0.5.2.3 -> 0.5.3.1 → https://git.io/fj6Wr
Tucky has joined #nixos
mexisme_ has joined #nixos
lambda-11235 has quit [Quit: Bye]
clacke_movim has left #nixos [#nixos]
<{^_^}> Channel nixos-19.03-small advanced to https://github.com/NixOS/nixpkgs/commit/ece42b96d16 (from 46 minutes ago, history: https://channels.nix.gsc.io/nixos-19.03-small)
<{^_^}> Channel nixpkgs-19.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/ece42b96d16 (from 46 minutes ago, history: https://channels.nix.gsc.io/nixpkgs-19.03-darwin)
Shoubit has joined #nixos
<hyper_ch2> what string are allowed in a '' '' (two sinqle quotes) enclosure?
<{^_^}> [nixpkgs] @ruuda opened pull request #64284 → pythonPackages.sqlalchemy: Add Postgres support → https://git.io/fj6WM
hyper_ch2 has quit [Remote host closed the connection]
mmercier has quit [Quit: mmercier]
clacke_movim has joined #nixos
<{^_^}> [nixpkgs] @tadeokondrak opened pull request #64285 → ispell: 3.3.02 -> 3.4.00 → https://git.io/fj6W7
<manveru> hyper_ch: anything other than ''
<{^_^}> [nixpkgs] @FRidh closed pull request #64284 → pythonPackages.sqlalchemy: Add Postgres support → https://git.io/fj6WM
<{^_^}> [nixpkgs] @domenkozar opened pull request #64286 → haskellPacakges.inline-c-cpp: fix build on darwin → https://git.io/fj6WF
fendor has joined #nixos
<{^_^}> [nixpkgs] @marsam opened pull request #64287 → Revert "nodejs-12_x: 12.5.0 -> 12.6.0" → https://git.io/fj6Wb
<ivan> can I fix a nixos system with no root password or do I need to start again?
joehh has quit [Ping timeout: 245 seconds]
<{^_^}> [nixpkgs] @tadeokondrak opened pull request #64288 → j4-dmenu-desktop: 2.16 -> 2.17 → https://git.io/fj6lJ
cfricke has quit [Ping timeout: 245 seconds]
<etu> ivan: You should get prompted for a root password at the end of nixos-install
<{^_^}> [nixpkgs] @teto merged pull request #63876 → vapoursynth: R45.1 -> R46 → https://git.io/fjoZ7
<{^_^}> [nixpkgs] @teto pushed 3 commits to master: https://git.io/fj6lk
<etu> ivan: But boot a live image and mount it up and then you can either run nixos-install again or nixos-enter and use passwd to change the password
<{^_^}> [nixpkgs] @teto merged pull request #63793 → ffms: symlink vapoursynth plugin → https://git.io/fjrwe
<{^_^}> [nixpkgs] @teto pushed commit from @tadeokondrak to master « ffms: symlink vapoursynth plugin »: https://git.io/fj6lL
hyper_ch2 has joined #nixos
<teto> rnhmjoj: could you rebase the 2nd PR you mentioned please ?
sigmundv has joined #nixos
mexisme_ has quit [Ping timeout: 272 seconds]
mexisme_ has joined #nixos
thc202 has joined #nixos
<rnhmjoj> teto: the author, tadeokondrak, just did it
<rnhmjoj> i'm testing it again now, btw
shandogs has joined #nixos
arjen-jonathan has joined #nixos
<teto> rnhmjoj: thanks, trusting you :)
<ivan> etu: thanks, I was hoping it could be pwned through init=/bin/sh in grub
<ivan> I installed with nixos-infect-like means
aswanson has quit [Quit: WeeChat 2.4]
knupfer has quit [Ping timeout: 252 seconds]
<rnhmjoj> teto: ok, done: it's still good
bakakuna has quit [Remote host closed the connection]
bakakuna has joined #nixos
o1lo01ol1o has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace merged pull request #64023 → fondo: 1.3.0 -> 1.3.2 → https://git.io/fjKcO
<{^_^}> [nixpkgs] @worldofpeace pushed 3 commits to master: https://git.io/fj6l0
orivej has quit [Ping timeout: 246 seconds]
<etu> ivan: Test /run/current-system/sw/bin/bash then
alp has quit [Ping timeout: 264 seconds]
<ivan> thanks
<etu> But since it's a symlink I'm not sure it will work
shandogs has quit [Remote host closed the connection]
<etu> because init set up a lot of those things
<{^_^}> [nixpkgs] @teto merged pull request #63791 → vapoursynth: wrap vspipe → https://git.io/fjrVi
<{^_^}> [nixpkgs] @teto pushed commit from @tadeokondrak to master « vapoursynth: wrap vspipe »: https://git.io/fj6lg
mexisme_ has quit [Ping timeout: 248 seconds]
shandogs has joined #nixos
<teto> rnhmjoj: thanks. Done
<rnhmjoj> teto: thank _you_
<tdeo> hello
<tdeo> tadeokondrak here, couldn't get my short name on github lol
<etu> ivan: Actually the /bin/sh symlink may work better :D
<tdeo> teto: could you quickly check out #63792 too? it's the last of my vapoursynth PRs
<{^_^}> https://github.com/NixOS/nixpkgs/pull/63792 (by tadeokondrak, 1 week ago, open): vapoursynth-editor: init at R19
<{^_^}> [nixpkgs] @tadeokondrak opened pull request #64289 → kallisto: 0.43.1 -> 0.46.0 → https://git.io/fj6lX
shandogs has quit [Ping timeout: 248 seconds]
Makaveli7 has joined #nixos
<{^_^}> [nixpkgs] @marsam merged pull request #64287 → Revert "nodejs-12_x: 12.5.0 -> 12.6.0" → https://git.io/fj6Wb
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/fj6lS
lacesz has quit [Remote host closed the connection]
mexisme_ has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
<teto> tdeo: made a small comment, looks good otherwise
<hyper_ch2> I'm trying to overwrite a default existing configuration file with a newly generated one but I cna't figure out how to do that. I thought I could use environment.etc."file".write but nixos complains about it: https://paste.simplylinux.ch/view/cbca1114#L571-L574
<teto> hyper_ch2: what's the error ? you have to remove the file to let nix in control of it ?
psy3497 has quit [Ping timeout: 245 seconds]
gyroninja___ has quit [Ping timeout: 258 seconds]
<tdeo> do you mean `.text` instead of `.write`?
<{^_^}> [nixpkgs] @lsix merged pull request #64270 → python3Packages.django: fix CVE-2019-12781 → https://git.io/fj6G9
<{^_^}> [nixpkgs] @lsix pushed 5 commits to master: https://git.io/fj6lN
<hyper_ch2> tdeo: same error
gyroninja___ has joined #nixos
ilikeheaps has quit [Ping timeout: 268 seconds]
<hyper_ch2> I just wonder if I whould better adjust the pkgs/other-os/zfs/default.nix file to replace it after unpacking or so
<tdeo> ah, i see. what i'd do is combine the packages.zfsUser/etc/... with the other one using a `buildEnv`
<{^_^}> [nixpkgs] @lsix pushed 4 commits to release-19.03: https://git.io/fj6lp
<tdeo> so `environment.etc."...".source="${pkgs.buildEnv {name="something";ignoreCollisions=true;paths=[packages.zfsUser, <write the second file here>]}}/etc/zfs/zed.d";
<hyper_ch2> tdeo: you lost me :)
alex`` has joined #nixos
<tdeo> yeah, typing it in an irc line is not great haha
<hyper_ch2> ah, I think I get it
<hyper_ch2> tdeo: it wasn't you... it's just me.... being an average computer user :)
alp has joined #nixos
<teto> rnhmjoj: if you feel like helping our great tdeo, I rely on your vaporsynth expertise https://github.com/NixOS/nixpkgs/pull/63792
<{^_^}> #63792 (by tadeokondrak, 1 week ago, open): vapoursynth-editor: init at R19
<hyper_ch2> tdeo: still no idea what to use <write the second file here> for
<tdeo> i'm not exactly sure either immediately, but you need a function that will create a file in the right directory with that text
<tdeo> i don't belive writeText does this, but i will test
<tdeo> yeah, it doesn't...
<hyper_ch2> the (default config) file already exists at "${packages.zfsUser}/etc/zfs/zed.d/zed.rc" and I just don't know how to alter it. I guess I have to do that during the postUnpack phase
phreedom has quit [Ping timeout: 260 seconds]
<hyper_ch2> I still haven't figured out how module files actually write the config files to nix store
psyanticy has joined #nixos
<tdeo> there's a function called writeText that takes two arguments, the name and contents of a file, and returns a nix store file, for example
jackdk has quit [Quit: Connection closed for inactivity]
<hyper_ch2> but I must ensure that my custom file will finally be linked up as /etc/zfs/zed.d/zed.rc
<{^_^}> [nixpkgs] @adisbladis pushed to master « pythonPackages.poetry: 0.12.16 -> 0.12.17 »: https://git.io/fj68k
<hyper_ch2> adisbladis should also be interested in that module expansion ;)
<adisbladis> Hm?
<hyper_ch2> adisbladis: I'm trying to enhance the zfs module expression to add the ZED stuff - basically get notified upon errors and stuff
<hyper_ch2> you are using zfs right?
alex`` has quit [Ping timeout: 246 seconds]
<adisbladis> Yep, on some systems :)
<hyper_ch2> adisbladis: /etc/zfs/zed.d/zed.rc :)
<hyper_ch2> if you run your monthly scrub and there's errors, you want to be informed, right? :)
alex`` has joined #nixos
Okinan has quit [Quit: Konversation terminated!]
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @worldofpeace merged pull request #64221 → google-music-scripts: fix build → https://git.io/fjKND
<{^_^}> [nixpkgs] @worldofpeace pushed 3 commits to master: https://git.io/fj68q
<{^_^}> [nixpkgs] @tadeokondrak opened pull request #64290 → xbps: 0.53 -> 0.56 → https://git.io/fj683
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to release-19.03: https://git.io/fj68G
ilikeheaps has joined #nixos
phreedom has joined #nixos
<manveru> hmm, is there no easy way to get python2/python3 without the `python` executable?
<{^_^}> [nixpkgs] @worldofpeace merged pull request #63974 → GNOME3 updates → https://git.io/fjKLF
<{^_^}> [nixpkgs] @worldofpeace pushed 10 commits to master: https://git.io/fj68c
<{^_^}> [nixpkgs] @worldofpeace merged pull request #64030 → gnome-builder: 3.32.0 -> 3.32.3 → https://git.io/fjKlO
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fj68W
dm9 has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace closed pull request #64015 → evolution-data-server: 3.32.2 -> 3.32.3 → https://git.io/fjKGh
<{^_^}> [nixpkgs] @worldofpeace closed pull request #63975 → gnome3.accerciser: 3.32.2 -> 3.32.3 → https://git.io/fjKtU
<{^_^}> [nixpkgs] @worldofpeace closed pull request #64031 → gnome3.gnome-calculator: 3.32.1 -> 3.32.2 → https://git.io/fjKln
<{^_^}> [nixpkgs] @worldofpeace closed pull request #64033 → gnome3.gnome-settings-daemon: 3.32.0 -> 3.32.1 → https://git.io/fjKlK
<{^_^}> [nixpkgs] @worldofpeace closed pull request #64036 → gnome3.gnome-sound-recorder: 3.32.0 -> 3.32.1 → https://git.io/fjKlN
<{^_^}> [nixpkgs] @worldofpeace closed pull request #64231 → gnome3.yelp-tools: 3.32.1 -> 3.32.2 → https://git.io/fjKAM
<hyper_ch2> manveru: what do you mean?
<{^_^}> [nixpkgs] @worldofpeace merged pull request #63825 → gnome3.gnome-user-docs: Add meta attributes → https://git.io/fjrbH
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fj680
<manveru> i only need `python2`, and `python3`, otherwise this damn cmake fails :(
<manveru> tried all kinds of -D flags, but it seems to just ignore me totally, so i straced, and it seems to pick the first `python` it finds on $PATH and checks its version
linarcx has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace closed pull request #64208 → gnome3.sushi: 3.32.0 -> 3.32.1 → https://git.io/fjKbu
<manveru> so i can make it fail depending on the order i put them in buildInputs :P
<LnL> if you put them in a buildEnv priorities should handle it
<manveru> the generation of the `python` executable seems pretty hardcoded in the python derivation, so don't think there's a way other than wrapping it
<manveru> LnL: buildEnv will still keep it
<manveru> it's not a priority issue
<manveru> i want `python` gone :)
<LnL> ah you don't want it at all?
<{^_^}> [nixpkgs] @angus-g opened pull request #64291 → gmsh: 4.3.0 -> 4.4.0 → https://git.io/fj68z
<{^_^}> [nixpkgs] @worldofpeace merged pull request #64090 → youtube-dl: 2019.06.27 -> 2019.07.02 → https://git.io/fjK2O
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fj682
<{^_^}> [nixpkgs] @tadeokondrak opened pull request #64292 → libxkbcommon: 0.8.0 -> 0.8.4 → https://git.io/fj68a
<manveru> yeah, in theory cmake should take something like -DPython3_ROOT_DIR but i'm not sure which magic invocation can make this work otherwise
ericsagnes has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @tadeokondrak opened pull request #64293 → libyaml: 0.2.1 -> 0.2.2 → https://git.io/fj68K
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to release-19.03: https://git.io/fj686
<hyper_ch2> in a nixos module file, how can I write the contents of a variable to a specific, existing file?
ericsagnes has joined #nixos
knupfer has joined #nixos
o1lo01ol1o has joined #nixos
<{^_^}> [nixpkgs] @tadeokondrak opened pull request #64294 → Hy/update/0.17.0 → https://git.io/fj68M
<rnhmjoj> hyper_ch2: you can use `environment.etc` to symlink files in /etc or `system.activationScripts` to execute an arbitrary shell script to create a file anywhere
<{^_^}> [nixpkgs] @worldofpeace opened pull request #64295 → libgdata: 0.17.9 -> 0.17.10 → https://git.io/fj68F
<hyper_ch2> rnhmjoj: it's a module file and I need to override the existing file
<{^_^}> [nixpkgs] @worldofpeace merged pull request #63761 → franz: use wrapGAppsHook → https://git.io/fjrZ2
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fj68j
shandogs has joined #nixos
<rnhmjoj> hyper_ch2: you should use environment.etc."zfs/zed.d/zed.rc".text
<{^_^}> [nixpkgs] @worldofpeace pushed 85 commits to staging-19.03: https://git.io/fj64y
<{^_^}> [nixpkgs] @worldofpeace merged pull request #64266 → [r19.03] expat: add patch for CVE-2018-20843 → https://git.io/fj6sI
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to staging-19.03: https://git.io/fj649
rprospero has joined #nixos
rprospero has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @teto merged pull request #63792 → vapoursynth-editor: init at R19 → https://git.io/fjrV7
<{^_^}> [nixpkgs] @teto pushed commit from @tadeokondrak to master « vapoursynth-editor: init at R19 »: https://git.io/fj64h
<{^_^}> Channel nixos-19.03-small advanced to https://github.com/NixOS/nixpkgs/commit/5c0abc553cf (from 89 minutes ago, history: https://channels.nix.gsc.io/nixos-19.03-small)
amakthel has quit [Ping timeout: 264 seconds]
cfricke has joined #nixos
__monty__ has quit [Ping timeout: 244 seconds]
cfricke has quit [Quit: WeeChat 2.5]
__monty__ has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/49a3e7719c4 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
romildo has joined #nixos
cfricke has joined #nixos
alex`` has quit [Ping timeout: 272 seconds]
cfricke has quit [Client Quit]
ZaraChimera has left #nixos [#nixos]
alex`` has joined #nixos
dm9 has quit [Quit: WeeChat 2.5]
knupfer has quit [Ping timeout: 245 seconds]
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fj6B8
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to release-19.03: https://git.io/fj6B0
ilikeheaps has quit [Read error: Connection reset by peer]
romildo has quit [Quit: Leaving]
<{^_^}> [nixpkgs] @peti pushed to master « python-bugzilla: replace broken meta.homepage link »: https://git.io/fj6Bp
rprospero has joined #nixos
<hyper_ch2> rnhmjoj: I tried with .write and .text --> both times https://paste.simplylinux.ch/view/raw/424afe17
shandogs has quit [Remote host closed the connection]
cpc26 has quit []
shandogs has joined #nixos
iyzsong has joined #nixos
ilikeheaps has joined #nixos
<dminuoso> Is there a point to using `install` over `cp` in derivations?
shandogs has quit [Client Quit]
<etu> dminuoso: "install" has flags to specify mode of files, which can be nice to do in the same action
<etu> So it's "cleaner" code
<dminuoso> etu: Ah gotcha.
<betaboon> dminuoso: mainly use install instead of cp as it can also create directories and set permissions. so instead of `mkdir -p ...`+`cp`+`chmod`+`chown` just one simple `install ...`
<Izorkin> Mic92: please rechek PR netdata. Update service netdata
<{^_^}> [nixpkgs] @peti pushed to master « python-bugzilla: fix broken package name »: https://git.io/fj6RW
<{^_^}> Channel nixpkgs-19.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/5c0abc553cf (from 3 hours ago, history: https://channels.nix.gsc.io/nixpkgs-19.03-darwin)
Shoubit has quit [Ping timeout: 272 seconds]
<dminuoso> betaboon: I see, thank you.
init_6 has joined #nixos
rprospero has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @dywedir merged pull request #64288 → j4-dmenu-desktop: 2.16 -> 2.17 → https://git.io/fj6lJ
<{^_^}> [nixpkgs] @dywedir pushed 2 commits to master: https://git.io/fj6Ru
orivej has joined #nixos
rprospero has joined #nixos
abcrawf has quit [Remote host closed the connection]
jackdk has joined #nixos
o1lo01ol1o has quit [Read error: Connection reset by peer]
Ralith_ has quit [Ping timeout: 245 seconds]
Ralith_ has joined #nixos
abcrawf has joined #nixos
Shoubit has joined #nixos
asheshambasta_m has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace opened pull request #64297 → gnome3.gnome-contacts: fix build → https://git.io/fj6RH
<{^_^}> Channel nixpkgs-19.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/b6aaee6d51f (from 55 minutes ago, history: https://channels.nix.gsc.io/nixpkgs-19.03-darwin)
Jackneill has quit [Ping timeout: 244 seconds]
Guest72333 has quit [Ping timeout: 248 seconds]
Guest72333 has joined #nixos
oida has quit [Remote host closed the connection]
ckoparkar has joined #nixos
ckoparkar has left #nixos [#nixos]
oida has joined #nixos
sb0 has quit [Quit: Leaving]
Anymost has joined #nixos
<dminuoso> Unrelatedly, I have a package that relies on some source with no stable download URL. What mechanism do I use to ask the user to prefetch manually?
<dminuoso> (Im writing the derivation)
<tdeo> requireFile
Jackneill has joined #nixos
<fgaz> tdeo: you beat me to it :)
<dminuoso> Ah great, thanks tdeo. Thats helpful :)
<{^_^}> [nixpkgs] @michaelpj opened pull request #64298 → asciidoctor: include the asciidoctor-epub3 gem → https://git.io/fj60T
<fgaz> Also unrelated: idea: a "mutual review" discourse thread where one can post one of their prs and get it reviewed in exchange for reviewing another one
<fgaz> would it encourage bad behaviour (ie rushed reviews)?
<{^_^}> Channel nixos-19.03-small advanced to https://github.com/NixOS/nixpkgs/commit/b6aaee6d51f (from 74 minutes ago, history: https://channels.nix.gsc.io/nixos-19.03-small)
<hyper_ch2> still stuck at how to actually write to a file in a nixos module
fendor has quit [Remote host closed the connection]
fendor has joined #nixos
<qyliss> hyper_ch2: what sort of file?
fendor has quit [Read error: Connection reset by peer]
hmpffff has joined #nixos
ericsagnes has quit [Ping timeout: 252 seconds]
o1lo01ol1o has joined #nixos
<hyper_ch2> qyliss: a config file that exists should be overwritten
<aanderse> hyper_ch2: more details please
<{^_^}> [nixpkgs] @Mic92 merged pull request #64241 → netdata: update build config → https://git.io/fj6fH
<{^_^}> [nixpkgs] @Mic92 pushed 4 commits to master: https://git.io/fj60B
<aanderse> .write?
<aanderse> there is a .text...
<{^_^}> [nixpkgs] @worldofpeace opened pull request #64299 → gnome3.mutter: disable installed tests → https://git.io/fj60g
<{^_^}> [nixpkgs] @FRidh merged pull request #64251 → python3Packages.matplotlib: 3.0.3 -> 3.1.1 → https://git.io/fj6k6
<{^_^}> [nixpkgs] @FRidh pushed commit from @veprbl to master « python3Packages.matplotlib: 3.0.3 -> 3.1.1 »: https://git.io/fj602
<{^_^}> [nixpkgs] @worldofpeace merged pull request #64297 → gnome3.gnome-contacts: fix build → https://git.io/fj6RH
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fj60V
<rnhmjoj> hyper_ch2: does the file already exist?
<hyper_ch2> rnhmjoj: yes, it exists already... I tried to delete it in the post installation phase but that just gave me an error with symlink then
<hyper_ch2> I just can't figure out how nixos modules actually write config files
ericsagnes has joined #nixos
rprospero has quit [Remote host closed the connection]
<rnhmjoj> wait, are there two modules trying to link different files to the same path?
alex`` has quit [Ping timeout: 245 seconds]
asheshambasta_m has quit [Quit: Leaving.]
gyroninja___ has quit [Ping timeout: 246 seconds]
rprospero has joined #nixos
alex`` has joined #nixos
xcthulhu has joined #nixos
mexisme_ has quit [Ping timeout: 245 seconds]
<hyper_ch2> rnhmjoj: I have no idea what I'm doing as nowhere there's some kind of explanation
<rnhmjoj> hyper_ch2: the source of the error in nixos/modules/system/etc/make-etc.sh#33, when you create a symlink with the option environment.etc this script will be called to actually make the link. the script will refuse to create it if a symlink already exists and it's pointing somewhere else
<rnhmjoj> if you deleted it and later reappeared i guess it means there's another nixos module making the link
rprije has quit [Ping timeout: 272 seconds]
<hyper_ch2> so how to write the config file then to ${packages.zfsUser}/etc/zfs/zed.d/zed.rc ?
__monty__ has quit [Ping timeout: 258 seconds]
v88m has quit [Read error: Connection reset by peer]
v88m has joined #nixos
gyroninja___ has joined #nixos
<rnhmjoj> is this the module? nixos/modules/tasks/filesystems/zfs.nix
<hyper_ch2> rnhmjoj: yes
<hyper_ch2> I want to add options for ZED
rprospero has quit [Remote host closed the connection]
<hyper_ch2> I think I have it working now... but not sure
__monty__ has joined #nixos
<rnhmjoj> ah, i see. one option is symlinking a whole directory
<hyper_ch2> I know
<hyper_ch2> I just thought I could easily just add a file
<rnhmjoj> and that directory probably contains a different zed.rc, right?
noudle has quit []
<hyper_ch2> maybe this helps as last thing in the let statement part pkgs.writeTextDir "etc/zfs/zed.d/zed.rc" zedConf;
<hyper_ch2> rnhmjoj: yes, but I altered pkgs/os-specific/linux/zfs/default.nix to remove it
<hyper_ch2> I tried with it being there... no luck... so I tried to remove it... no luck
xelxebar has quit [Remote host closed the connection]
<rnhmjoj> ok, can't you avoid symlinking the whole directory? if there are only a few files you could create a link manually, and add zed.rc
xelxebar has joined #nixos
<hyper_ch2> rnhmjoj: the symlilnking of the whole dir was already there :)
<hyper_ch2> removing the file was done by adding just before https://github.com/NixOS/nixpkgs/blob/master/pkgs/os-specific/linux/zfs/default.nix#L137 rm $out/etc/zfs/zed.d/zed.rc
hyper_ch2 has quit [Remote host closed the connection]
<rnhmjoj> hyper_ch2: there are 11 files, it's not too bad...
hyper_ch2 has joined #nixos
<hyper_ch2> rnhmjoj: I could symlink all the individual files
<{^_^}> [nixpkgs] @NeQuissimus merged pull request #64081 → aws-azure-login: init 1.7.0 → https://git.io/fjKzu
<{^_^}> [nixpkgs] @NeQuissimus pushed 2 commits to master: https://git.io/fj6Eq
gyroninja___ has quit [Ping timeout: 272 seconds]
Havvy has quit [Ping timeout: 258 seconds]
<rnhmjoj> hyper_ch2: i think the problem is nix can't touch that directory becase it's inside the nix store and therefore read only. there probably is no other any besides creating the link individually or changing the zfs package.
Havvy has joined #nixos
rprospero has joined #nixos
Ralith_ has quit [Ping timeout: 258 seconds]
tput has quit [Quit: ERC (IRC client for Emacs 26.1)]
<{^_^}> [nixpkgs] @grahamc opened pull request #64301 → Docs/clean build → https://git.io/fj6E0
rprospero has quit [Remote host closed the connection]
<hyper_ch2> rnhmjoj: I changed it to https://paste.simplylinux.ch/view/raw/40556a5f but I can't find any zed.rc now in /nix/store
<hyper_ch2> (well, no altered/new one)
<hyper_ch2> shouldn't that file be created somewhere?
gyroninja___ has joined #nixos
init_6 has quit []
Makaveli7 has quit [Quit: WeeChat 2.5]
<rnhmjoj> hyper_ch2: is there no symlink in /etc/zfs/zed.d/zed.rc?
<rnhmjoj> it seems ok now, i would expect it to work
Anymost has quit [Remote host closed the connection]
<hyper_ch2> rnhmjoj: I just built, not rebooted
<hyper_ch2> I did then find /nix/store -iname "zed.rc" -type f and it couldn't find my generated one... only the one that is there whit the system up and running now
hoijui has joined #nixos
<rnhmjoj> hyper_ch2: it should be somewhere but i don't know if it's going to contain the name of the target (zed.rc)
<dminuoso> Im trying to install a derivation from my local nixpkgs repo, what am I doing wrong? https://gist.github.com/dminuoso/3f48cca3a52e4df17409e6014d8fcfb8
hyper_ch2 has quit [Remote host closed the connection]
rprospero has joined #nixos
xcthulhu has quit [Quit: xcthulhu]
rprospero has quit [Client Quit]
<dminuoso> Ohh wow Im silly.
hyper_ch2 has joined #nixos
hyper_ch2 has quit [Remote host closed the connection]
<dminuoso> But Im still curious, why doesn't that work?
hyper_ch2 has joined #nixos
<hyper_ch2> rnhmjoj: I got it /nix/store/11zyvpd6wrfk41zzw9by1x7gi81mn67p-etc-zed.rc
<hyper_ch2> *"zed.rc"* helped
<rsa> i've packaged a library where manually running unpackPhase, patchPhase, configurePhase and buildPhase builds it just fine, but when i try to nix-shell -p it it breaks at the configuring stage with "...setup: ./autogen.sh: /usr/bin/env: bad interpreter: No such file or directory"
<hyper_ch2> well, find ..... *"zed.rc"* did the trick
<rnhmjoj> ah, i wasn't familiar with -iname: i thought it was a variant that matched partially
<rnhmjoj> it's just case insensitive, so you still need the wildcards
<{^_^}> [nixpkgs] @adisbladis merged pull request #62901 → php: drop 7.1 → https://git.io/fjzh4
<{^_^}> [nixpkgs] @adisbladis pushed 2 commits to master: https://git.io/fj6Ed
<hyper_ch2> yes, I'm just used to use -iname and usually with grep I also use -i :)
<hyper_ch2> file is generated fine... just one issue.... one option that should be commented out isn't :(
<hyper_ch2> yeah.... there's the email addresses list attribute xxx = [ "xxx" "yyy" ]; and then I do check if cfgZED.email.addresses == null then %comment out% ..... but I guess the list attribute is never "null"
ma27 has joined #nixos
<rnhmjoj> is the list going to be empty in that case? you could just check == []
<hyper_ch2> ah that works? didn't know :) will test it
<rnhmjoj> hyper_ch2: yeah ;)
<rnhmjoj> sonercirit: maybe 32/64 bit versions?
<sonercirit[m]> how can I delete 32 bit versions?
<{^_^}> [nixpkgs] @angristan opened pull request #64302 → vagrant: 2.2.3 -> 2.2.5 → https://git.io/fj6uv
<rnhmjoj> can you check what's inside?
<rnhmjoj> it's also possibile you have older generations
steell has joined #nixos
<hyper_ch2> rnhmjoj: if I set it to [] or [ ] it doesn't generate the file anymore
<hyper_ch2> when I revert back to null it does
<hyper_ch2> rnhmjoj: No, I don't have older generations
veske has quit [Quit: This computer has gone to sleep]
<{^_^}> [nixpkgs] @teto merged pull request #64277 → pythonPackages.praw: 6.0.0 -> 6.3.1 → https://git.io/fj6nF
<{^_^}> [nixpkgs] @teto pushed 3 commits to master: https://git.io/fj6uk
<michaelpj> what's the general approach for packages with optional unfree dependencies? do something like have them nulled out by default so they can be overridden if someone wants the unfree version? gate on `config.allowUnfree`?
<hyper_ch2> this generates the file: (if cfgZED.email.addresses == null then '' but this won't (if cfgZED.email.addresses == [] then ''
<{^_^}> [nixpkgs] @jonringer opened pull request #64303 → pythonPackages.{seekpath,sumo}: fix builds → https://git.io/fj6uL
<{^_^}> [nixpkgs] @jonringer closed pull request #64279 → pythonPackages.seekpath: mark as broken → https://git.io/fj6cK
Jackneill has quit [Ping timeout: 245 seconds]
<sonercirit[m]> rnhmjoj: contents are the same
<rnhmjoj> hyper_ch2: can you post the source again?
dm9 has joined #nixos
yunratobe_1 has joined #nixos
<rnhmjoj> sonercirit: run that command as root
steell has quit [Ping timeout: 272 seconds]
shabius_ has joined #nixos
<hyper_ch2> rnhmjoj and lin 397
<sonercirit[m]> yep, thx a lot rnhmjoj
fusion809_ has quit [Remote host closed the connection]
<rnhmjoj> sonercirit: you need root because system generations are in the root user profile
shabius has quit [Ping timeout: 258 seconds]
yunratobe is now known as yunratobe_2
yunratobe_1 is now known as yunratobe
Jackneill has joined #nixos
<{^_^}> [nixpkgs] @fgaz opened pull request #64304 → curseofwar,curseofwar-sdl: init at 1.2.0 → https://git.io/fj6uE
<rnhmjoj> hyper_ch2: what do you mean exactly by "generates the file"? it should work
<hyper_ch2> rnhmjoj: if I replace "null" with "[]" or "[ ]" then no zed.rc file is being generated and neither an error appears
<{^_^}> [nixpkgs] @dasJ closed pull request #63842 → nixos/phpfpm: Use systemd's RuntimeDirectory → https://git.io/fjrhh
hyper_ch2 has quit [Remote host closed the connection]
__monty__ has quit [Quit: leaving]
yunratobe_2 has quit [Quit: ZNC from FreeZNC.ru]
<rnhmjoj> hyper_ch2: that's unexpected, i have no clue
hyper_ch2 has joined #nixos
hyper_ch2 has quit [Remote host closed the connection]
hyper_ch2 has joined #nixos
<hyper_ch2> rnhmjoj back again
cdyson37 has joined #nixos
ddellacosta has joined #nixos
<cdyson37> What are default.upstream files in nixpkgs for? I can guess but can't tell how they're used - some sort of auto-updater? e.g. https://github.com/NixOS/nixpkgs/blob/f3282c8d1e0ce6ba5d9f6aeddcfad51d879c7a4a/pkgs/tools/system/ipmiutil/default.upstream
Neo-- has joined #nixos
ma27 has quit [Quit: WeeChat 2.4]
ericsagnes has quit [Ping timeout: 250 seconds]
jackdk has quit [Quit: Connection closed for inactivity]
<hyper_ch2> rnhmjoj: any idea why == [] won't work as anticipated?
iyzsong has quit [Ping timeout: 276 seconds]
orivej has quit [Ping timeout: 245 seconds]
detran_ has quit [Ping timeout: 272 seconds]
<dminuoso> Mmm, systemd.services.<name>.description seems to be a misnomer - from what I can see its rather meant as an alternative name to pop up in systemd for the unit.
civodul has quit [Read error: Connection reset by peer]
<dminuoso> Ah well I figured it out.
civodul has joined #nixos
<{^_^}> [nixpkgs] @teto merged pull request #64280 → nixos/iperf: add openFirewall setting → https://git.io/fj6Cv
<{^_^}> [nixpkgs] @teto pushed to master « nixos/iperf: add openFirewall setting »: https://git.io/fj6zw
hyper_ch2 has quit [Remote host closed the connection]
<rnhmjoj> hyper_ch2: no, sorry. anyway insted of inserting the commented version i would use lib.optionalString
<{^_^}> [nixos-hardware] @dminuoso opened pull request #112 → Specify a correct unit description → https://git.io/fj6zi
puck has quit [Ping timeout: 248 seconds]
puck has joined #nixos
bakakuna has quit [Remote host closed the connection]
bakakuna has joined #nixos
steell has joined #nixos
andreas303 has quit [Remote host closed the connection]
arjen-jonathan has quit [Ping timeout: 245 seconds]
ciil has quit [Quit: Lost terminal]
Netsu has joined #nixos
<Netsu> got problem trying to fetch to nix store big file https://gist.github.com/Pitometsu/c61a2e95fc97d618aa87eaaf08fe8f5f
<Netsu> is it actual yet, and is it available in readable formatting anywhere?
ciil has joined #nixos
ardumont has quit [Ping timeout: 252 seconds]
andreas303 has joined #nixos
zacts has quit [Quit: WeeChat 2.4]
steell has quit [Ping timeout: 245 seconds]
<rnhmjoj> is there an equivalent of the community aarch64-build-box for darwin?
hmpffff has quit [Quit: Bye…]
bakakuna has quit [Ping timeout: 252 seconds]
dansho_ has joined #nixos
hmpffff has joined #nixos
<{^_^}> [nixpkgs] @rnhmjoj opened pull request #64305 → monero-gui: only exclude darwin in meta.platforms → https://git.io/fj6gZ
ardumont has joined #nixos
<Netsu> unfortunately question isn't solved: what is the canonical way to put large file to nix store?
<gchristensen> Nix is not designed to handle very large files
<Netsu> 2Gb isn't so big
<Netsu> :-\
linarcx has quit [Quit: WeeChat 2.5]
bakakuna has joined #nixos
<Netsu> looks like fetchurl use different hashing than requireFile, isn't it?
noudle has joined #nixos
sigmundv has quit [Ping timeout: 245 seconds]
sakalli_ has joined #nixos
sakalli_ has quit [Excess Flood]
sakalli_ has joined #nixos
sakalli_ has quit [Client Quit]
ilikeheaps has quit [Quit: Konversation terminated!]
<{^_^}> [nixpkgs] @sjau opened pull request #64306 → ZFS: Adding ZED configuration options → https://git.io/fj6gD
Guest72333 has quit [Ping timeout: 272 seconds]
clacke_movim has left #nixos [#nixos]
hyper_ch2 has joined #nixos
hyper_ch2 has quit [Remote host closed the connection]
Ralith_ has joined #nixos
hio has quit [Quit: Connection closed for inactivity]
wfranzini has quit [Remote host closed the connection]
zacts has joined #nixos
phreedom has quit [Ping timeout: 260 seconds]
<Netsu> Looks like it required to use sipmle nix-prefetch-url instead of nix-hash for local directories hashing
ericsagnes has joined #nixos
domogled has joined #nixos
<clever> Netsu: did you try nix-hash --flat ?
ddellacosta has quit [Ping timeout: 272 seconds]
clacke_movim has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
alex`` has quit [Ping timeout: 245 seconds]
cdyson37 has quit [Remote host closed the connection]
alex`` has joined #nixos
phreedom has joined #nixos
MmeQuignon has joined #nixos
bakakuna has quit [Ping timeout: 268 seconds]
ddellacosta has joined #nixos
stranger___ has joined #nixos
<stranger___> makes sense? #63024
<{^_^}> https://github.com/NixOS/nixpkgs/pull/63024 (by gnidorah, 3 weeks ago, open): midisheetmusic: always bring timidity dependency
mac10688 has joined #nixos
civodul has quit [Quit: ERC (IRC client for Emacs 26.2)]
deech has joined #nixos
deech has left #nixos [#nixos]
deech has joined #nixos
<{^_^}> [nixpkgs] @eadwu opened pull request #64308 → vscode{,ium}: 1.35.1 -> 1.36.0 → https://git.io/fj620
Guest68314 has quit [Ping timeout: 244 seconds]
<deech> Hi, is it possible to write scripts in something other than Bash or does that invalidate all existing infrastructure wrt buildInputs etc?
hyper_ch2 has joined #nixos
ilmu has quit [Ping timeout: 252 seconds]
Guest68314 has joined #nixos
<hyper_ch2> new irc client always gives me disconnect :(
<lordcirth> deech, scripts for what purpose?
asheshambasta_m has joined #nixos
<tazjin> has anyone here spent some time on the combination of Nix & Bazel? Getting things from Nix into a Bazel build is easy, the other way around not so much ..
hyper_ch2 has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @eadwu opened pull request #64309 → clight: init → https://git.io/fj62w
Henson has joined #nixos
hyper_ch2 has joined #nixos
mexisme_ has joined #nixos
<Henson> hello everyone, I want to use a programatically-generated list inside of a mkDerivation buildCommand string. I'm assuming I need to define the list outside of the buildCommand string and then refer to it inside? If so, how can I convert a list of strings to the string representation of it?
<clever> > lib.concatStringsSep "\n" [ "a" "b" "c" ]
<{^_^}> "a\nb\nc"
<clever> > lib.concatMapStringsSep "\n" (n: "str is ${n}") [ "a" "b" "c" ]
<{^_^}> "str is a\nstr is b\nstr is c"
Ralith_ has quit [Remote host closed the connection]
Ralith_ has joined #nixos
<clever> Henson: ^^
mexisme_ has quit [Ping timeout: 272 seconds]
Drakonis has joined #nixos
orivej has joined #nixos
drakonis_ has quit [Ping timeout: 258 seconds]
lambda-11235 has joined #nixos
ambro718 has joined #nixos
<Henson> clever: awesome, thank you
<ambro718> I want to use ZFS with encryption and two mirrored disks. Since I also want swap/hibernation that rules out ZFS-level encryption. Swap should not be mirrored. So I am thinking cryptsetup directly on each disk, and partitions inside that, one disk has ZFS and swap inside and the other has just ZFS, and the two ZFS partitions are mirrored on ZFS level.
<ambro718> But how can I ensure that the two disks have both the same cryptsetup passphrase, and that I only enter it once during boot?
<ambro718> Another thing I want is to be able to boot off any disk in case one dies.
<{^_^}> [nixpkgs] @danbst merged pull request #63954 → consul: 1.4.2 -> 1.4.4 -> 1.5.2 → https://git.io/fjKeH
<{^_^}> [nixpkgs] @danbst pushed 4 commits to master: https://git.io/fj62D
<{^_^}> [nixpkgs] @danbst closed pull request #62921 → consul: 1.4.2 -> 1.5.1 → https://git.io/fjgT6
Drakonis has quit [Ping timeout: 252 seconds]
<clever> ambro718: when you create the luks volumes, just give both the same passphrase
<clever> ambro718: and when nixos boots, it will automatically reuse the passphrase on each device
<Netsu> clever: >>> did you try nix-hash --flat ? <<< Looks like it don't like directories
<ambro718> clever: really?
<clever> ambro718: yes
<ambro718> Great, thanks.
<clever> Netsu: yeah, --flat is file only, fetchurl is also limited to files
<{^_^}> [nixpkgs] @vdemeester closed pull request #63353 → podman: 1.3.2 -> 1.4.1 → https://git.io/fjaPO
<Netsu> clever: is there any way to fetch the directory locally. I use fetchurl with hash from 'nix-prefetch-url' but looks like it creates just empty one. On other hand 'requireFile' throw an error: https://gist.github.com/Pitometsu/c61a2e95fc97d618aa87eaaf08fe8f5f
<clever> Netsu: the whole point of requireFile is to throw an error, that explains how to add the file with nix-prefetch-url or nix-store --add-fixed
<clever> Netsu: let me double-check something...
rfold has joined #nixos
<clever> Netsu: what did you set hashMode to when calling requireFile, and is the target a file or directory?
hyper_ch2 has quit [Remote host closed the connection]
<Netsu> oh, funny, thanks. Will try to load it before nix building then, thanks
hyper_ch2 has joined #nixos
<{^_^}> [nixpkgs] @danbst pushed commit from @nh2 to release-19.03 « consul: 1.4.1 -> 1.4.4 »: https://git.io/fj627
<Netsu> clever: nix-hash --type sha256 --base32 "$(ARTIFACT_PATH)" # it's a directory
<{^_^}> [nixpkgs] @markuskowa merged pull request #64294 → hy: 0.16.0 -> 0.17.0 → https://git.io/fj68M
<{^_^}> [nixpkgs] @markuskowa pushed 3 commits to master: https://git.io/fj625
<clever> Netsu: then you need hashMode = "recursive"; on the requireFile call
zacts has quit [Quit: WeeChat 2.4]
<Netsu> clever: And at derivation: `artifact = fetchurl { url = replaceStrings ["\n"] [""] (readFile ./url); sha256 = replaceStrings ["\n"] [""] (readFile ./sha256); };`
<Netsu> clever: `fetchurl` -> `requireFile` ofc
<clever> Netsu: the name of the derivation has to match the name of the thing your adding as well
hyper_ch2 has quit [Remote host closed the connection]
<Netsu> clever: so I need to load it manually anyway, and requireFile at derivation then, is it correct?
<clever> Netsu: yes
<clever> and requireFile just gives an errror explaining how to load it manually
<Netsu> clever: thanks!
hio has joined #nixos
Ralith_ has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @kalbasit merged pull request #64163 → smimesign: init at v0.0.13 → https://git.io/fjKQU
<{^_^}> [nixpkgs] @kalbasit pushed 3 commits to master: https://git.io/fj62j
asheshambasta_m has quit [Quit: Leaving.]
asheshambasta_m has joined #nixos
asheshambasta_m has quit [Client Quit]
bgamari has quit [Ping timeout: 252 seconds]
ilikeheaps has joined #nixos
sigmundv has joined #nixos
<{^_^}> [nixpkgs] @joachifm pushed 3 commits to master: https://git.io/fj6at
Miyu-chan has quit [Ping timeout: 245 seconds]
bgamari has joined #nixos
Rusty1 has joined #nixos
<Henson> sometimes when I run nixos-rebuild after changing the configuration file it needs to download certain missing dependencies like patchelf, gnumake, or other things. Do these tools belong to a certain suite that can be installed? Every time I garbage collect it has to re-download these things.
<ivan> Henson: see if keep-outputs = true in nix.extraOptions keeps them around?
knupfer has joined #nixos
<ivan> if they're still not retained maybe you can add them to systemPackages?
bgamari has quit [Ping timeout: 258 seconds]
<Henson> things like gnumake-4.2.1 stdenv-linux patchelf-0.9
linarcx has joined #nixos
mara[m] has left #nixos ["User left"]
<ambro718> Any idea why the google-chrome binary is 141 MB but the chromium binary is 231 MB ?
andreas303 has quit [Ping timeout: 260 seconds]
Tucky has quit [Quit: WeeChat 2.5]
<maurer> The released chrome binaries have a lot of postprocessing done on them to keep binary size down
linarcx has quit [Client Quit]
knupfer has quit [Remote host closed the connection]
iqubic has joined #nixos
<maurer> I think we strip them, but that's about it
knupfer has joined #nixos
andreas303 has joined #nixos
amakthel has joined #nixos
linarcx has joined #nixos
yuken has quit [Ping timeout: 248 seconds]
Mateon2 has joined #nixos
<iqubic> I'm in deep trouble. I have somehow run out of space on my harddrive. I tried running nix-collect-garbage, but that failed because there wasn't enough space to set permissions on /nix/var/nix/per-user. What should I do?
<lordcirth> iqubic, what filesystem?
<lordcirth> normally only fancy filesystems like ZFS or Btrfs completely jam when full
Mateon1 has quit [Ping timeout: 272 seconds]
Mateon2 is now known as Mateon1
<lassulus> nix-collect-garbage jams when the harddrive is full
<iqubic> ZFS
<slabity> iqubic: Do you have any temp directories that are on your drive? Sometimes /tmp or ~/.cache contain a ton of data
<lordcirth> iqubic, ok. So try to find a file of at least a few MB that you can delete. Then "echo > file"
<lordcirth> An rm requires a metadata allocation, but truncating it doesn't.
<LnL> doesn't nix create a reservation file now?
<iqubic> I more than 100 files were deleted from /tmp.
<lordcirth> I'm not too familiar with NixOS, it might. I just know how to unjam a full ZFS.
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/4363214bd7c (from 9 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
<iqubic> Here's what I'm actually going to do to save space: delete windows 10 from my machine. I haven't openned Windows in 6 months.
yuken has joined #nixos
<LnL> this usually also helps nix-store --gc --max-freed 1m
<iqubic> But that's a big task that I donåt want to deal with right now.
<LnL> with increasing values so it's not one huge delete
<iqubic> LnL: I still don't have enough space to do that.
<LnL> yeah, with zfs you'll have to delete something first if you didn't set quota
<iqubic> Setting permnssions fails.
<iqubic> I deleted everything from /tmp and !/.cache.
<iqubic> ~/.cache I mean
<lordcirth> iqubic, but do you have snapshots of it?
<lordcirth> If you do, you won't actually free any space
<iqubic> perhaps. Hol do I delete snapshots?
freeman42x has joined #nixos
bgamari has joined #nixos
<iqubic> How do I delete ZFS snapshots?
yuken has left #nixos ["Leaving"]
zacts has joined #nixos
shabius_ has quit [Quit: Leaving]
<ambro718> How would I achieve having mirrored boot partitions on two disks, so I can boot from the other disk of one fails?
iqubic has quit [Remote host closed the connection]
Jackneill has quit [Remote host closed the connection]
iqubic has joined #nixos
<iqubic> So, what can I do here?
dm9 has quit [Quit: WeeChat 2.5]
<lordcirth> iqubic, first, 'zfs list -t snap'
<lordcirth> Then, if you have some which you wish to destroy, you can run 'zfs destroy <name>'
<{^_^}> [nixpkgs] @eraserhd opened pull request #64310 → kak-ansi: init at 0.2.0 → https://git.io/fj6aw
<iqubic> There are a ton of snapshots. How do I destroy them all?
shabius has joined #nixos
<lordcirth> iqubic, well, first look for ones that are actually using much space, the "USED" column. Quite likely deleting the biggest one will be enough.
<iqubic> I want to destroy all the snapshots.
<Ralith> how does NixOS expose its certificate store to applications?
<makefu> Ralith: SSL_CERT_FILE
<lordcirth> iqubic, "zfs destroy -rnv storage@%" where "storage" is the name of the filesystem the snaps belong to. If the output looks fine, remove the -n.
<Ralith> makefu: that doesn't seem to be set in a user environment, though?
<makefu> correct, to get this i set environment.variables.SSL_CERT_FILE = "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt";
<iqubic> Now I have enough space to delete stuff.
<makefu> Ralith: but /etc/ssl/certs is also populated in nixos
<makefu> so maybe some fallback mechanisms kick in
<lordcirth> iqubic, excellent. Once all the garbage collection is done, you may want to examine your auto-snapshot settings and get it to delete really old ones.
<{^_^}> [nixpkgs] @michaelpj opened pull request #64311 → mathoid: init at 0.7.2 → https://git.io/fj6aP
<Ralith> ahah, thanks
<iqubic> Lordcirth, I have to go now, but I will look into that.
<Henson> ivan: thanks for the suggestion, I think keep-outputs is doing the trick
<kraem> anyone running gnome-keyring? my keyring gives me a gui asking for my gpg pass but never when i try to ssh. SSH_AUTH_SOCK is not set on startup. any clues?
<Ralith> kraem: I'd try using home-manager to configure it
judson_ has joined #nixos
<iqubic> also, I'm going to need to mess with my partitions because I'm planning Windows10from my system, which is /dev/sda2 and /dev/sda3. I think. I'll be doing the
<iqubic> checks before deleting a filesystem
<iqubic> But that's a quest for another time.
judson has quit [Read error: Connection reset by peer]
iqubic has quit [Remote host closed the connection]
wildtrees has joined #nixos
alp has quit [Ping timeout: 252 seconds]
<mkaito> what would a derivation look like that generates a valid profile? I was looking at Hail, and while I'm not planning to use it, it wants a jobset that generates a user profile which it then pulls. Other than imperatively calling nix-env, how?
deech has quit [Ping timeout: 272 seconds]
<{^_^}> Channel nixos-19.03 advanced to https://github.com/NixOS/nixpkgs/commit/b6aaee6d51f (from 7 hours ago, history: https://channels.nix.gsc.io/nixos-19.03)
<ivan> ambro718: stripping chromium appears to take it down to 175MB
<ambro718> Interesting, I'll look into why that doesn't happen automatically.
<ambro718> (generally, nix (actually mkDerivation) does strip binaries by default)
Myhlamaeus1 has joined #nixos
bakakuna has joined #nixos
arjen-jonathan has joined #nixos
<mkaito> do system users have a user profile?
iqubic has joined #nixos
<iqubic> So I've 'een running nix-collect-gar'age. It has been deleting stuff for the past half hour.
<iqubic> Is that normal?
<mkaito> doesn't sound unusual if you haven't done it in a while (or ever)
bgamari has quit [Quit: ZNC 1.7.2 - https://znc.in]
bgamari_ has joined #nixos
<lordcirth> iqubic, hard drive or SSD?
<jD91mZM2> So toPath isn't what one expects... How does one convert a string to a path in NixOS? `./. + string` misses a leading slash, `./. + ("/" + string)` works for relative paths, but not for absolute ones :|
bgamari_ has quit [Remote host closed the connection]
<jD91mZM2> In Nix**
<iqubic> Its 'een like 2 months since I last did this.
<mkaito> slow hard drive?
<iqubic> SsD
<mkaito> huh
<mkaito> well let me know how much it frees when its done
<iqubic> 14188 store path deleted 3902.06MiB saved.
<mkaito> that's not even that much
<mkaito> your ssd sucks :P
<iqubic> Does it realuyw
<mkaito> apparently
<iqubic> *really?
bgamari has joined #nixos
<mkaito> I don't think mine needs half an hour to collect 4 gigs
<iqubic> Hard linking is saving *e 1.74.42 MiB
<iqubic> Is that odd?
<mkaito> not really. your drive is just somewhat slow.
<lordcirth> iqubic, 1.74.42 ? what?
<iqubic> 1074.42 MiBs being saved by hard linking
<iqubic> I hate thir keyroard.
<iqubic> Using my phone to do irc, as I am on a train with no wifi
<mkaito> yeah phone keyboards are satan
<clever> jD91mZM2: / + "/foo"
<iqubic> So, when my drive was full, I tried editing my configuration.nix. That didn't end well.
<iqubic> My configuration.nix is now empty
<jD91mZM2> clever: If you mean `/. + string`, that only works for absolute paths
<iqubic> How do I load a ZFS snapshot?
<clever> jD91mZM2: why are you trying to generate paths from strings?
<clever> iqubic: what filesystem is the snapshot made from?
<lordcirth> iqubic, didn't you just delete them all?
<jD91mZM2> clever: I basically just want to normalize a path. I'm parsing the path from a TOML file because... reasons
<iqubic> no I only deleted two that were 53 MB each.
<iqubic> I still have the latest snapshots.
<clever> iqubic: is the root fs dataset snapshots?
ambro718 has quit [Quit: Konversation terminated!]
<iqubic> yes I have a snapshot of the file I want to recover.
<clever> iqubic: ls -l /.zfs/snapshots/
<clever> iqubic: oops, just /.zfs/snapshot/
<iqubic> I have verified that the snapshot exists with ZFS list -t snapshot.
<clever> iqubic: all snapshots are auto-mounted under /.zfs/snapshot/
<iqubic> I don't have wifi right now, so I can't paste any command outplts now.
<jD91mZM2> clever: Ok so for some reason I thought it would be a good idea to let a user of some nix expressions override the source using... TOML. I wanted to make it as easy as possible, but eh I can just use nix.
<clever> iqubic: you can just poke around in /.zfs/snapshot/ and find your old configuration.nix
<iqubic> Oh, so I can fetch the files I need?
<clever> iqubic: yes
<lordcirth> iqubic, yeah, just copy it out and put it back where you want ti
amakthel has quit [Ping timeout: 250 seconds]
<iqubic> cool. glad I didn't delete all snapshots
<mkaito> I reccommend git
<iqubic> Also, maybe I should put my configs on github.
<clever> mkaito: zfs snapshots are taken every 15mins automatically, so you dont have to obsessively make commits
<mkaito> I didn't say anything about obsessions :D
<iqubic> ZFS tells me I have some snapshots of /home, but /home/iqubic is empty in the snapshots
<iqubic> What can I do?
v88m has quit [Read error: Connection reset by peer]
v88m has joined #nixos
<Henson> is there a way to have multiple profiles put into your environment? For example I'd like to have the default profile, but another one with additional software overlaid together.
<iqubic> 'ecayse one important config file has 'een deleted, and I can't seem to recover it.
<iqubic> *because
<iqubic> I'm reallp really concerned.
andreas303 has quit [Remote host closed the connection]
Shoubit has quit [Ping timeout: 248 seconds]
iqubic has quit [Remote host closed the connection]
alp has joined #nixos
iqubic has joined #nixos
hoijui has quit [Ping timeout: 252 seconds]
<iqubic> So I don't know what to do.
psyanticy has quit [Quit: Connection closed for inactivity]
<mkaito> Henson: AFAIK you only have one profile active at any given point in time. You can switch to other profiles on the fly using nix-env though.
<Henson> mkaito: ok, thank you
<mkaito> maybe there's some buildEnv magic that can compose multiple profiles into one
<iqubic> My entire WM config has vanish
<mkaito> iqubic: on linux, running completely out of disk space is *really* bad.
<iqubic> Because I did a foolish thing.
andreas303 has joined #nixos
<iqubic> I know.
<mkaito> it's very deep in do-not-want territory, sadly
<iqubic> ZFS claims I have snapshots of /home, 'ut I can't seem to find those configs.
<mkaito> I've never used ZFS, so no idea about that
<Henson> iqubic: if zfs says you have snapshots, you could clone one of the snapshots and take a look at what's inside
<Henson> iqubic: zfs clone path/to/dataset@snapshot path/to/clone
<iqubic> how do I clone a snapshotw
<Henson> iqubic: and then you'll be able to see what's in the snapshot. A clone is a RW copy of a snapshot.
<iqubic> ah, I assume first arg is src, and second is destw
<clever> Henson: no need to clone a snapshot to look at it
<clever> mount -t zfs path/to/dataset@snapshot /mnt/
<Henson> iqubic: just "man zfs" and read up on "zfs clone"
jb55 has quit [Ping timeout: 260 seconds]
<Henson> clever: oh really? Is that a read-only mounting, then?
<clever> yeah
<clever> but if path/to/dataset is mounted at /path, you can also just look in /path/.zfs/snapshot/snapshot
<mkaito> this is probably not a great time to ask... but how's ZFS on Linux these days? :P
<clever> and it will auto-mount it (read only) for you
<Henson> mkaito: I gave up on ZFS on linux a couple years ago and switch to BSD, and have never looked back.
<mkaito> nice
<clever> Henson: the .zfs directory is weird, is exists, but isnt visible in any directory listing
<Henson> mkaito: but that doesn't answer your question, I guess
bakakuna has quit [Ping timeout: 248 seconds]
bakakuna1 has joined #nixos
<Henson> clever: wow, I'm learning things about ZFS on FreeBSD in the #nixos channel :-)
<ejpcmac> mkaito: It seems that ZFS on Linux is good enough for the FreeBSD project to switch to it instead of the current Illumos port.
domogled has quit [Ping timeout: 258 seconds]
<iqubic> Clever, you said you said I could just look at /.zfs to find the snapshots. I found the snapshots. The three I looked at had a /home/iqubic folder, but all three were empty.
<clever> iqubic: is /home/iqubic its own dataset in zfs?
<iqubic> that is what concerns me.
<lordcirth> iqubic, can you pastebin 'zfs list' please?
<clever> iqubic: then you want /home/iqubic/.zfs/
<clever> each filesystem has its own snapshots and its own .zfs
<iqubic> Oh. Yeat, that would solve my issues.
<Henson> clever: holy crap, I never knew about the .zfs directories. That's amazing!
<Henson> wow, I'll never have to create a clone to look at a snapshot again.
bakakuna1 is now known as bakakuna
<clever> Henson: even more fun, you can use mkdir in the snapshot dir, to create snapshots
<iqubic> That solves my issfe Clever.
adamantium has joined #nixos
<iqubic> *issue.
<iqubic> All files have been restored.
<Henson> clever: on my system it says operation not permitted. There's probably a zfs option somewhere that affects that.
<iqubic> clever++
<{^_^}> clever's karma got increased to 139
<Henson> clever++
<{^_^}> clever's karma got increased to 140
<clever> Henson: you may need root
<iqubic> Thanks for the help clever.
<{^_^}> [nixpkgs] @romildo opened pull request #64314 → shades-of-gray-theme: 1.1.7 -> 1.1.8 → https://git.io/fj6V4
<iqubic> I now don%t have to recreate my configuration.nix or my WM config.
kraem has quit [Ping timeout: 258 seconds]
<mkaito> I recommend backups. I'm told that backups good unit.
<iqubic> I am super glad that I have backups.
jb55 has joined #nixos
<iqubic> But I do want to configre how many backups are saved.
kraem has joined #nixos
<clever> each option is the number of backups to keep at that level
<clever> zfs list -t filesystem -o name,used,referenced,logicalused,logicalreferenced,written,usedbysnapshots,usedbydataset,refcompressratio,compressratio,compression,dedup
<Henson> clever: I'm not even able to do that as root. I'll poke around and see what I can find out.
<clever> this will list every filesystem, and how much its using with snapshots
<iqubic> What does that big fancy zfs list command do?
adamantium has quit [Remote host closed the connection]
hmpffff has quit [Quit: Bye…]
<clever> NAME USED REFER LUSED LREFER WRITTEN USEDSNAP USEDDS REFRATIO RATIO COMPRESS DEDUP
<clever> naspool/root 308G 291G 357G 330G 21.8M 16.9G 291G 1.32x 1.36x lz4 on
<clever> in this case, i have 16gig worth of snapshots on naspool/root
<iqubic> I see.
<clever> [root@nas:/nas/iohk]# zfs list -t snapshot -r -o name,used,refer,written naspool/root
<clever> this then shows every snapshot on it
<iqubic> Ah.
<clever> used is how much you get back from deleting a single snapshot
<clever> due to refcounts, some blocks may be used by multiple snapshots, and used wont count those
<clever> the written and refer columns are a hint as to which ranges you want to get rid of
<clever> [root@nas:/nas/iohk]# zfs destroy -v naspool/root@zfs-auto-snap_hourly-2019-07-03-17h00%zfs-auto-snap_hourly-2019-07-04-15h00
<clever> will reclaim 2.40G
<clever> and a % will let you delete every snapshot between a and b, inclusive
<clever> [root@nas:/nas/iohk]# zpool get freeing
<clever> naspool freeing 2.17G -
<clever> and behind the scenes, zfs has to GC the entire pool
<clever> so it will take a few minutes to actually get the 2gig back
<iqubic> next thing I want to do. Is delete windos 10 from my ssd anø gain more space there.
zacts has quit [Quit: WeeChat 2.4]
iqubic has quit [Remote host closed the connection]
zimbatm_ has joined #nixos
zimbatm has quit [Quit: issued !quit command]
zimbatm_ is now known as zimbatm
<hyper_ch> you can always delete snapshots and free space using that in zfs
<clever> hyper_ch: i think half the problem, is that configuration.nix failed to save due to a lack of space
<clever> and he needed the snapshot to recover the file
<hyper_ch> clever: wasn't so far yet with zfs
<{^_^}> #64306 (by sjau, 3 hours ago, open): ZFS: Adding ZED configuration options
<hyper_ch> with my snapshotting tool I do get notified when available space drops below a specified limit
stepcut has joined #nixos
<clever> hyper_ch: nice
<hyper_ch> haven't tested the pushbullet tool yet... I just assume it works when the zed settings are enabled :)
<hyper_ch> but my main reason was to get notified when scrub finds errors or a pool as other issues
<Henson> is there a way to get the outpath of a derivation? I know inside a mkDerivation you can use $out, but can you do it elsewhere?
<hyper_ch> clever: do you know a smart way to backup the zfs settings? and restore them?
<clever> hyper_ch: i believe the options on a dataset can carry over when you send
<clever> send | recv them to another box
<hyper_ch> it doesn't seem like they do
<clever> hyper_ch: check the man page
<Henson> for example, in buildEnv
<hyper_ch> clever: you're my smart man page ;)
<hyper_ch> or ni-powered man page
<clever> Henson: all derivations have a $out
<clever> Henson: buildEnv is just a perl script, that creates symlinks in $out
<Henson> clever: say I want to do something like buildEnv {name = "test"; paths = [$out foo bar];}
<clever> Henson: that doesnt make any sense, you want the $out of what?
<hyper_ch> so, off to bed
day|flip has joined #nixos
leocp1 has joined #nixos
<day|flip> how do i go with disable system servies. my laptop taking forever: 2min 874ms systemd-udev-settle.service
<day|flip> I trying to figure how to mask it.
<manveru> day|flip: there's a timeout setting
<manveru> TimeoutStartSec it's called
leocp1 has quit [Quit: Lost terminal]
<manveru> but it seems strange that it takes that long... did you look at its logs?
<day|flip> na. i just figure how to do in configuration.nix
___laika has joined #nixos
<day|flip> this was posted like a month ago
<day|flip> same issue i ran into
<day|flip> so my little temp around the issue
<clever> systemd-udev-settle.service came from the systemd package directly, so it cant be modified with systemd.services.foo
<day|flip> systemd.services.systemd-udev-settle.enable = false;
<___laika> what would people say is the most idiomatic way to pin nixpkgs in a project? i feel like i have seen mixed recommendations between using `nix-prefetch-git/url` in the command line to generate a json file, and having the url and hash in code to pass to `builtins.fetchTarball`, and i cant tell if there's a meaningful difference between the two
emptyflask has quit [Quit: WeeChat 2.4]
<manveru> ___laika: the json is useful if you're using it with other tools as well, or generate it via CI or something
<manveru> i don't think there's a real convention...
<manveru> i have a little script that just spits out the nix code for latest nixpkgs so i paste it in there...
<noonien> hello folks
<noonien> are there any examples i can look at for using imports in overlays to extend them?
<noonien> i have one main overlay.nix, in which i want to import multiple others
xcthulhu has joined #nixos
<{^_^}> [nixpkgs] @markuskowa merged pull request #64291 → gmsh: 4.3.0 -> 4.4.0 → https://git.io/fj68z
<{^_^}> [nixpkgs] @markuskowa pushed 2 commits to master: https://git.io/fj6VA
shibboleth has joined #nixos
wildtrees has quit [Quit: Leaving]
<Henson> is there a way to find what packages (or outputs at least) were specified in environment.systemPackages for a particular system profile?
<mkaito> `config.environment.systemPackages`?
<clever> Henson: nix-store -q --references /run/current-system/sw/
bakakuna has quit [Ping timeout: 258 seconds]
<nervengift> is there a good example of a package that supports plugins which it expects in a certain directory? I managed to write a derivation that builds the plugin (rofi-blezz) as a shared lib but obviously I can't install it to the original program's directory in the nix store...
<clever> nervengift: generally, the package should accept an env var pointing to a dir of plugins, and then you use buildEnv to merge all the plugins together, and then make a shell script wrapper around the original binary, to set that env var
<Henson> clever: thank you
<nervengift> clever: do you know of a good example?
<clever> nervengift: firefox and chrome both do that
<nervengift> thank you! will have a look
stranger___ has quit [Quit: Connection closed for inactivity]
mexisme_ has joined #nixos
<{^_^}> [nixpkgs] @chris-martin opened pull request #64315 → docs: fix steam-run expression → https://git.io/fj6wk
<{^_^}> [nixpkgs] @zimbatm merged pull request #64298 → asciidoctor: include the asciidoctor-epub3 gem → https://git.io/fj60T
<{^_^}> [nixpkgs] @zimbatm pushed 6 commits to master: https://git.io/fj6wL
Miyu-chan has joined #nixos
ambro718 has joined #nixos
Miyu-chan is now known as Guest5788
<ambro718> How do I configure mdadm RAID in nixos config?
civodul has joined #nixos
MmeQuignon has quit [Quit: WeeChat 2.4]
knupfer has quit [Quit: knupfer]
knupfer has joined #nixos
WilliButz has quit [Quit: WeeChat 2.4]
wfranzini has joined #nixos
<Yakulu> ambro718 : not tried myself but a lead is here https://gist.github.com/seanjensengrey/b69ffddbc668e127b1946d4c147e0bcb
WilliButz has joined #nixos
WilliButz has quit [Client Quit]
ilmu has joined #nixos
WilliButz has joined #nixos
Neo-- has quit [Ping timeout: 272 seconds]
stepcut has quit [Ping timeout: 258 seconds]
v88m has quit [Quit: Quit]
v88m has joined #nixos
Philonous has quit [Quit: ZNC - http://znc.in]
Drakonis has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace merged pull request #64061 → ldc: 1.15.0 -> 1.16.0 → https://git.io/fjKEU
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fj6wW
stepcut has joined #nixos
drakonis1 has joined #nixos
Okinan has joined #nixos
thc202 has quit [Ping timeout: 250 seconds]
ambro718 has quit [Quit: Konversation terminated!]
polman has quit [Ping timeout: 248 seconds]
ilmu has quit [Read error: No route to host]
polman has joined #nixos
phreedom_ has joined #nixos
phreedom has quit [Ping timeout: 260 seconds]
xcthulhu has quit [Quit: xcthulhu]
ericsagnes has quit [Ping timeout: 248 seconds]
linarcx has quit [Quit: WeeChat 2.5]
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Ping timeout: 245 seconds]
jackdk has joined #nixos
xcthulhu has joined #nixos
ericsagnes has joined #nixos
<kraem> Ralith: thanks - have been looking into home-manager but thought i'd learn "vanilla" nixos configurations first but cannot seem to solve the ssh-agent/gpg-agent/gnome-keyring situation so think i'll give it a try :)
<Ralith> I don't think plain nixos tries very hard for user-level stuff
o1lo01ol1o has joined #nixos
alex`` has quit [Ping timeout: 248 seconds]
iqubic has joined #nixos
WilliButz has quit [Quit: WeeChat 2.5]
WilliButz has joined #nixos
Guest68314 has quit [Quit: WeeChat 2.4]
<iqubic> Alright... Time to free up a ton of space by deleting all of Windows 10 from my system.
<iqubic> How do I do that?
<slabity> iqubic: Resize your partition?
<iqubic> I haven't used Windows 10 in like a year.
<iqubic> slabity: First I need to figure out which partitions Windows 10 is using, then I need to resize the current partitions.
<slabity> Funny. I was just setting up a Windows 10 VM
<slabity> You can use lsblk to find what each partition is.
<iqubic> And I'm tearing down my Windows 10 + Nixos dual boot, because Windows 10 is taking up a butt load of space and don't like that.
wfranzini has quit [Remote host closed the connection]
nouserpass has joined #nixos
<iqubic> http://dpaste.com/0Z4VN5X Yeah... That's not helping much.
<clever> iqubic: blkid /dev/sd*
<clever> (as root)
<clever> 3, 4, and 5 are all windows things
<nouserpass> Is there anyway to recover a nixos install where you didn't set the password of the user?
<slabity> You have a lot of partitions.
<clever> nervengift: add single to the kernel params?
kraem has quit [Ping timeout: 268 seconds]
<slabity> But I'm guessing either the sda3 or sda6 contains Windows. Just need to find out which one is your root
<iqubic> Here
<slabity> NTFS filesystems can be deleted
<clever> assuming you have copied all files you want to keep off of them
kraem has joined #nixos
gagbo has joined #nixos
<iqubic> here's what I know: sda1 is esp boot. sda5 is a partition I made for sharing data between the two OSes. sda6 is NixOS. sda7 is swap.
<iqubic> I have no clue what 2-4 are.
<slabity> 2 is a reserved partition that Windows uses for some stuff
<iqubic> What about 3 and 4?
<clever> iqubic: have you tried just mounting them and looking inside them?
<clever> mount /dev/sda4 -o ro /mnt/
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/3df56e99822 (from 9 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<iqubic> I can do that?
<clever> you can mount 5 (which is ntfs), so you can also mount 3&4 as well (they are also ntfs)
<slabity> 3 is the Windows recovery partition and 4 is the actual Windows partition
<clever> sda3 is 120gig, sda4 is 470mb
<pie_> infinisil, can you look at https://github.com/NixOS/nixpkgs/pull/63871 again? I think I fixed everything a few days ago.
<{^_^}> #63871 (by deliciouslytyped, 1 week ago, open): lib: add mapDir and mapDirFiles
<clever> i think its the other way around
<iqubic> So 2-4 can be deleted.
<iqubic> Good to know.
<iqubic> How do I delete a partition?
<clever> iqubic: run gparted
hellrazor has joined #nixos
<nouserpass> I got around my issue by going to an older generation, so thanks NixOS ;)
<iqubic> I don't have gparted installed.
arjen-jonathan has quit [Ping timeout: 252 seconds]
<pie_> nouserpass, yay. id look into setting up a recovery boot as well if i was you. ( clever i still think we should have an option for enabling this :v
knupfer has quit [Ping timeout: 252 seconds]
<pie_> havent had time to look at it tho
<iqubic> And it turns out that I don't have enough space on my drive to install gparted either.
<iqubic> This is why I'm looking to free up some space.
<{^_^}> [nixpkgs] @aij opened pull request #64316 → nixos/zfs: enable requestEncryptionCredentials by default → https://git.io/fj6wd
<pie_> iqubic, have you tried to do a garbage collection
<iqubic> I have.
<iqubic> I did that earlier today.
<clever> iqubic: and what happens when you GC?
<slabity> pie_: Would that just be setting up a new system profile and adding it to the bootloader?
<iqubic> Well, I can't garbage collect any more.
<iqubic> error: could not set permissions on '/nix/var/nix/profiles/per-user' to 1777: No space left on device
<pie_> slabity, idk clever has some snippet i cannibalized from him :P
<clever> iqubic: nix-collect-garbage --max-freed 1024
<clever> iqubic: you may need to destroy at least one snapshot first to allow that to run
<pie_> what was the thing for makin hardlinks
<iqubic> I did a garbage collection, and then I ran a nixos-rebuild. and then now I'm screwed again.
<slabity> ln
<pie_> does that work without extra space?
<pie_> nix store optimise or something
<slabity> It takes up some metadata stuff
<clever> iqubic: you may need to GC more, enough to be able to install things, or delete some snapshots
<pie_> clear journald
<clever> zfs list -t filesystem -o name,used,referenced,logicalused,logicalreferenced,written,usedbysnapshots,usedbydataset,refcompressratio,compressratio,compression,dedup
<clever> iqubic: can you pastebin the output of this?
<pie_> deleting some journald stuff is usually my go-to if i need to get a few kilobytes (or lots more)
<iqubic> How do I do that?
<clever> iqubic: journalctl --vacuum-size=1024
<pie_> ^ if you dont need any of your old system logs
<pie_> (which you probably dont)
<iqubic> clever: http://dpaste.com/2WVF5SQ
rfold has quit [Ping timeout: 268 seconds]
<pie_> so, things to look at: clearning journald logs, garage collection (you did this), optimising the nix store, looking for garbage collection roots you dont care about anymore
<pie_> actually do we not have a wiki page that covers all this already?
<clever> iqubic: you have 32gig worth of snapshots for /home
<clever> iqubic: what does `zfs list -t snapshot -r -o name,used,refer,written latitude-tank/home` output?
* pie_ skims it
<pie_> dunno how up to date or good it is tho
<iqubic> clever: http://dpaste.com/2Y7BX7J
<clever> iqubic: you can get 2gig back by doing `zfs destroy -v latitude-tank/home@zfs-auto-snap_monthly-2019-03-01-15h03`
<iqubic> This is what the default settings for storing snapshots gives you.
<clever> and another 7gig if you drop the snapshots from april and may
MmeQuignon has joined #nixos
<pie_> or
<pie_> just enough space to install gparted ;P
<iqubic> I'm installing gparted now.
<iqubic> Well, something isn't right here.
jb55 has quit [Quit: jb55]
Willi_Butz has joined #nixos
<iqubic> gparted isn't showing me any of my partitions.
<iqubic> Just one big rectangle labelled /dev/sda
m0rphism has quit [Ping timeout: 268 seconds]
iqubic has quit [Remote host closed the connection]
iqubic has joined #nixos
<iqubic> See that.
<iqubic> So I'm really really not sure what to do here.
jb55 has joined #nixos
<clever> iqubic: zfs is confusing gparted, and it thinks the entire disk is zfs
<iqubic> Yes, that's right.
<clever> iqubic: youll want to use `fdisk /dev/sda` then
<iqubic> I see.
<iqubic> So which partitions shall I delete?
<iqubic> 2-4 inclusive?
<clever> probably
<iqubic> Can you just verify that for me real quick?
<clever> yeah, that looks right
xcthulhu has quit [Quit: xcthulhu]
<iqubic> Alright... three more tasks left.
shibboleth has quit [Quit: shibboleth]
Willi_Butz has quit [Quit: WeeChat 2.5]
<iqubic> 1. remove the Windows Bootloader from my /boot partition. 2. Remove Windows entries from my boot menu. 3. Resize my ZFS tank so that it takes up all the available space.
<iqubic> How do I do those things?
<clever> sda6 is at the end of the disk, it cant be resized to be bigger
<iqubic> Oh? So what should I do here?
<clever> and sda5 is in the way of using the whole disk up properly
<iqubic> I'm going to be deleting sda5.
<clever> now or later?
<iqubic> Now.
<iqubic> So what can I do here to give more space to Linux?
<clever> after its gone, you can create a new sda2, that takes up all of the space that you can
<clever> and then, ....
<iqubic> And then what???
<clever> zpool attach latitude-tank /dev/sda5 /dev/sda2
<clever> that will create a mirror, and automatically copy all data from sda5 to sda2
<iqubic> can't I just copy the file system from sda6 to sda2, and then delete sda6?
tmaekawa has joined #nixos
<clever> thats what attach will do
<iqubic> Ah Nice.
<clever> watch `zpool status` to see when its done
<clever> and then `zpool detach latitude-tank /dev/sda5` to un-mirror it, making sda2 the only part of the pool
<clever> thats just step one, which will move the entire system from the end of the disk to the start
<iqubic> How do I create a new partition with fdisk?
<clever> `n`
<iqubic> clever: step two is to go into a live environment and extend that partition, right?
<clever> dont need a live environment
<iqubic> I don't?
<clever> you can resize the partition while its in-use i believe
<clever> and the final step, is `zpool online -e latitude-tank /dev/sda2`
<clever> which will expand the vdev within sda2 to occupy the new space you gave it
<iqubic> I feel that I have to reboot because when I save the changes with fdisk, it gives me this message before closing down: http://dpaste.com/3MF4Y23
<clever> yeah, if it gives an error like that, youll need to reboot
<clever> but you dont need a livecd
<iqubic> Alright sounds good.
<iqubic> Before I reboot, I'd like to remove the windows bootloader from my esp partition.
<iqubic> How do I do that?
<clever> just find the windows specific files and delete them
<{^_^}> [nixpkgs] @jb55 opened pull request #64317 → purple-instagram: init at 2019-01-13 → https://git.io/fj6rI
<iqubic> And will that remove the entries from my boot menu too?
<clever> for that, you need efibootmgr
<clever> [root@system76:~]# efibootmgr -v
<iqubic> Oh? Do I?
<clever> iqubic: and check its man page
<iqubic> Can
<iqubic> Can't I just use os-prober?
<clever> thats not what os-prober does
<iqubic> Oh? What does os-prober do?
<clever> os-prober detects other OS's and adds them to the grub config
<clever> efibootmgr deals with efi vars that point to .efi files on the ESP
<iqubic> Ah. I see.
<clever> in theory (with a usable firmware), you can use efibootmgr entirely, and manage every OS in the firmware cfg
tmaekawa has quit [Quit: tmaekawa]
<clever> but, when you move a disk to a new machine, the motherboard wont know about it, so its already a fail :P
<clever> and you must boot via efi, to configure it to boot via efi!!
<clever> and many firmware lack a menu, and only support a single os, lol
<clever> some even ignore the efi vars, and only boot the windows efi file
<hexa-> removable firmware *shrug*
<clever> "it boots windows, ship it"
<clever> ive even heard of cases where you cant delete an efi var entry, if the ESP it mentions doesnt exist
<clever> so if you delete the ESP (or loose the disk), your motherboard is basically bricked :P
<iqubic> I'm not sure how to remove Windows from this list: http://dpaste.com/1GS1PSJ
<hexa-> takes one back to the times where rm -rf would purge your r/w mounted efi vars
<clever> iqubic: did you read the man page?
<iqubic> This command was run AFTER deleting the windows files from /boot.
<hexa-> or usage for that matter
<iqubic> clever: no. I haven't read the man pages.
<clever> iqubic: then read it
lambda-11235 has quit [Quit: Bye]
<iqubic> I think I want to use the -B option.
<clever> yes
<iqubic> I wish there was a --dry-run option here.
selfsymmetric-mu has quit [Remote host closed the connection]
<iqubic> So I could see what the results of running this command would be.
<hexa-> craft your commandline with due diligence, but after that you have to take a (rather small) leap
ddellacosta has quit [Ping timeout: 268 seconds]
<iqubic> Thank you all so much for your help here.
<iqubic> This is going rather well.
mexisme_ has quit [Ping timeout: 244 seconds]
<{^_^}> [nix] @edolstra pushed to master « Revert 82b7f0e840983879a510245903ff7c917276f65d, cd8bc06e8786018ddb16cea4cb10971b63d0efd2, c3db9e6f8fd06d691be04cdd95a6b… »: https://git.io/fj6rB
<{^_^}> [nixpkgs] @flokli opened pull request #64318 → gitlab-ce, gitlab-ee: 11.10.5 -> 11.10.8 → https://git.io/fj6rR
<{^_^}> Channel nixos-19.03-small advanced to https://github.com/NixOS/nixpkgs/commit/aef662d2eb5 (from 6 hours ago, history: https://channels.nix.gsc.io/nixos-19.03-small)
zacts has joined #nixos
ambro718 has joined #nixos
iqubic has quit [Remote host closed the connection]
iqubic has joined #nixos
adamantium has joined #nixos
<adamantium> Anyone have a home-manager example of how to symlink some of my dotfiles that are not supported by home-manager?
<{^_^}> [nixpkgs] @thomasjm opened pull request #64319 → Add Cling, the C++ interactive interpreter from the ROOT project → https://git.io/fj6rr
<iqubic> How do I delete older nixos generations?
<adamantium> I'm just looking for the nix to create some symlinks, basically
<iqubic> I think one reason I'm running out of space is because I have 42 older generations stored on my machine.
<iqubic> I only need the past 2 kept.
<clever> iqubic: `man nix-collect-garbage`
<gyroninja___> How do I avoid getting 200 errors when copying from cache.nixos.org?
day|flip has quit [Remote host closed the connection]
<clever> ,cache gyroninja___
civodul has quit [Remote host closed the connection]
<gyroninja___> I'm not using ipv6
<gyroninja___> I think the timeout might have to do with it trying to download big files when my internet is slow
<clever> gyroninja___: can you give more information about the errors your getting?
<gyroninja___> >warning: unable to download 'https://cache.nixos.org/nar/0pxbg0h25wf6d4mjwgalwd71wcynbnwqfhgidjryvpzwa7n7572x.nar.xz': HTTP error 200 (curl error: Timeout was reached); retrying in 252 ms
selfsymmetric-mu has joined #nixos
<gyroninja___> And after that error 9 while decompressing xz file
<gyroninja___> I don't think it actually retries
<clever> gyroninja___: the error 9 is because the stream to unxz ended in the middle of the file
<{^_^}> [nixpkgs] @worldofpeace merged pull request #64308 → vscode{,ium}: 1.35.1 -> 1.36.0 → https://git.io/fj620
<{^_^}> [nixpkgs] @worldofpeace pushed 5 commits to master: https://git.io/fj6r1
leothrix has quit [Remote host closed the connection]
<gyroninja___> Note that it timesout several minutes after the downloads have started
<gyroninja___> so I assume I'm just taking too long to download these files
leothrix has joined #nixos
<clever> gyroninja___: check with wireshark to see if its actualy sending data the whole time
<gyroninja___> okay
alex`` has joined #nixos
<gyroninja___> I'm seeing traffic with fastly
<gyroninja___> and when it timed out it stopped
mbrgm_ has joined #nixos
shabius_ has joined #nixos
mbrgm has quit [Ping timeout: 252 seconds]
<clever> gyroninja___: which end last sent a packet, and where any retries present?
mbrgm_ is now known as mbrgm
<iqubic> That's a lot of space saved: "52730 store paths deleted, 36181.37 MiB freed"
<gyroninja___> I'm not that well versed into how to use wireshark
<clever> gyroninja___: you generally want to right click the packets for this stream, and hit follow tcp stream to filter it
<gyroninja___> under statistics it right now shows Tx Bytes as 266M and Rx bytes as 6561k
shabius has quit [Ping timeout: 252 seconds]
<gyroninja___> I would assume Rx would be what I am recieving, so that would be weird
<clever> gyroninja___: you generally want to just look at the packets, you should see push packets from fastly, and ack packets going back for each one
<iqubic> clever: You got your arguments backwards in the command you gave me.
<clever> zpool attach [-f] [-o property=value] pool device new_device
<clever> iqubic: the man page says its that way around
<iqubic> Well, yeah. http://dpaste.com/1G26HKE
<clever> iqubic: but zfs may have named it differently, check `zpool status -v`
<clever> iqubic: the order is right, but zfs is calling sda5 something else
<iqubic> How do I parse this? http://dpaste.com/1ZZXA6V
<clever> iqubic: wwn-0x5001b444a630bdbc-part6 is the name of the device
<iqubic> why the hell???
<clever> iqubic: so you want `zpool attach wwn-0x5001b444a630bdbc-part6 /dev/sda2`
<clever> iqubic: thats the serial# for your drive
<clever> iqubic: zfs uses the names from `ls -l /dev/disk/by-id/` when it boots
Rusty1 has quit [Quit: Konversation terminated!]
mexisme_ has joined #nixos
<iqubic> getting closer to working: http://dpaste.com/2DVQZ4F
<clever> oops
<iqubic> but still failing.
<clever> zpool attach latitude-tank wwn-0x5001b444a630bdbc-part6 /dev/sda2
<clever> need the pool name too
o1lo01ol1o has quit [Remote host closed the connection]
<iqubic> Pool name for what?
<iqubic> And can it be the same pool name?
<clever> it must be the name of the pool your wanting to modify
selfsymmetric-mu has left #nixos ["gone to the land of dead hiccups and extinguished light bulbs"]
<iqubic> so what command should I use?
<clever> zpool attach latitude-tank wwn-0x5001b444a630bdbc-part6 /dev/sda2
rprije has joined #nixos
<iqubic> That works.
<iqubic> How do I know when that is done?
<clever> 2019-07-04 19:10:36 < clever> watch `zpool status` to see when its done
mexisme_ has quit [Ping timeout: 245 seconds]
mexisme_ has joined #nixos
<iqubic> Currently its resilvering.
<clever> it will need to copy about 90gig of data
<iqubic> How did you get that number?
<clever> the size of your partitions
<iqubic> Is that just the current size of the entire latitude-pool?
<clever> /dev/sda6 294348800 500117503 205768704 98.1G Linux filesystem
<clever> yes
<iqubic> That's closer to 100G of data.
<gyroninja___> clever: Okay, so in the final traffic before I get errors on the nix side, wireshark highlighting in red that I sent fastly a [RST, ACK] tcp packet and then it alternates between the server sending ACK and me sending RST which happens ~50 times
<iqubic> Why is the process called resilvering?
v0|d has joined #nixos
<clever> gyroninja___: fastly sending an rst means that the fastly server is trying to close the connection
<gyroninja___> well I'm the source of the RST packets
<clever> iqubic: its to do with fixing a physical mirror, replacing the silver on the back of it
<iqubic> I just found this which states the same thing.
<clever> gyroninja___: can you screenshot the last set of packets?
<gyroninja___> sure
hio has quit [Quit: Connection closed for inactivity]
<gyroninja___> This isn't the last set of packets but it includes some of the last packets before it goes into the RST stuff
ambro718 has quit [Quit: Konversation terminated!]
<gyroninja___> The last packet is me sending a RST
<clever> gyroninja___: does it fail similarly if you just download the .nar.xz with `wget` ?
kraem has quit [Read error: Connection reset by peer]
<gyroninja___> okay I'll try
zacts has quit [Quit: WeeChat 2.4]
MmeQuignon has quit [Ping timeout: 258 seconds]
<gyroninja___> yeah wget worked
kraem has joined #nixos
<gyroninja___> I ran it at the same time as nix trying to do it and nix failed to download it, but I succeeded
MmeQuignon has joined #nixos
<clever> gyroninja___: how long did the download take?
<gyroninja___> it might also be note worthy that nix is trying to download 2 packages at the same time
<gyroninja___> which is why I tried the wget as the same time
<gyroninja___> the download took 5 minutes and 16 seconds
<gyroninja___> I'd say it took nix almost exactly 5 minutes to timeout
<gchristensen> ipv6 or no?
<gyroninja___> ipv4
<gyroninja___> only
<gyroninja___> Yep the "HTTP error 200 (curl error: Timeout was reached)" happens after exactly 5 minutes
<gyroninja___> I timed it that time
phreedom_ has quit [Ping timeout: 260 seconds]
___laika has quit [Ping timeout: 258 seconds]
<iqubic> Done resilvering.
noudle has quit []
<gyroninja___> Invoking curl manually myself to download the file works fine and doesn't time out once I hit 5 minutes
utdemir has joined #nixos
hiroshi[m] has joined #nixos
hiroshi[m] has joined #nixos
hiroshi[m] has quit [Changing host]
<utdemir> Hey. For some reason my Nix commands try to use "https://qfpl.cachix.org" as a substituer. I remember adding it and removing it once, however currently my configuration.nix does not reference it, and neither my /etc/nix.conf. Can anyone tell me where else it can come from?
<niksnut> gyroninja___: I fixed the 'error 9' last week: https://github.com/NixOS/nix/commit/a67cf5a3585c41dd9f219a2c7aa9cf67fa69520b