2017-08-11
02:12
<
clever >
are they in a single directory?
02:11
<
clever >
catern: have you tried using requireFile?
02:10
<
clever >
catern: how often does it change?
02:06
<
clever >
catern: nix will automaticaly copy it into the store, and make it available in the sandbox
02:06
<
clever >
catern: just do ${./foo} in the string
01:57
<
clever >
jonjitsu: not that i know of
01:55
<
clever >
catern: what kind of access?
01:54
<
clever >
catern: and if you used sandboxing, that would break 100% of the time, and the problem would become much more obvious
01:54
<
clever >
just (import ifd)
01:53
<
clever >
catern: and dont quote it either
01:53
<
clever >
catern: that is breaking the dependency chain
01:53
<
clever >
catern: dont run builtins.toPath on it
01:52
<
clever >
catern: id recomend always doing development with sandboxing on
01:52
<
clever >
catern: which means nix doesnt know it has to be built first
01:52
<
clever >
catern: and with sandboxing off, you can access things that you "dont depend on"
01:51
<
clever >
catern: no, sandboxing has to be enabled in nix.conf or configuration.nix
01:48
<
clever >
catern: do you have sandboxing enabled?
01:44
<
clever >
jonjitsu: is grub enabled in configuration.nix?
01:44
<
clever >
catern: nix-store --verify --check-contents
00:58
<
clever >
hydra will root the entire build-time closure of things, so if thats the cause of the entire issue, it will hold on to the file
00:57
<
clever >
it prints an error telling you to dl it and nix-store --add-fixed the file
00:57
<
clever >
requireFile is a fixed-output derivation, that will never sucessfully build a path
00:57
<
clever >
every single nix eval requires hashing the entire bar
00:56
<
clever >
i have needed similar requirements as well, foo = ./bar; isnt nice when bar is 4gig in size
00:56
<
clever >
catern: requireFile is the closest thing i can think of
00:55
<
clever >
jonjitsu: i'm guessing fileSystems."/target" = { fsType = "bind"; device = "/source"; };
2017-08-10
23:45
<
clever >
rodarmor: its not well documented, but you can check how steam does it
23:44
<
clever >
rodarmor: what about just running dropbox unpatched under a fhs chroot, like steam, lol
23:40
<
clever >
Infinisil: nscd will let it bypass that
23:40
<
clever >
which installs to somewhere in ~/.dropbox
23:40
<
clever >
rodarmor: it runs a dynamic elf in /tmp, that acts as an update installer, i believe
23:39
<
clever >
rodarmor: it does the right thing, a randomly named folder in /tmp
23:38
<
clever >
Infinisil: so if dropbox can contact nscd, it will use nscd's view of the dns world
23:38
<
clever >
Infinisil: #2, nscd acts as a caching resolver, caching real dns and /etc/hosts lookups
23:38
<
clever >
Infinisil: for dns, there are 2 things i can think of, #1 glibc may read /etc/hosts directly
23:37
<
clever >
Infinisil: dns is entirely seperate
23:37
<
clever >
Infinisil: network namespaces only affect the listening ports and the ip layer
21:49
<
clever >
not sure then, i havent dealt with python stuff much
21:48
<
clever >
replace buildPythonPackage with pythonPackages.buildPythonPackage
21:47
<
clever >
pythonPackages.buildPythonPackage would get the function into scope
21:39
<
clever >
which is ~10 years before 1980, which zip's dont support
21:39
<
clever >
nix sets the timestamps to 1 second after jan 1st 1970
21:35
<
clever >
the indentation of it is also a mess
21:35
<
clever >
ah, that example is probably wrong
21:34
<
clever >
got a link to that doc?
21:34
<
clever >
which will pass in attrs from pythonPackages and pkgs
21:33
<
clever >
that example was meant to be loaded with pythonPackages.callPackage
21:33
<
clever >
its always been under pythonPackages
21:33
<
clever >
Enzime: Enzime pythonPackages.buildPythonPackage
21:13
<
clever >
nixpkgs-unstable skips that testing, because its not meant for use on nixos machines
21:13
<
clever >
nixos-unstable has proper testing to prevent such major breakage
21:12
<
clever >
rodarmor: but nixpkgs-unstable had a bug about a year ago, that hosed grub.conf
21:12
<
clever >
rodarmor: yeah
21:10
<
clever >
rodarmor: you would also need to alter $NIX_PATH, and then just pull on a regular basis until the system stops booting :P
21:10
<
clever >
rodarmor: i recently read the source of nix-env, and found that you can do things like this, now nix-env -iA foo.hello grabs from a checkout in that dir
21:09
<
clever >
import /home/clever/apps/nixpkgs
21:09
<
clever >
[clever@amd-nixos:~]$ cat .nix-defexpr/test/foo/default.nix
20:48
<
clever >
Lisanna: -I nixpkgs=https://github.com/NixOS/nixpkgs-channels/archive/nixos-unstable.tar.gz
20:46
<
clever >
tilpner: just a bit slow to load
20:44
<
clever >
and yep, the exact channels you listed
20:44
<
clever >
tilpner: so, we hop over to the channels mirror
20:43
<
clever >
tilpner: it was probably this commit that fixed it
20:42
<
clever >
tilpner: there is a neat trick ive found on github, one sec
20:30
<
clever >
copumpkin: and you can always make another override with a higher priority to turn it back on
20:29
<
clever >
and that exact line, is why sshd is off, but installed, in iso images
20:29
<
clever >
copumpkin: that unsets the wantedBy, so multi-user.target no longer triggers the startup
20:26
<
clever >
you probably want an mkForce, on second
20:26
<
clever >
ah no, thats something else
20:25
<
clever >
copumpkin: enable
19:56
<
clever >
cocreature: ${name.lib}
19:52
<
clever >
id usualy try to avoid contents for anything you want to persist, since nix wont be aware of it and will GC it
19:50
<
clever >
etc would keep them rooted, so they cant be GC'd
19:50
<
clever >
that would litter a directory like / or /tmp with symlinks to storepaths, that lack GC roots
19:49
<
clever >
copumpkin: or just append to the contents argument of make-disk-image.nix
19:45
<
clever >
after that, its just throwing paths in random places like etc so they get hauled along for the ride
19:45
<
clever >
only one i can think of right now is isoImage.storeContents
19:44
<
clever >
copumpkin: storeContents is directly passed to make-squashfs
19:42
<
clever >
images have a special option for that, one second
19:42
<
clever >
for a full nixos install or for installer images?
19:41
<
clever >
copumpkin: restrict-eval
19:40
<
clever >
copumpkin: strict mode i think, let me find it
19:22
<
clever >
flyingleafe: testing a fix here...
19:19
<
clever >
flyingleafe: ah, no cabal file, i see why the normal tools dont work right
19:18
<
clever >
flyingleafe: let me see...
19:17
<
clever >
flyingleafe: ahh, that looks like a variant of runhaskell
19:15
<
clever >
flyingleafe: which project are you trying to build with stack?, i could have a look at its files and see if its doing anything strange
19:13
<
clever >
flyingleafe: it might be simpler to just run cabal2nix and nix-build, and skip the stack layer
19:09
<
clever >
dont know then
19:06
<
clever >
flyingleafe: have you looked at the documentation for stack --nix?
19:04
<
clever >
yegortimoshenko: nix-store --add-fixed sha256
18:56
<
clever >
ylwghst: that tells it to create a symlink called foo, pointing to the result
18:52
<
clever >
Lisanna: nix-build '<nixpkgs>' -A foo -o foo
18:43
<
clever >
bennofs: looks like i later redid it to make it simpler
18:43
<
clever >
dual.x86.nix: imports = [ ./dual.common.nix ./snmpd.nix ];
18:38
<
clever >
bennofs: but my configuration.nix was littered with mkIf statements, and it was able to share the same configuration.nix between both arches
18:38
<
clever >
bennofs: no cross-compiles where involved, each system had to do a native build with nixos-rebuild
18:35
<
clever >
the more complex part, is making sure the raspberry pi doesnt delete the x86 stuff, because nothing says its currently needed
18:34
<
clever >
so they always refer to different files, and the names never conflict, so you can just merge them
18:33
<
clever >
they have different bootloader config, pointing to different builds of nixos, and different kernels
18:33
<
clever >
and because the raspberry pi and x86 use different bootloaders
18:33
<
clever >
but that root point is different for arm and x86 (and also different for every build with new config)
18:33
<
clever >
shapr: and when nixos is booting, everything starts at a root point, like /nix/store/<hash>-nixos-<hostname>-<version>
18:32
<
clever >
shapr: so arm and x86 binaries of things can co-exist within /nix/store
18:32
<
clever >
shapr: basically, the hashes in /nix/store/<hash>-foo include the arch they are built for
18:30
<
clever >
i have ran nixos on an armv6 raspberry pi before
18:27
<
clever >
shapr: the nixos-rebuild command will compile the entire system, based on the current nixos configuration.nix file
18:26
<
clever >
shapr: nixos is basically an entire linux distro, written as a single massive nix package
18:26
<
clever >
shapr: i have gotten steam to run before, but my GPU drivers dont play well on the desktop
18:25
<
clever >
shapr: i still have the old white c64 i had when i was a kid
18:23
<
clever >
shapr: what software where you porting to the C64's?
18:14
<
clever >
nixos-rebuild switch inside the container
18:14
<
clever >
sauyon: declarative or imperative container?
17:46
<
clever >
that sounds normal
17:45
<
clever >
ylwghst: what is the current output of efibootmgr -v?
17:40
<
clever >
nmayhew: ahhh yeah, forgot about that route
17:36
<
clever >
sauyon: add the module to the imports list for the container config
17:27
<
clever >
nmayhew: it wants to merge all modules together, so you cant refer to your own value
17:27
<
clever >
nmayhew: ah yeah, thats because of how nixos options work
17:21
<
clever >
nmayhew: config.services.locale....
17:08
<
clever >
i cant even help you diagnose the problem, because they say "no dirty canadians allowed" :P
17:07
<
clever >
ive found that any attempts at drm just drive piracy up
17:05
<
clever >
anelson-: also look in chrome://components/
17:04
<
clever >
when you run the new chromium, it contacts the old one and spawns a new window
17:03
<
clever >
anelson-: did you fully quit chromium then re-launch it?
16:58
<
clever >
move in the same direction, but initiate at the other end, still as root on the receiver
16:58
<
clever >
and if root ssh is blocked, sudo nix-copy-closure --from bar
16:57
<
clever >
root doesnt check signatures
16:57
<
clever >
Myrl-saki: --to root@foo
16:46
<
clever >
anelson-: depends on if your installing chromium in systemPackages or nix-env
16:45
<
clever >
anelson-: chromium.enablePepperFlash = true; inside the nixpkgs config is one option
16:43
<
clever >
anelson-: and your sure it needs flash?, the last person that i helped wanted it for netflix (which doesnt use flash)
16:42
<
clever >
anelson-: why do you need flash working?
15:39
<
clever >
joepie91_to_go_: you must have a /boot mounted to /mnt/boot/ when doing nixos-install with efi
03:40
<
clever >
grantwu: i think the above commit merged staging into master
03:39
<
clever >
grantwu: 2203908e5fa7529183f43b6a9e7e11559b1fcde6
03:37
<
clever >
staging must have been merged into master after it was deemed stable
03:36
<
clever >
grantwu: and it says it was merged into staging
03:34
<
clever >
grantwu: in either case, hydra wont let anything broken reach nixos-unstable, so the breakage only makes the channel lag behind
03:34
<
clever >
grantwu: anything that seems simple is put right into master
03:34
<
clever >
grantwu: i think staging is mostly used for large changes that people think will break a lot
03:24
<
clever >
then just nix-shell with no args loads it
03:24
<
clever >
you can also make a shell.nix file with that string
03:23
<
clever >
nix-shell -E 'with import <nixpkgs> {}; callPackage ./default.nix {}'
02:55
<
clever >
Infinisil: oh, that sounds handy
02:45
<
clever >
thats used when modifying or creating a new entry
02:38
<
clever >
using efibootmgr, you can remove systemd-boot from the config
02:37
<
clever >
Infinisil: and he also has 2 efi binaries in the second one (systemd-boot and grub)
02:37
<
clever >
Infinisil: yeah
02:37
<
clever >
(delete it using efibootmgr)
02:36
<
clever >
i'm thinking delete systemd, but if it doesnt fall thru to grub, it will cease booting, and you would need the install cd to fix it
02:35
<
clever >
oh, maybe we want to set current, not next
02:34
<
clever >
ylwghst: what if you hold the option button and pick nixos-boot?
02:31
<
clever >
uefi firmware
02:31
<
clever >
Infinisil: so if you delete the partition first, you basicaly ruin the firmware forever
02:31
<
clever >
Infinisil: i have also heard of some crappy firmwares, that refuse to let you delete an efi entry with efibootmgr, if the matching efi system partition is MIA
02:29
<
clever >
ylwghst: looks good, lets see what happens when you reboot
02:26
<
clever >
ylwghst: yeah, i think that will fix the problem
02:24
<
clever >
Set BootNext to XXXX (hex)
02:24
<
clever >
-n | --bootnext XXXX
02:23
<
clever >
Infinisil: yeah, that looks much better
02:22
<
clever >
ylwghst: what does efibootmgr -v say?
02:20
<
clever >
its great for when you only need something once or twice and dont want to leave garbage around for years
02:19
<
clever >
ylwghst: once you leave the shell, efibootmgr is effectively gone
02:19
<
clever >
ylwghst: that opens a shell and puts efibootmgr into $PATH
02:19
<
clever >
Infinisil: do you know more about efibootmgr?, i dont remember how to make it list more details
02:15
<
clever >
ylwghst: try "nix-shell -p efibootmgr" and then just "efibootmgr"
02:13
<
clever >
its the efi boot manager, just run that command to print its current settings
02:12
<
clever >
ylwghst: and is it listed in the output of "efibootmgr" ?
02:11
<
clever >
Infinisil: do you know how to make nixos-rebuild copy grub to /boot/EFI and re-configure efibootmgr?
02:10
<
clever >
ylwghst: checking the config...
02:05
<
clever >
ylwghst: and also do nixos-rebuild switch --install-bootloader
02:04
<
clever >
ylwghst: what if you set boot.loader.efi.canTouchEfiVariables = true; ?
02:03
<
clever >
ylwghst: that will likely cause more problems
02:01
<
clever >
disasm: it was removed several months ago
01:56
<
clever >
ylwghst: try nixos-rebuild switch --install-bootloader
01:56
<
clever >
ylwghst: you need to make sure the efi is updated to run grub now
01:56
<
clever >
ylwghst: its probably still using systemd-boot
01:54
<
clever >
but nixpkgs-unstable can potentialy break a nixos machine, because it isnt tested
01:54
<
clever >
nixpkgs-unstable ignores those tests, and updates more often
01:54
<
clever >
nixos-unstable only updates when the nixos tests pass
01:45
<
clever >
ylwghst: this will also show what your generations are
01:45
<
clever >
ls -ltrh /nix/var/nix/profiles
01:45
<
clever >
ylwghst: and you want to put the insmod down a line, to get the indents right
01:43
<
clever >
you may need to use boot.loader.grub.extraEntriesBeforeNixOS to get it inserted sooner
01:43
<
clever >
ylwghst: but is it in the right spot?
01:41
<
clever >
ylwghst: and also look at the grub.conf in /boot, and see what it has generated
01:40
<
clever >
ylwghst: it may need an insmod setpci in the grub extraConfig
01:39
<
clever >
all of the ones not ending in -small will have good binary cache coverage
01:39
<
clever >
the branches on here match the channels perfectly
01:38
<
clever >
grantwu: depends on if your goal is to match up with a given channel, or match what you already have in /nix/store/
01:38
<
clever >
nix-instantiate --eval -E 'with import <nixpkgs> {}; lib.nixpkgsVersion'
01:38
<
clever >
ah, one sec
01:37
<
clever >
so check that out, then make a branch from there
01:37
<
clever >
i'm on revision 01c3847b9c
01:37
<
clever >
$ nixos-version
01:37
<
clever >
17.09pre110213.01c3847b9c (Hummingbird)
01:37
<
clever >
grantwu: nixos-version tells you what revision your currently on
01:34
<
clever >
nixos automatically copied it in now that grub is on
01:33
<
clever >
ylwghst: and you have setpci under /boot/grub/x86_64-efi
01:33
<
clever >
it installed both legacy and efi modules
01:31
<
clever >
ylwghst: now what is in /boot/grub/ ?
01:30
<
clever >
that option was invalid, and had zero effect on the system
01:30
<
clever >
systemd 100% ignores all grub options
01:29
<
clever >
ylwghst: now what is in /boot/grub/ ?
01:28
<
clever >
ylwghst: yes, grub.device is only for legacy booting, and macbooks dont support legacy
01:28
<
clever >
Infinisil: the last error is because grub was enabled, and the invalid .device = "/dev/sda3" is now being tried
01:27
<
clever >
ylwghst: and you need to do boot.loader.grub.efiSupport = true;
01:27
<
clever >
ylwghst: boot.loader.grub.device must be set to "nodev";
01:24
<
clever >
--argstr says its a string, and saves you the trouble
01:24
<
clever >
--arg system '"x86_64-linux"' for ex
01:24
<
clever >
--arg will try to parse the 2nd part as nix, so it would need double quotes, that are protected from bash eating them
01:23
<
clever >
adelbertc: that loads the default.nix in <nixpkgs>, which takes a system argument
01:22
<
clever >
adelbertc: another trick you can do: nix-build '<nixpkgs>' -A hello --argstr system x86_64-linux
01:21
<
clever >
adelbertc: ahhh, system is a sibling of config, so the 2nd one
01:20
<
clever >
ylwghst: the entries in boot.loader.grub only have an effect if you set boot.loader.grub.enable = true;
01:20
<
clever >
adelbertc: what file did you set system in, and what command are you running?
01:20
<
clever >
adelbertc: then that should come into play
01:19
<
clever >
adelbertc: ahh
01:19
<
clever >
adelbertc: although, what is the host?
01:19
<
clever >
distributed builds dont rely on any special value of system
01:19
<
clever >
adelbertc: what exactly are you trying to do?
01:19
<
clever >
adelbertc: and those are both nixos options
01:18
<
clever >
adelbertc: there is a config.system.build (where system is a set), and there is a config.nixpkgs.system (a string that sets the arch for the build)
01:13
<
clever >
you are currently using systemd-boot
01:13
<
clever >
only if grub is enabled
01:12
<
clever >
ylwghst: grub doesnt run on bootup, so all grub config is being ignored
01:11
<
clever >
ylwghst: you dont have grub enabled, so nothing grub related will have any effect
01:10
<
clever >
so nothing you do with grub will have any effect
01:10
<
clever >
ylwghst: you are using systemd-boot
01:09
<
clever >
ylwghst: what is currently in /boot/grub/ ?
01:09
<
clever >
and the nix-env copy wont update itself either
01:08
<
clever >
manualy copying them is fragile and will break horribly next time things upgrade
01:08
<
clever >
ylwghst: what is currently in /boot/grub/ ?
01:07
<
clever >
ylwghst: your not supposed to have grub files in that directory, why do you want to reach them?
00:37
<
clever >
yorick: yeah, meant to highlight the guy that DC'd right before then
00:36
<
clever >
Infinisil: meant to say efi only machine
00:36
<
clever >
yorick: ah, for pygrub, you would do boot.loader.grub.device = "nodev";
00:36
<
clever >
adelbertc: there are also 2 system attributes, one is a set, another is a string
00:36
<
clever >
adelbertc: its within config
00:35
<
clever >
Infinisil: it probably fails to rebuild, because he incorrectly setup legacy on a legacy-only machine
00:34
<
clever >
oh, wrong name, he DC'd
00:34
<
clever >
yorick: boot.loader.device is only for legacy booting
00:13
<
clever >
yeah, we just confirmed that
00:12
<
clever >
i have seen weird problems from people having 2 /boot's before
00:12
<
clever >
ylwghst: yeah, that is definitely apple only
00:09
<
clever >
mount -v /dev/sda1 /mnt ; ls -ltrhR /mnt; umount /mnt
00:08
<
clever >
please confirm
00:08
<
clever >
if you temporarily mount /dev/sda1 to /mnt, what is inside of it?
00:07
<
clever >
and that was not blkid on the second command
00:07
<
clever >
ylwghst: what is /dev/sda1 ?
00:05
<
clever >
what about "fdisk -l /dev/sda" and "blkid /dev/sda*" ?
00:05
<
clever >
yeah, thats mounted
00:04
<
clever >
can you gist the output of "df -h" ?
00:03
<
clever >
so df -h /boot/ shows the correct contents?
00:03
<
clever >
ylwghst: is it currently mounted?
00:03
<
clever >
ylwghst: do you have a /boot partition?
00:02
<
clever >
ylwghst: i would just ignore the vconsole error
00:01
<
clever >
adelbertc: (import master {}).dockerTools
00:00
<
clever >
ylwghst: cant, or it undoes it at reboot?
2017-08-09
23:58
<
clever >
customDockerTools = callPackage (master + "/pkgs/build-support/docker/docker.nix") {}
23:58
<
clever >
master = fetchFromGitHub { repo = "nixpkgs"; owner = "nixos"; rev = "??"; sha256 = "???"; }
23:57
<
clever >
is master checked out are you using using a fetchgit?
23:56
<
clever >
and uses the nixpkgs= entry
23:56
<
clever >
it does to $NIX_PATH
23:55
<
clever >
adelbertc: callPackage <nixpkgs/pkgs/build-support/docker/docker.nix> {};
23:45
<
clever >
ps aux | grep tty1
23:44
<
clever >
ylwghst_: are you doing anything strange in tty1?
23:44
<
clever >
ylwghst_: that just looks like systemd being weird, i usually ignore those
23:41
<
clever >
ylwghst_: and second, it will check /boot/grub/state, and if the content is "wrong", it will re-run grub-install to update the binaries in /boot with the latest version
23:41
<
clever >
ylwghst_: first, it will inspect the list on nixos generations, and auto-generate grub.conf, while obeying boot.loader.grub.extraConfig
23:41
<
clever >
ylwghst_: the grub on nixos will do 2 main things
23:40
<
clever >
ylwghst_: that error doesnt appear to have anything to do with grub