2017-10-09
15:22
<
clever >
nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs:.....
15:22
<
clever >
[root@amd-nixos:~]# echo $NIX_PATH
15:22
<
clever >
gchristensen: legacy stuff
15:20
<
clever >
trying to brb, lol
15:16
<
clever >
pop: ~/.config/nixpkgs/config.nix
15:16
<
clever >
tilpner: the nixpkgs manual sort of
15:15
<
clever >
nix-env -iA nixos.mystuff
15:15
<
clever >
{ packageOverrides = pkgs: { mystuff = { inherit (pkgs) hello firefox chromium; }; }; }
15:14
<
clever >
pop: #2, create a set of packages in config.nix, and nix-env -iA nixos.setname
15:13
<
clever >
pop: 2 options
15:13
<
clever >
makefu: that would help a lot
15:12
<
clever >
makefu: i have played with "nixos-rebuild build-vm" on gentoo before
15:12
<
clever >
makefu: yeah, things have improved with linode, but the old guide is still handy to forcibly install nixos-install on any distro
15:07
<
clever >
ij: you may need to run nix-daemon as root, and then set NIX_REMOTE=daemon for the non-root user
15:06
<
clever >
ij: which user did that error happen as?
15:04
<
clever >
ij: is that of any use?
15:00
<
clever >
it tries to throw temp symlinks into the current directory
15:00
<
clever >
ij: run it in a different directory
15:00
<
clever >
ij: dont run that in /boot
14:54
<
clever >
ij: can you pastebin the full error, and several lines around it
14:52
<
clever >
nh2: it has changed at least once since i began using nixos
14:50
<
clever >
viric: and every time you leave nix-shell, you have to remove it to let nix-shell work again
14:50
<
clever >
nh2: nix doesnt allow any setuid files within /nix/store/, so nixos has to create wrappers at bootup, that add the setuid in
14:48
<
clever >
nh2: only /run/wrappers/bin/sudo is setuid root
09:00
<
clever >
otwieracz: but i'm getting an error i cant really make sense of when trying to add cl-curl to the package list
08:59
<
clever >
otwieracz: and then it will have the env setup right
08:59
<
clever >
otwieracz: once cl-curl is packaged, you should be able to do something like nix-shell -A lispPackages.cl-curl
08:40
<
clever >
hyper_webirc: so /dev/ will cover the luks devices, and any other things you may have in the future
08:39
<
clever >
hyper_webirc: everything in mapper is just a symlink to a node in /dev/
08:39
<
clever >
lrwxrwxrwx 1 root root 7 Sep 24 10:12 media-swap -> ../dm-0
08:39
<
clever >
[root@nas:~]# ls -l /dev/mapper/
08:38
<
clever >
hyper_webirc: this has to go into configuration.nix
08:38
<
clever >
hyper_webirc: boot.zfs.devNodes = "/dev";
08:38
<
clever >
hyper_webirc: i gave you the config to fix that yesterday
08:36
<
clever >
hyper_webirc: my laptop is setup with zfs on lvm on luks
08:32
<
clever >
and why are you using a different one?
08:32
<
clever >
otwieracz: where are you getting your cl-curl from then?
08:27
<
clever >
its now genrating packages
08:27
<
clever >
i added cl-curl to the txt file, and ran the provided nix-shell command
08:13
<
clever >
otwieracz: done
08:13
<
clever >
[nix-shell:~]$ quicklisp --version
08:13
<
clever >
Unknown parameter [--version]
08:11
<
clever >
otwieracz: can you pastebin a simple lisp program that uses openssl or curl, and the command to compile/run it?
08:09
<
clever >
otwieracz: and what is in /run/current-system/sw/lib/ ?
08:07
<
clever >
otwieracz: nix-env puts it into ~/.nix-profile/{bin,lib}
08:07
<
clever >
otwieracz: nix-shell puts them in env variables, systemPackages puts it into current-system
08:06
<
clever >
otwieracz: libraries that are installed land in /run/current-system/sw/lib/
07:58
<
clever >
can you write an example program that has the same problem?
07:57
<
clever >
otwieracz: can you paste some example code and how to run it?
07:57
<
clever >
"LD_LIBRARY_PATH=/nix/store/54cdgs1hvjp9jzj935jhanndcdnlxvpq-curl-7.55.1/lib"
07:57
<
clever >
nix-repl> "LD_LIBRARY_PATH=${lib.makeLibraryPath [ curl ]}"
07:56
<
clever >
you can set LD_LIBRARY_PATH to change the search path
07:55
<
clever >
does that accept the -I flag?
07:54
<
clever >
so when you #include <curl.h>, it just works
07:53
<
clever >
otwieracz: and the gcc in nix will obey that search path
07:53
<
clever >
otwieracz: nix will set $NIX_CFLAGS_COMPILE to include the right -I flags
07:46
<
clever >
it will be far simpler to work with if you do it the right way
07:46
<
clever >
the stdenv in nixos isnt really made to work under an FHS env, you will be fighting the normal code all the way
07:39
<
clever >
otwieracz: "nix-shell -p curl stdenv", this will give a shell that can build things
07:38
<
clever >
compiling isnt meant to run under the FHSUserEnv
07:37
<
clever >
you must use nix-shell to get an environment that can use headers
07:37
<
clever >
nixos doesnt install header files
2017-10-08
21:38
<
clever >
this string is passed to -d within the initrd
21:38
<
clever >
boot.zfs.devNodes = "/dev"; # fixes some virtualmachine issues
21:37
<
clever >
so the initrd can also find it
21:37
<
clever >
there is a matching nixos option you will need
21:34
<
clever >
hyper_ch: you may need to tell import to look in /dev/mapper/
21:34
<
clever >
-d dir Searches for devices or files in dir. The -d option can be specified multiple times
19:40
<
clever >
mmts: any time you make any change to configuration.nix or nix-channel, the grub config will get regenerated
19:35
<
clever >
mmts: you may want to fix the python in pygrub, since nixos-rebuild will put the double-slashes in every time you change something
19:35
<
clever >
mmts: ah, then i was off about grub.cfg being 1, but it sounds like it still fixed it
19:28
<
clever >
tilpner: but it sounds like you cant even have 2 roots on the same user (or maybe even machine wide)
19:27
<
clever >
tilpner: i was hoping there was some windows utility to just unpack the tarball and execute an ELF with chroot
19:25
<
clever >
tilpner: but you need to install a full ubuntu image just to unpack the nixos tar, lol
19:24
<
clever >
tilpner: i was interested in building a nixos image purely, using nix, then just installing and running it
19:20
<
clever >
tilpner: so if you wanted to install another distro, you have to untar it inside WSL, then use explorer to perform an atomic move and swap the entire root dir
19:19
<
clever >
tilpner: ive also looked into it some, it has no pid 1, and the +rwx bits are stored on NTFS extended attributes, which no windows program can recreate (explorer even looses them upon copy)
19:17
<
clever >
tilpner: ive seen screenshots of the entire gnome desktop env running
19:11
<
clever >
and nix will complain about any missing paths
19:11
<
clever >
hyper_ch: so if you rollback the database, every "new" path will be invalid, and nix will delete it
19:11
<
clever >
hyper_ch: db.sqlite keeps track of what paths are valid in /nix/store/
19:10
<
clever >
mmts: that will force it to 1 while letting you keep domU.nix
19:10
<
clever >
mmts: try just doing boot.loader.grub.version = lib.mkForce 1;
19:09
<
clever >
hyper_ch: you could, but anything you added since the backup will get eaten as invalid data
19:09
<
clever >
hyper_ch: you never did anything with the sqlite files
19:07
<
clever >
then the remote one shut itself off
19:07
<
clever >
infinisil: it used x11 RPC to open a new window in the local session
19:07
<
clever >
infinisil: oh, did you already have a firefox running locally?
19:06
<
clever >
infinisil: where is the target machine?
19:06
<
clever >
hyper_ch: also try /nix/var/nix/binary-cache-v3.sqlite
19:06
<
clever >
first time ive seen that happen
19:06
<
clever >
which would mean your entire nix store is now hosed
19:05
<
clever >
hyper_ch: probably /nix/var/nix/db/db.sqlite
19:05
<
clever >
since ssh makes new keys
19:05
<
clever >
i dont think copying will work right
19:04
<
clever >
try creating the xauth file with touch
19:04
<
clever >
the other one goes into services.openssh.extraConfig
19:03
<
clever >
programs.ssh.forwardX11 controls /etc/ssh/ssh_config (client config
19:02
<
clever >
programs.ssh.forwardX11 is for the client, it requests forwarding to happen
19:01
<
clever >
ona: services.openssh.forwardX11 is for the server, it allows forwarding
19:01
<
clever >
infinisil: one is only for server, the other is only for client
19:01
<
clever >
infinisil: i see 2 different forwardX11 options in nixos
18:59
<
clever >
infinisil: within the ssh session, is $DISPLAY and XAUTHORITY set?
18:59
<
clever >
mmts: i think grub.cfg is grub 1, so you have to tell nixos to use grub 1
18:58
<
clever >
infinisil: what methods have you tried?
18:54
<
clever >
mmts: and the only way to do that, is to either go HVM and run grub inside the guest, or use pvgrub
18:54
<
clever >
mmts: nixos relies heavily on being able to edit its own grub config every time you nixos-rebuild, and that the bootloader obeys it
18:46
<
clever >
which means doing a full hvm guest with grub in the virtual MBR
18:45
<
clever >
mmts: ive done it once before, its a bit tricky, because you have to obey the grub.conf
18:31
<
clever >
tilpner: but yeah, bare xterm does clip things when the window shrinks, and the text doesnt come back upon growing in size
18:31
<
clever >
tilpner: whenrunning screen, text reflow works fine in my terminals
16:17
<
clever >
and again with -v
16:16
<
clever >
hyper_ch: what does "zpool events" say?
16:08
<
clever >
i havent gotten io errors on my arrays
16:02
<
clever >
ive read the source for grub
16:02
<
clever >
when grub is installed into the MBR, the boot flag means nothing
16:02
<
clever >
hyper_ch: the boot flag in the partition table hasnt done anything in decades
16:01
<
clever >
but then somebody started to spam
16:00
<
clever >
if the channel was -n, it could message without joining
16:00
<
clever >
bonk``: because it also reports to projects other then nixos
07:38
<
clever >
i need to get to bed now, its 4:30 am
07:38
<
clever >
you can do ./../../foo
07:37
<
clever >
making everything relative will fix it
07:37
<
clever >
something got changed recently and its a bit wonky
07:37
<
clever >
oh, and did you use an absolute or relative path for hardware-configuration.nix?
07:37
<
clever >
the nixos-config will need to be adjusted a bit
07:35
<
clever >
that is the default value
07:35
<
clever >
nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs:nixos-config=/etc/nixos/configuration.nix:/nix/var/nix/profiles/per-user/root/channels
07:33
<
clever >
unset it, then try nixos-rebuild boot again
07:32
<
clever >
srhb-console: env | grep /run/user
07:31
<
clever >
unset the tempdir variable
07:30
<
clever >
srhb-console: nixos-install --chroot
05:58
<
clever >
mbrgm: either disable the auto-update, or run it in an FHS env like steam does
05:55
<
clever >
mbrgm: then the only problem would be #!/usr/bin/perl and the perl search path
05:54
<
clever >
mbrgm: it will have the wrong elf headers, and you have to re-run patchelf over it every time it updates
05:51
<
clever >
yeah, it is in patches
05:45
<
clever >
gandreani: did you add it to the patches attribute of the derivation?
2017-10-07
19:49
<
clever >
infinisil: give cp -vs a try
19:49
<
clever >
infinisil: yeah, the symlink points to a bar inside foo
19:48
<
clever >
and also if you give it multiple sources or not
19:48
<
clever >
cp, ls, and ln behave wildly different depending on if the destination exists or not, and what the type of the destination is
19:14
<
clever >
netflix knows one of them is a lie, and blocks everything
19:13
<
clever >
infinisil: v4 says i'm in canada, v6 says i'm in america
19:13
<
clever >
infinisil: so i'm using a tunnel
19:13
<
clever >
infinisil: the reason its broken, is because my isp doesnt offer v6
19:11
<
clever >
infinisil: and android gives no way to turn v6 off
19:11
<
clever >
infinisil: ive got other weird problems, netflix only works over v4, v6 complains loudly
2017-10-06
21:19
<
clever >
disasm: what happens if you manualy run the same command?
20:58
<
clever >
yeah, you sort of need some system level config for that
20:57
<
clever >
Mic92: it could obey overrides set within config.nix
20:52
<
clever >
Mic92: then symlink it from the profile to /etc/nix/
20:52
<
clever >
Mic92: i would just yank the nix expression from nixos, and then throw it into config.nix, and nix-env -iA nixpkgs.custom_nix_conf
15:44
<
clever >
so systemd doesnt consider it "online" until it says its online
15:44
<
clever >
it will need to use sd_notify and type=notify
15:41
<
clever >
proc and sys all have 0 byte files with real content
15:41
<
clever >
then reading that many
15:41
<
clever >
ah yeah, i remember something about nix checking the length with stat
15:37
<
clever >
and can then switch to the right image
15:37
<
clever >
i would have done that server side, the boot.php script given to ipxe gets the mac
15:35
<
clever >
sphalerite: dhcp has a protocol in it, to assign the hostname that the dhcp server gave it
15:30
<
clever >
sphalerite: i dont think systemd has any units that wait for dns to be working
07:12
<
clever >
fearlessKim[m]: yeah
06:57
<
clever >
it has a read-only mode
06:56
<
clever >
it may only notice it upon read
06:56
<
clever >
fearlessKim[m]: dce = if pkgs ? ns3 then something else pkgs.dce;
06:55
<
clever >
its possible you have bad sectors
06:53
<
clever >
hyper_ch: what files?
06:22
<
clever >
and it has enough ram
06:22
<
clever >
as long as nixos can boot on it, and fire up the network and sshd without user intervention
06:21
<
clever >
even if its on the other side of the world
06:21
<
clever >
you can now turn ANY linux machine into a nixos machine
06:21
<
clever >
ssh back in, run justdoit, reboot
06:21
<
clever >
and fire up sshd so you can get in
06:21
<
clever >
in the case of this script, it will then boot nixos from a ramdisk
06:20
<
clever >
and then line 31 just improperly kills the currently running os, and gives the loaded kernel control of the CPU
06:20
<
clever >
this loads a kernel and initrd into ram
06:20
<
clever >
it replaces the currently running OS with another one
06:19
<
clever >
then just boot, and run justdoit
06:18
<
clever >
build that into an installer image (kexec, iso, netboot image, nixos-install to a usb stick)
06:18
<
clever >
line 72 adds itself to systemPackages
06:18
<
clever >
line 8-30 defines some additional options you can tweak to customize it
06:18
<
clever >
hyper_ch: its a nixos module that you add to the imports of a nixos
06:17
<
clever >
hyper_ch: yes
00:21
<
clever >
havent seen the name before
00:20
<
clever >
yeah, been thinking about that a bit lately
00:19
<
clever >
gchristensen: dang, already merged, orivej beat you to it
00:19
<
clever >
gchristensen: yes
00:17
<
clever >
that lets you override most options in nix.conf
00:17
<
clever >
viaken: nix-build --option build-use-sandbox true
00:17
<
clever >
yeah, its generated by nix
00:14
<
clever >
oops, wrong name on that 2nd msg
00:13
<
clever >
nicklaf: the entry in configuration.nix is used to generate nix.conf, when you run nixos-rebuild
00:13
<
clever >
viaken: nix will use whatever is in /etc/nix/nix.conf
2017-10-05
22:06
<
clever >
cement: there is also a nixos option for it
20:59
<
clever >
iqubic: the code in the current build of nixos generates the menu for all of them
20:58
<
clever >
sphalerite: ipxe reports its mac to the boot.php file, which then decides what to boot, based on a switch/case statement
20:56
<
clever >
MichaelRaskin: it needs the stateVersion to continue using the "right" version for your database
20:55
<
clever >
MichaelRaskin: yeah
20:52
<
clever >
the on-disk format for postgresql databases also changed
20:51
<
clever >
iqubic: but applying that change would set off mitm warnings for every single client
20:51
<
clever >
iqubic: for example, the ssh hostkey type was changed
20:51
<
clever >
iqubic: backwards compatability problems
20:51
<
clever >
iqubic: yes
20:50
<
clever >
iqubic: because that would break the very things its meant to fix
20:49
<
clever >
iqubic: no
20:49
<
clever >
sphalerite: then i added the grub and ipxe, when i ported it to a laptop
20:49
<
clever >
sphalerite: i had originally written it with a fat32 /boot on the SD card of an rpi
20:49
<
clever >
sphalerite: this also works with a local /boot on each machine
20:49
<
clever >
sphalerite: never got around to that, and i wrote this before the initrd supported networking
20:48
<
clever >
sphalerite: so when grub tries to read the local hdd, it transparently gets relayed over iscsi
20:48
<
clever >
sphalerite: sanboot in ipxe is part of the magic, it hijacks the legacy bios api for the hdd's
20:47
<
clever >
sphalerite: do you see how simple line 7-10 of configuration.nix is?
20:47
<
clever >
csingley: -I prepends things to the search path, so the old nixos-config in $NIX_PATH survives
20:47
<
clever >
csingley: use -I instead
20:46
<
clever >
let me find the gist
20:45
<
clever >
sphalerite: i did that on one of my laptops
20:45
<
clever >
sphalerite: another option is iscsi rootfs
20:44
<
clever >
sphalerite: ah, like not-os
20:42
<
clever >
sphalerite: but also, what kind of changes are you needing to make to this installer after it boots?
20:41
<
clever >
sphalerite: nixos-rebuild the small changes after boot?
20:41
<
clever >
sphalerite: sure
19:47
<
clever >
which was world-readable
19:47
<
clever >
ive seen a similar problem in redhat, the root password was in a log file of all input the installer received
19:33
<
clever >
skimming thru the comments, i think it saves the password into the hint field
15:56
<
clever >
nixy: makeWrapper $originalcmd $out/bin/wrapper
15:55
<
clever >
pie_: first, you appear to want callPackage, eggs = callPackage ./eggs.nix {};
14:41
<
clever >
savage: you may also need to uninstall gcc and the linker, to avoid any potential problems
10:12
<
clever >
graperoot: wine.override { wineBuild = "wineWow"; };
10:11
<
clever >
graperoot: one min
2017-10-04
16:48
<
clever >
graperoot: what exactly does leksah do?, ive just been doing everything in vim and ghci
16:41
<
clever >
graperoot: this successfully builds leksah
16:41
<
clever >
graperoot: [clever@amd-nixos:~/apps/nixpkgs]$ nix-build -E 'with import ./. {}; leksah.override { ghcWithPackages = (haskellPackages.override { overrides = self: super: { ltk = haskell.lib.doJailbreak super.ltk; leksah-server = haskell.lib.dontCheck super.leksah-server; leksah = haskell.lib.doJailbreak super.leksah; }; }).ghcWithPackages; }'
16:15
<
clever >
graperoot: i'm testing a second override
16:12
<
clever >
then other things got updated
16:12
<
clever >
it probably worked when it was originally packaged
16:10
<
clever >
but got: Right (PlanJson {pjPlan = [PlanItem {piId = "Cabal-1.24.0.0", piType = "pre-existing", piComps = [(ComponentLib,fromList ["array-0.5.1.1","base-4.9.0.0"])]},PlanItem {piId = "QuickCheck-2.9.1-ec9a1c39266d75ed2c3314f6e846a8f11853eff43fc45db79c7256d9bfd94602", piType = "configured", piComps = [(ComponentLib,fromList ["base-4.9.0.0","containers-0.5.7.1","random-1.1-fe6ccf72ebd63a2d68570bb45b42bd08df5570c6151cb9af54907d40ef9af454"])]}], pjCabalVersion =
16:10
<
clever >
expected: Right (PlanJson {pjPlan = [PlanItem {piId = "Cabal-1.24.0.0", piType = "pre-existing", piComps = [(ComponentLib,fromList ["array-0.5.1.1","base-4.9.0.0"])]},PlanItem {piId = "QuickCheck-2.9.1-ec9a1c39266d75ed2c3314f6e846a8f11853eff43fc45db79c7256d9bfd94602", piType = "configured", piComps = [(ComponentLib,fromList ["base-4.9.0.0","containers-0.5.7.1","random-1.1-fe6ccf72ebd63a2d68570bb45b42bd08df5570c6151cb9af54907d40ef9af454"])]}]})
16:10
<
clever >
graperoot: and now it has compile errors in leksah-server
16:09
<
clever >
and grabs the ghcWithPackages function from the new haskellPackages, and uses override on leksah to change which ghc it uses
16:09
<
clever >
then it uses override to pass that overrides function to haskellPackages
16:08
<
clever >
then it makes a set containing the new ltk, and returns that from a self-super function stored in the overrides argument
16:08
<
clever >
at the deepest layer, it calls doJailbreak on ltk, which disables the version requirements in the cabal file
16:07
<
clever >
graperoot: testing this mouthfull of nix expression
16:07
<
clever >
[clever@amd-nixos:~/apps/nixpkgs]$ nix-build -E 'with import ./. {}; leksah.override { ghcWithPackages = (haskellPackages.override { overrides = self: super: { ltk = haskell.lib.doJailbreak super.ltk; }; }).ghcWithPackages; }'
16:05
<
clever >
you may still want to --update, to get the latest version
16:05
<
clever >
--add doesnt take effect until you --update
16:04
<
clever >
xd1le: and did you nix-channel --update ?
16:03
<
clever >
xd1le: did you read its man page?
16:03
<
clever >
looking into that ...
16:02
<
clever >
graperoot: it downloads version 1.0, then the cabal file demands 0.0.*
16:02
<
clever >
haskell-gi-overloading ==0.0.*
16:01
<
clever >
i can confirm the same problem on this end
16:00
<
clever >
xd1le: double-check with nix-channel --list that you gave it the right name, and there is only one channel
15:59
<
clever >
xd1le: your -I is pointing to a path that only exists on the host, use nix-channel instead
15:59
<
clever >
graperoot: so leksah never even started to build, the problem is over in ltk
15:57
<
clever >
graperoot: it normally has an exit code after the word failed
15:57
<
clever >
graperoot: was there anything else on that line?
15:56
<
clever >
graperoot: to start with, what package did nix say failed to build?
15:56
<
clever >
graperoot: you need to create an override against the package that is failing to build
15:55
<
clever >
graperoot: they are all sandboxed
15:55
<
clever >
graperoot: nix builds never see anything you install with nix-env
15:54
<
clever >
hyper_webirc: i wrote that before zfs had encryption
15:54
<
clever >
graperoot: nothing you install manualy can be used by a nix build
15:33
<
clever >
and it can use swap
15:33
<
clever >
linux defaults to 50% for a tmpfs
15:33
<
clever >
yeah, its trying to build the entire target on a ramdisk
15:32
<
clever >
xd1le: mount /nix/.rw-store -o remount,size=5g