2020-03-21
11:25
<
clever >
hio: you set boot.loader.grub.device wrong
11:24
<
clever >
linarcx: if you use the nixpkgs repo, you get nix expressions hydra hasnt built yet
11:24
<
clever >
linarcx: AFTER hydra has built everything, the nixpkgs-channels repo will update
11:23
<
clever >
hio: how did you fail?
11:21
<
clever >
linarcx: export NIX_PATH="nixpkgs=https://github.com/NixOS/nixpkgs-channels/archive/release-19.09.tar.gz
11:21
<
clever >
linarcx: you must use the nixpkgs-channels fork, or you wind up not getting cached results
11:20
<
clever >
linarcx: i see the problem, your using the release-19.09 branch of nixpkgs, which is before hydra testing occurs
11:20
<
clever >
makefu: but that doesnt explain why its trying to oh wait
11:20
<
clever >
these derivations will be built: /nix/store/pq64x5rwvbj011pcln2gcgaqz7c96xi5-clang-7.1.0.drv
11:19
<
clever >
looks normal?
11:17
<
clever >
linarcx: let me check hydra...
11:17
<
clever >
linarcx: i think clang is broken on 19.09
11:15
<
clever >
linarcx: thats not in the binary cache, what does `nix-instantiate --find-file nixpkgs` report?
11:14
<
clever >
linarcx: nix-store -q --binding out /nix/store/pq64x5rwvbj011pcln2gcgaqz7c96xi5-clang-7.1.0.drv
11:11
<
clever >
linarcx: what about `nix-build '<nixpkgs>' -A clang --dry-run` ?
11:09
<
clever >
linarcx: what about `nix show-config | grep subs` ?
11:08
<
clever >
linarcx: did you change $NIX_PATH or nixpkgs?
11:03
<
clever >
hio: you can also use `sudo -i` to get a root shell
11:03
<
clever >
hio: it says that before chapter 1
11:03
<
clever >
> Note: Commands prefixed with # have to be run as root, either requiring to login as root user or temporarily switching to it using sudo for example.
10:59
<
clever >
hio: step 2.3.4
10:58
<
clever >
hio: when you partitioned sda, it created 1/2/3
10:57
<
clever >
yeah, the one your stuck on
10:57
<
clever >
hio: every single step in the installation guide must be ran as root
10:57
<
clever >
hio: mkfs must be ran as root
10:55
<
clever >
linarcx: but since line 1 already pulls in all of nixpkgs, you dont need line 2
10:55
<
clever >
,callPackage linarcx
10:55
<
clever >
hio: you cant copy/paste to a pastebin?
10:54
<
clever >
hio: can you pastebin all of the output from the terminal?
10:53
<
clever >
hio: parted should only be ran on sda, not sda1
10:53
<
clever >
hio: what did parted say when you exited?
10:52
<
clever >
hio: and what did fdisk print when you exited?
10:51
<
clever >
hio: which guide are you following?
10:50
<
clever >
hio: was anything mounted while partitioning?
10:50
<
clever >
hio: how many partitions did you make?
10:49
<
clever >
hio: did you partition sda?
10:41
<
clever >
linarcx: probably
10:41
<
clever >
linarcx: clangStdenv points $CC and $CXX to clang
10:40
<
clever >
linarcx: and the with on line 1 pulled in all of nixpkgs, so the function on 2 and the with on 8 arent of much use
10:40
<
clever >
linarcx: you may also not need parts of 14-19
10:39
<
clever >
linarcx: and you can now delete line 10, clangStdenv always has clang
10:34
<
clever >
kraem: i dont think its possible to override that, youll need to just copy the file and modify it
10:33
<
clever >
[clever@amd-nixos:~/apps/nixpkgs]$ vi pkgs/build-support/rust/default.nix
10:33
<
clever >
default.nix: buildRustPackage = callPackage ../../../build-support/rust {
10:32
<
clever >
kraem: you need to read the source of buildRustPackage to see how it can be overridden
10:31
<
clever >
kraem: and it then tries to convert 17-24 into a string
10:31
<
clever >
kraem: line 17, your creating a $buildRustPackage env var within alacritty
10:23
<
clever >
linarcx: you also need to add a name = "something"; to the mkDerivation
10:23
<
clever >
linarcx: mkShell is just a wrapper around stdenv.mkDerivation
10:23
<
clever >
linarcx: it should still work
10:21
<
clever >
linarcx: use clangStdenv.mkDerivation { buildInputs = [ ... ]; shellHook = ''....'' }
10:21
<
clever >
jakobrs: this allows mounting any fuse based fs on boot
10:19
<
clever >
jakobrs: one minute
10:18
<
clever >
linarcx: you need to use clangStdenv, not buildInputs = [ clang ];
10:09
<
clever >
jakobrs: ahh
10:07
<
clever >
jakobrs: not sure then
10:05
<
clever >
alexarice[m]: so if you `nix-shell -A haskellPackages.aeson.env` then you get the environment needed for building it
10:05
<
clever >
alexarice[m]: all haskell packages have a .env attribute
10:04
<
clever >
jakobrs: try using ssh:// on a new path, does it give the same error?
10:04
<
clever >
alexarice[m]: haskellPackages.ghcWithPackages or cabal2nix and .env
10:04
<
clever >
jakob_rs_1: if the path is already copied, the `nix copy` wont have anything to do
10:03
<
clever >
jakob_rs_1: you claimed to be using it without before
10:03
<
clever >
jakob_rs_1: with or without ssh:// ?
10:02
<
clever >
jakob_rs_1: what about `nix copy --from ssh://10.0.0.174 /nix/store/...`
10:01
<
clever >
jakob_rs_1: have you tried nix-copy-closure?
10:00
<
clever >
jakob_rs_1: are you running it as root?
10:00
<
clever >
jakob_rs_1: what command is giving that error?
09:59
<
clever >
jakob_rs_1: if its not valid, then the build didnt finish, and it will be ignored by all nix tools
09:59
<
clever >
jakob_rs_1: it means the path is not part of /nix/store/
09:59
<
clever >
raboof: something like: runCommand "name" {} "mkdir -pv $out/bin ; makeWrapper ${input}/bin/foo $out/bin/foo"
09:58
<
clever >
raboof: runCommand would be the best way to do it
09:26
<
clever >
akegalj_: i also just expect users to know the difference between 404 and connection timed out
09:19
<
clever >
akegalj_: did you open port 80 in the nixos config?
09:19
<
clever >
akegalj_: that means your firewall is blocking port 80
09:16
<
clever >
colemickens: it should be possible to carry that back to nixos easily enough
09:16
<
clever >
colemickens: this downloads the rootfs using tftp, and then runs it via the tmpfs
09:15
<
clever >
colemickens: let me grab something...
09:13
<
clever >
colemickens: back when i ran gentoo, i did have a custom initrd, that would download the entire rootfs over wifi
09:11
<
clever >
,stateVersion fusion809
08:59
<
clever >
linarcx: depends on if you have a `with pkgs;` in effect
08:58
<
clever >
linarcx: just put xlibs.libX11 into the buildInputs
08:54
<
clever >
linarcx: nix-locate and ,locate
08:53
<
clever >
akegalj_: and also the journal for nginx
08:53
<
clever >
access.log error.log nginx.pid
08:53
<
clever >
[root@amd-nixos:~]# ls /var/spool/nginx/logs/
08:51
<
clever >
akegalj_: does the nginx log file say anything?
08:35
<
clever >
akegalj: part of that will depend on if you have several hosts defined, and which is the default
08:31
<
clever >
akegalj: you can either use an ip, or use /etc/hosts to fake having dns
2020-03-20
16:27
<
clever >
EffSquared: the code in nix will always use : to seperate the list
16:21
<
clever >
EffSquared: what args did you run nix-shell with?
14:04
<
clever >
morgrimm: external boot disk?
14:03
<
clever >
morgrimm: dual-boot nixos + darwin?
14:03
<
clever >
blame apple :P
14:02
<
clever >
morgrimm: it also means, root will wind up owning half your config files, so certain programs never work without sudo again
14:02
<
clever >
morgrimm: it means programs you run with sudo, will use the current users ~/.config, not roots config
2020-03-19
21:48
<
clever >
yeah, i can see that being a valid solution
21:47
<
clever >
infinisil: buildEnv already does priority based on order, and warns on collision
21:47
<
clever >
and buildEnv should prefer one over the other
21:47
<
clever >
foo defines a shell script that overwrites a binary in bar
21:46
<
clever >
gchristensen: what if i want foo to come before bar?
21:46
<
clever >
gchristensen: what about order though?
16:58
<
clever >
raboof: and that is the script you would have to run, to reproduce the failure in nix-shell
16:53
<
clever >
raboof: 99% of the work is done in the installPhase override, do `echo "$installPhase"`
16:53
<
clever >
raboof: when you ran `unpackPhase`, you ran the original, not the override
16:52
<
clever >
raboof: line 810, unpackPhase was overwritten
16:51
<
clever >
raboof: `nix show-derivation /nix/store/ly5879n22ww4wzi8x2rd1bcl27xzscw7-node_mastodon-bot-0.0.1.drv` ?
16:50
<
clever >
raboof: and what error does `nix-build` fail with?
16:49
<
clever >
raboof: what did you set patches to?
2020-03-18
17:51
<
clever >
jakobrs: that all looks totally normal
17:35
<
clever >
cole-h: i think thats fine
17:34
<
clever >
jakobrs: can you pastebin your configuration.nix and hardware-configuration.nix files?
17:33
<
clever >
jakobrs: i think the PROGRAM= in a udev rule, must be a single binary, not a line of shell code
17:24
<
clever >
jakobrs: sure
17:21
<
clever >
jakobrs: what if you just manually run `nix-daemon` as root?
17:19
<
clever >
jakobrs: `ls -l /proc/*/fd/* | grep mnt`
17:18
<
clever >
jakobrs: where is sdc1 mounted?
17:14
<
clever >
jakobrs: what does systemd say when you `systemctl start nix-daemon.service` ?
17:13
<
clever >
jakobrs: what does fstab say about /nix/store?
17:13
<
clever >
jakobrs: restart it?
14:39
<
clever >
Unode: you need to create an efi system partition, fat32, and mount it to /boot
14:38
<
clever >
Unode: should usually be fine
14:36
<
clever >
coderobe: legacy bios typically wont show nvme devices at all, and grub technically lacks nvme support
14:35
<
clever >
Unode: and only if the bios decided to include support
14:35
<
clever >
Unode: only UEFI can boot from NVME
2020-03-17
22:30
<
clever >
icey__: youll need to patch it to just use plain 755, and then security.wrappers to make it setuid later
22:30
<
clever >
icey__: yeah, nothing in $out can be setuid root
22:28
<
clever >
icey__: what permissions is it trying to set?
22:22
<
clever >
bqv[m]: not sure why it was done that way
22:20
<
clever >
icey__: --keep-failed, or nix will delete it on you
22:20
<
clever >
bqv[m]: it uses raw bash
22:14
<
clever >
cole-h: that usually needs a @token@ to replace, and i dont think it can replace strings like /usr/local
22:13
<
clever >
icey__: you can either use sed, or just put a patch into the patches list
20:39
<
clever >
platformTools skips directly to adb, and skips most of the other developer tools
20:38
<
clever >
bqv[m]: pkgs.androidenv.platformTools
20:38
<
clever >
bqv[m]: one sec
18:35
<
clever >
bqv[m]: b: if you use $src (the env var) instead of ${src} (the nix var), then it will respect further overrides
18:34
<
clever >
bqv[m]: a: the unpackPhase will have copied the src to . for you already
15:25
<
clever >
Taneb: that makes it ignore all config and overlays
15:25
<
clever >
Taneb: try `nix-instantiate -A haskellPackages.Agda --arg config '{}' --arg overlays '[]'`
15:24
<
clever >
Taneb: do you have a config.nix file?
15:23
<
clever >
Taneb: what if you read pkgs/development/haskell-modules/hackage-packages.nix ?
14:47
<
clever >
hmmm, its usually slower then that
14:47
<
clever >
[root@nas:~]# time ls -U /nix/store/ | wc -l
14:47
<
clever >
real 0m3.061s
14:47
<
clever >
my system is weirdly IO bound, so ive not seen much benefit from changing schedulers
14:46
<
clever >
ah, yeah, i see that now
14:46
<
clever >
gchristensen: if you give it a partition, it wont mess with the IO scheduler, so the 2nd partition gets a more fair share of things
14:45
<
clever >
gchristensen: also of note, if you give zfs the whole disk, it will set a magic flag on the vdev, which causes zfs to mess with the IO scheduler upon import
14:07
<
clever >
evanjs: havent seen that one
13:54
<
clever >
evanjs: you might want to look at my vc4 PR
2020-03-16
17:43
<
clever >
fresheyeball: i remember fixing something similar months ago, but cant see any answers in the irc logs
17:30
<
clever >
s1341: you may want to edit pkgs/development/androidndk-pkgs/androidndk-pkgs.nix then, to change v7 to 4.8
17:29
<
clever >
armv5 uses 4.8
17:29
<
clever >
24 gccVer = "4.8";
17:29
<
clever >
21 "armv5tel-unknown-linux-androideabi" = {
17:29
<
clever >
s1341: do you want 32bit or 64bit ?
17:29
<
clever >
29 gccVer = "4.9";
17:29
<
clever >
26 "armv7a-unknown-linux-androideabi" = {
17:28
<
clever >
s1341: nixpkgs has 4.9 gcc's for ndk
17:28
<
clever >
s1341: what makes r10e different from r18b?
17:25
<
clever >
s1341: have you considered just shipping pure static binaries, that dont care about the android libs at all?
17:25
<
clever >
s1341: and you need that special gcc to align with the system libraries android provides?
17:23
<
clever >
s1341: how is r10e different from the normal ndk?
17:17
<
clever >
s1341: have you looked at pkgs.androidndkPkgs ?
17:16
<
clever >
s1341: there is already some android ndk's in nixpkgs, let me see...
17:14
<
clever >
fresheyeball: checking some logs...
17:09
<
clever >
fresheyeball: though, its also not connecting to any sockets
17:09
<
clever >
fresheyeball: dont see it trying to open anything in the xkeyboard-config area, it might be talking to Xorg to make that do it
17:06
<
clever >
s1341: but when trying to patchelf things, you have to add it to the list of libraries being patched in
17:06
<
clever >
s1341: 2020-03-16 13:56:28 < clever> s1341: its part of glibc, so nix-shell will just provide it automatically
17:03
<
clever >
fresheyeball: strace, what syscall failed, what is it not finding?
17:02
<
clever >
s1341: no library you install with home-manager will be visible to anything
17:01
<
clever >
,libraries s1341
17:01
<
clever >
s1341: how exactly did you "install" glibc?
17:00
<
clever >
s1341: `nix-build '<nixpkgs>' -A glibc` then `ls result/lib`
16:59
<
clever >
s1341: which libm.so does glibc contain?
16:58
<
clever >
fresheyeball: now `nix-store -qR /run/current-system | grep xkeyboard-config` and see if the new keyboard-config has that
16:57
<
clever >
s1341: how are you searching for it?
16:57
<
clever >
fresheyeball: `find /nix/store | grep --color apl`
16:56
<
clever >
s1341: though, android-ndk may complicate things, if you need the andriod libm.so
16:56
<
clever >
s1341: its part of glibc, so nix-shell will just provide it automatically
16:55
<
clever >
fresheyeball: cant remember exactly where that was, but if you have an older generating with it in the nix store, try just searching the whole store for a file with apl in the name?
15:33
<
clever >
evanjs: builtins.elem to test if the name is in a list
15:30
<
clever >
evanjs: evanjs 43 baseName = baseNameOf (toString name);
15:29
<
clever >
evanjs: if its a <path>
15:28
<
clever >
evanjs: nix-instantiate --find-file
15:14
<
clever >
exarkun: you can use fetchFromGitHub or any other fetcher, to fetch the new src
15:14
<
clever >
exarkun: patches = lib.filter something drv.patches;
15:13
<
clever >
or fetchFromGitHub
15:13
<
clever >
if you want to add in nix-build, qemu.overrideAtrs (drv: { src = ./.; })
15:12
<
clever >
exarkun: if you only want nix-shell, even this is enough
15:12
<
clever >
with import <nixpkgs> {}; qemu
15:12
<
clever >
$ cat ~/apps/qemu/shell.nix
14:58
<
clever >
__red__: i believe its the default domain for the virtualhost
14:51
<
clever >
__red__: it must be an attribute set, not a list
14:51
<
clever >
__red__: you want services.httpd.virtualHosts = { "example.com" = { ... }; };
14:45
<
clever >
and maybe clang.cc.lib
14:45
<
clever >
Ankhers: for clang, you want to instead use clangStdenv
14:43
<
clever >
Ankhers: try gcc.cc.lib
14:41
<
clever >
__red__: what are you setting services.httpd.virtualHosts to?
14:38
<
clever >
yep, that will do it
14:38
<
clever >
exarkun: did you set keepDotGit ?
14:35
<
clever >
exarkun: then youll have the $out for each, and can just run plain `diff -r` on the 2 dirs
14:35
<
clever >
exarkun: if you use `nix-hash` to convert the base32 hashes to base16, you can then query both in the DB
14:34
<
clever >
hash = sha256:51858393c5698aba2e7c4e2832054a6985ab3eeda5db7373db5627d0acceefa8
14:34
<
clever >
sqlite> .mode line
14:34
<
clever >
sqlite> select * from ValidPaths limit 1;
14:34
<
clever >
[root@amd-nixos:~]# sqlite3 /nix/var/nix/db/db.sqlite
14:33
<
clever >
evanjs: what is the nix expression that you tried to nix-build?
14:33
<
clever >
evanjs: ive not really tried to override parts of the stdenv
2020-03-15
15:39
<
clever >
tnks: you can read it with `nix-store -l` or `nix log`
15:39
<
clever >
tnks: nix saves the full log to /nix/var/log/
15:37
<
clever >
tnks: `nix build` will show progress, but only the most recent line, from everything combined, with the name as you wanted
15:32
<
clever >
tnks: if you know which drv is failing, you can also just `nix-store -r /nix/store/foo.drv` to re-build it without any parallelism
15:32
<
clever >
tnks: you either want `nix build` (instead of `nix-build`) or `nix-build -Q`
2020-03-14
09:24
<
clever >
kolaente_: you could just `rm -rf ~/.cache/nix` to clear the cache, and nix will re-make it
05:19
<
clever >
ive also heard that such mac's cant boot with the SSD missing
05:19
<
clever >
samueldr: yeah, ive heard that the nvme is part of the T2 security chip
05:18
<
clever >
and linux needs a patch to the kernel
05:18
<
clever >
lovesegfault: i suspect you will loose all data if you try to move the ssd to another mac
05:18
<
clever >
lovesegfault: apple has a custom nvme controller, that i think does transparent hw encryption
05:17
<
clever >
lovesegfault: apple does even more whacky stuff
05:16
<
clever >
Ashy: if its missing from lspci, then the bios has either disabled it, or its not seated properly
05:14
<
clever >
Ashy: what does lspci say?
05:04
<
clever >
ive memorized the codebase :P
05:04
<
clever >
samueldr: HYDRA_DBI and PGPASSFILE are likely also used
05:02
<
clever >
samueldr: and dynamically update the internal machine list when the last-mod timestamp changes
05:02
<
clever >
samueldr: hydra-queue-runner will poll every file in $NIX_REMOTE_SYSTEMS once per minute
04:56
<
clever >
samueldr: that then gets passed to hydra-queue-runner, via an env var
04:56
<
clever >
23 NIX_REMOTE_SYSTEMS = concatStringsSep ":" cfg.buildMachinesFiles;
04:56
<
clever >
samueldr: buildMachinesFiles lets yoou point hydra to secondary files that nixos isnt managing, which lets custom tools add/remove machines dynamically
04:55
<
clever >
samueldr: via that option
04:55
<
clever >
169 default = [ "/etc/nix/machines" ];
04:55
<
clever >
170 example = [ "/etc/nix/machines" "/var/lib/hydra/provisioner/machines" ];
04:55
<
clever >
167 buildMachinesFiles = mkOption {
04:55
<
clever >
samueldr: by default, it only reads /etc/nix/machines, which is managed by nix.buildMachine
04:55
<
clever >
samueldr: hydra can take a list of files, that all have the /etc/nix/machines syntax
03:21
<
clever >
OmnipotentEntity: what did gogui do?
2020-03-13
15:04
<
clever >
kaliumxyz: the nixos firewall prints that by default, and it blocks all incoming by default
12:40
<
clever >
atemu12[m]: ^^
12:39
<
clever >
adisbladis: yep, clear is in ncurses
12:39
<
clever >
,locate bin clear
05:43
<
clever >
then just delete the .env part
05:43
<
clever >
you must use .env when pointing nix-shell to a haskell thing
05:42
<
clever >
lovesegfault: .env is specific to haskell packages
05:42
<
clever >
the rest is defining custom scripts that wind up in $PATH, and aid in debugging this specific case
05:41
<
clever >
grabbing an example...
05:41
<
clever >
lovesegfault: put an override into the shell.nix
05:40
<
clever >
and does the -A for you
05:39
<
clever >
lovesegfault: what i sometimes do, is sprinkle shell.nix files in each subdir, which imports a default.nix one dir up
05:39
<
clever >
(import ../. {}).daedalus-installer.env
05:39
<
clever >
[clever@amd-nixos:~/iohk/daedalus/installers]$ cat shell.nix
2020-03-12
14:20
<
clever >
LnL: what about the older `nix-store -l` ?
14:17
<
clever >
LnL: last time i looked into it, nix can only store success, and failures are treated as it never tried
14:16
<
clever >
pie_[bnc]: nix doesnt save the output for failed builds
03:26
<
clever >
Jonathan5: you want clangStdenv.mkDerivation to get clang working
2020-03-11
19:16
<
clever >
exarkun: they can also be set by the stdenv and any setup hooks, try running nix-shell on the .drv file, and check the real env of that shell
19:01
<
clever >
exarkun: it has both a stripDebugList and a stripAllList
19:00
<
clever >
exarkun: have you read nixpkgs/pkgs/build-support/setup-hooks/strip.sh ?
18:52
<
clever >
but for a gui desktop, no
18:52
<
clever >
for a remote machine, i can almost see that being useful
18:51
<
clever >
its very hard to debug, when you run `git commit` and it just silently hangs, because the pw prompt opened on another ssh session
18:51
<
clever >
ratsclub: and then the GUI starts asking for pw prompts over an ssh session coming from the laptop!
18:51
<
clever >
ratsclub: it automatically re-binds the gpg agent to the new tty, every time i ssh into the machine
18:50
<
clever >
ratsclub: ive intentionally not enabled the gpg support in nixos
18:50
<
clever >
default-cache-ttl 34560000
18:50
<
clever >
$ cat ~/.gnupg/gpg-agent.conf
18:49
<
clever >
ratsclub: ive been doing that with normal config files
15:24
<
clever >
johnw: on linux, you could use chroot, as long as the nix binary is pre-copied
15:23
<
clever >
johnw: on darwin, you cant really do that, because the nix binary itself is in /nix/store
15:22
<
clever >
johnw: a bug within nix, ?root=/path doesnt affect everything properly
12:55
<
clever >
zimbatm: you about?
10:04
<
clever >
i try to avoid with when possible
09:38
<
clever >
lovesegfault: check the length of builtins.attrNames ?