gchristensen changed the topic of #nixos to: The Nix Ecosystem, https://nixos.org | NixOS: https://nixos.org/nixos/download.html | Nix: https://nixos.org/nix/download.html | Logs: https://logs.nix.samueldr.com/nixos/ | #nixos-dev, #nix-darwin, #nixos-aarch64, #nixos-chat
<fresheyeball> things just look to be hanging
<fresheyeball> mount.nfs: timeout set for Sun Aug 25 18:01:32 2019
<fresheyeball> mount.nfs: trying text-based options 'vers=4.2,addr=,clientaddr='
<fresheyeball> it pooped that out first
<fresheyeball> how can I restart nfs on the server?
<fresheyeball> is there firewall ports I need to open or something?
ng0 has quit [Quit: Alexa, when is the end of world?]
<ldlework> clever: I'm getting, /nix/store/k16skadgyjx39vfdc6lajwy55qvw137d-dotnet-sdk-2.2.401/sdk/2.2.401/Microsoft.Common.CurrentVersion.targets(1124,5): warning MSB3191: Unable to create directory "obj/Debug/netcoreapp2.2/". Access to the path '/tmp/nix-build-disinfo.drv-0/disinfo/Disunity.Disinfo/obj/Debug/netcoreapp2.2/' is denied. [/tmp/nix-build-disinfo.drv-0/disinfo/Disunity.Disinfo/Disunity.Disinfo.csproj]
<ldlework> Only when building on windows WSL2
<ldlework> Can you think of anything?
Rusty1 has joined #nixos
<{^_^}> [nixpkgs] @jtojnar pushed to master « lib/options: fix path in comment »: https://git.io/fjAZX
<clever> ldlework: windows be funky :P
<clever> [root@nas:~]# netstat -anp | grep LIST
<clever> tcp 0 0* LISTEN 2933/rpc.mountd
<clever> tcp 0 0* LISTEN -
<clever> tcp6 0 0 :::35555 :::* LISTEN 2932/rpc.statd
<clever> tcp6 0 0 :::9125 :::* LISTEN 2884/statsd_exporte
<clever> [root@nas:~]# netstat -anp | grep rpc
<clever> fresheyeball: strange, i dont have those listed in my firewall config
<clever> fresheyeball: all of the ports are clearly laid out in the nixos module!
<clever> fresheyeball: 2049 is part of nfs
<clever> fresheyeball: and netstat confirms, i do have open connections on that port, between machines doing nfs mounts
<clever> 3260 is tgtd, ignore that
<fresheyeball> clever: so I switched off the firewall on the server
<fresheyeball> and now manual mounting doesn't hang anymore
<fresheyeball> and I can cd to /mnt/spruce and /mnt/fig
<fresheyeball> but no files show with `ls`
<clever> fresheyeball: try restarting nfs-server.service ?
<fresheyeball> clever: can I restart the client?
<clever> fresheyeball: sure
qubasa has joined #nixos
<fresheyeball> ok so I restarted the nfs-server on the server machine
<fresheyeball> and I ran umount on the client
<fresheyeball> and manually mounted again
<fresheyeball> and it didn't hang
<fresheyeball> but I see no files
<clever> fresheyeball: what if you create a file in that directory?
<fresheyeball> permission denied
<clever> fresheyeball: as root?
<fresheyeball> (touch /mnt/spruce/foo on the client)
<clever> fresheyeball: add no_root_squash to the options, then root on the client is also root on the server
<fresheyeball> clever: still permission denied
iyzsong has joined #nixos
qubasa_ has quit [Ping timeout: 258 seconds]
<fresheyeball> clever: ok I added that
<{^_^}> [nixpkgs] @kalbasit merged pull request #67462 → hugo: 0.55.4 -> 0.57.2 → https://git.io/fjA3S
<{^_^}> [nixpkgs] @kalbasit pushed commit from @xworld21 to master « hugo: 0.55.4 -> 0.57.2 (#67462) »: https://git.io/fjAZy
<fresheyeball> now when I umount I get device busy
<fresheyeball> grr
<clever> fresheyeball: is something currently in that dir?, you shouldnt have to umount
<fresheyeball> ok I umounted
<fresheyeball> and did an manual mount again
<fresheyeball> no change
<fresheyeball> no files
<clever> fresheyeball: touch again?
<fresheyeball> clever: it created the file
<fresheyeball> if I ls I can see it
dansho has joined #nixos
<clever> fresheyeball: and if you ls on the server, can you see it?
<fresheyeball> no
<clever> fresheyeball: what if you umount the ntfs and ls again?
<fresheyeball> so I did a umount
<fresheyeball> and the foo file is still in there
<clever> on the server or client?
<fresheyeball> client
<clever> its not mounted yet the file is still there???
<fresheyeball> if I try to mount now it says its busy
<fresheyeball> so I rmed the file
<clever> also, that step was for the server
<clever> i said ntfs, not nfs
<fresheyeball> oh
<fresheyeball> shiza
jluttine_ has quit [Ping timeout: 248 seconds]
<{^_^}> [nixpkgs] @kalbasit merged pull request #67456 → nixos/unifi: restarting on failure → https://git.io/fjAOO
<{^_^}> [nixpkgs] @kalbasit pushed commit from @mmahut to master « nixos/unifi: restarting on failure (#67456) »: https://git.io/fjAZ7
<fresheyeball> clever: on the server I can mount and unmount the filesystem
<fresheyeball> and I can create files without sudo
<clever> if you umount it, then ls the directory beneath the mount, does the file the client made appear?
<fresheyeball> no
<clever> you may need to go back to step 1, since you deleted the file
<fresheyeball> but I screwed up your steps
<fresheyeball> I removed that file
<clever> mount everything back up, and make the file from the client
<fresheyeball> ok
<fresheyeball> done
<fresheyeball> I made it on the client
<fresheyeball> /mnt/spruce/bar
<clever> then check on the server, does it exist?
<fresheyeball> and did ls on the server
<fresheyeball> and its not there
<clever> umount spruce on the server, and ls again?
<fresheyeball> ok
aveltras has quit [Quit: Connection closed for inactivity]
<fresheyeball> now it's there!
<fresheyeball> if I ls on the server now it's there!
<clever> that confirms, the nfs server is sharing the /mnt/spruce directory on /
<clever> not the thing you mounted over /mnt/spruce
<fresheyeball> ok!
<clever> nohide should be stopping it from doing that
dycan_ has quit [Ping timeout: 272 seconds]
<fresheyeball> perhaps that's why the wiki shows the redundant lines?
<clever> thats a work-around for when your not using nohide
<fresheyeball> clever: what do you suggest?
<clever> try putting them back in and see what happens
<fresheyeball> ok!
<{^_^}> [nixpkgs] @kalbasit merged pull request #66892 → gofumpt: Init at 2019-07-29 → https://git.io/fjFwm
<{^_^}> [nixpkgs] @kalbasit pushed commit from @rvolosatovs to master « gofumpt: Init at 2019-07-29 (#66892) »: https://git.io/fjAZb
<fresheyeball> ok so I put those lines back
<fresheyeball> rebuilt the server
<fresheyeball> then restarted nfs for good measure
<fresheyeball> umounted on the client
<fresheyeball> and then ran mount on the client
<fresheyeball> and I still only see the file the client made
<fresheyeball> /mnt/spruce/bar is there (client)
<clever> fresheyeball: what is the line from exports, for spruce, and what does `mount | grep spruce` say on the client?
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fjAZN
<fresheyeball> systemd-1 on /mnt/spruce type autofs (rw,relatime,fd=96,pgrp=1,timeout=0,minproto=5,maxproto=5,direct)
<fresheyeball> on /mnt/spruce type nfs4 (rw,relatime,vers=4.2,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=,local_lock=none,addr=
jluttine_ has joined #nixos
wtv_nick has quit [Ping timeout: 245 seconds]
<clever> fresheyeball: try removing the exports line for /mnt ?
<fresheyeball> clever: I don't know what you mean
<fresheyeball> this is deeper than I have dared tread in the past
<fresheyeball> oh wait
<fresheyeball> you mean on the server
<clever> fresheyeball: you should have 4 exports lines, one for /mnt, and then 3 for each subdir
<clever> just remove the line for /mnt
<fresheyeball> yay!
<fresheyeball> that seems to have done the trick!
fresheyeball has quit [Quit: WeeChat 2.4]
boxscape has left #nixos [#nixos]
xkapastel has joined #nixos
<{^_^}> [nixpkgs] @matthewbauer opened pull request #67470 → cpython: skip macOS system frameworks → https://git.io/fjAne
fresheyeball has joined #nixos
<fresheyeball> clever: I rebooted the client
<fresheyeball> and all is well
<fresheyeball> that you for your help once again
<fresheyeball> clever++
<{^_^}> clever's karma got increased to 182
<clever> fresheyeball: heh, was looking like a hit&run, you vanished the instant the problem was solved!
<fresheyeball> clever: I rebooted
<clever> yeah
dycan has joined #nixos
dycan has quit [Ping timeout: 272 seconds]
<ldlework> clever: turns out my dependency package is not hash-reproducable based on what machine builds it
<ldlework> clever: on windows it runs into a permission error in the same exact place with a random .drv folder in /tmp
<ldlework> Is there any chance you'd like to build my project to say that it can build on machines other than my own laptop?
<ldlework> https://github.com/disunity-hq/disinfo is the repo if anyone wants to let me know if this builds for them
<clever> *looks*
<clever> ldlework: first minor problem, you import <nixpkgs> in each file, that ruins performance
<clever> ldlework: you want to start the file with { stdenv }:, and then load it with callPackage
<clever> and default.nix is the only one that should import <nixpkgs>
iyzsong has quit [Read error: Connection reset by peer]
o1lo01ol1o has quit [Ping timeout: 248 seconds]
<clever> ldlework: build fails here, hash mismatch
ryantrinkle has joined #nixos
<clever> ldlework: next minor problem, both derivations have the identical name
<clever> so its imposible to tell which one is which in the errors
<clever> /nix/store/z955xygfz1c365nasjfbh4jhf0dnzsvf-dotnet-sdk-2.2.103/sdk/2.2.103/Microsoft.Common.CurrentVersion.targets(1128,5): warning MSB3191: Unable to create directory "obj/Debug/netcoreapp2.2/". Access to the path '/build/disinfo/Disunity.Disinfo/obj/Debug/netcoreapp2.2/' is denied. [/build/disinfo/Disunity.Disinfo/Disunity.Disinfo.csproj]
<clever> ldlework: you didnt use the no-preserve flag i gave earlier
<infinisil> I'm currently going through the arguments in https://github.com/NixOS/nixpkgs/pull/16922
<{^_^}> #16922 (by ryantrinkle, 3 years ago, closed): nixos copySystemConfiguration: enable by default
<infinisil> And I just don't get it, I don't see any good reason why this can't be enabled by defualt
<ldlework> clever: you're right!
<clever> infinisil: if <nixos-config> doesnt exist, or is the wrong config (nixops for ex) it will copy the wrong file
<infinisil> One argument is "Because it won't back up the files configuration.nix includes", but any kind of backup is better than none, so that's no good
<evanjs> infinisil: also, dolstra says bc not everything needs it - e.g. nixops. lol but I would want it on nixops machines so I know whats going on ...
iyzsong has joined #nixos
jluttine_ has quit [Ping timeout: 268 seconds]
<clever> infinisil, evanjs: this variant, will just archive the entire nixos-configs dir, including .git
<infinisil> clever: Yeah but even if it will copy the wrong file in some cases, it's better than just never copying it
<clever> (and any secrets it may contain)
<clever> oh, that gives me an idea
<dansho> what's a good partition size for nixos root? (everything excluding /home)
<clever> infinisil: what if nixos-generate-config put those 3 lines, into the default configuration.nix?
<clever> dansho: zfs and then you dont care!
<dansho> i was using 32G for a while, but i tried building ue4 and ran out of disk space (with about 16G free)
<infinisil> clever: Yeah that's why I'm asking, I'm picking https://github.com/NixOS/nixpkgs/pull/24707 back up
<{^_^}> #24707 (by techhazard, 2 years ago, open): nixos-generate-config: add `system.copySystemConfiguration = true;`
<clever> infinisil: i'm thinking, instead of the module trying to guess where you get the config from, you just give it a ./. to tell it
<infinisil> clever: But I just don't see any good reason for not making it true by default
<clever> infinisil: and then that both enables, it, and tells it exactly where to look
ericsagnes has quit [Quit: WeeChat 2.4]
georges has quit [Ping timeout: 272 seconds]
dycan has joined #nixos
<infinisil> clever: Seems a bit too implicit but might work yeah
<infinisil> clever: But really, is there a good argument against true by default?
<infinisil> Because any kind of backup would save the ass of many people
<infinisil> Only doing it for new nixos configs with nixos-generate-config would benefit only new users
<infinisil> And there's no real cost to enabling it by default, the worst thing that could happen is that it can't backup the file
<clever> infinisil: defaulting to true may cause security issues in nixops cases, and it would need a new nixops to turn it back off
<clever> so if your nixpkgs gets ahead of nixops, bad things happen
<infinisil> How would it cause security issues?
<infinisil> Ah
<clever> infinisil: secrets in the host configuration.nix leaking to targets in nixops
<infinisil> I guess if you use nixops on a nixos machine, it would copy the configuration.nix into nixops result
<clever> because it copied the wrong config
<infinisil> True dat
<clever> which is what ./. solves
<clever> but that must exist in the directory it needs to backup, hence, nixos-generate-config
<infinisil> clever: You mean this should then backup the whole ./. directory?
<clever> infinisil: yeah, check the core.nix example i linked above
<clever> that also solves the imports problems
<infinisil> (unless you import from outside the dir)
<infinisil> Not sure about backing up the whole dir, what if someone has /etc/nixos/nixpkgs
<clever> then your just asking for problems, because you config is scattered over the machine and you cant just backup /etc/nixos :P
jluttine_ has joined #nixos
<clever> infinisil: filterSource
iggi42 has joined #nixos
<infinisil> Hm yeah so this would require effort by the user to filter out
<clever> commonly named things like nixpkgs could be filtered by the module
<infinisil> And filterSource is annoying to use damn
<infinisil> I should also push https://github.com/NixOS/nixpkgs/pull/56985 forward because of this
<{^_^}> #56985 (by nh2, 24 weeks ago, open): sources: Add explicitFilterSource
wtv_nick has joined #nixos
<clever> warning: dumping very large path (> 256 MiB); this may run out of memory
<clever> [root@amd-nixos:~]# sqlite3 /nix/var/nix/db/db.sqlite