<clever>
`nix-shell '<nixpkgs>' -A linux` then `unpackPhase ; cd linux-4.19.33/`
<clever>
similar commands have worked for me in the past
<clever>
nh2: all i can think of is to google it
<clever>
runtime deps are a subset of buildtime deps, based on what paths are in the $out
<clever>
thats how build-time deps work in nix
<clever>
when you put a string with context into a derivation, the derivation will depend on everything in the context
<clever>
nh2: yeah, that should have worked...
<clever>
nh2: i'm able to build a kernel under nix-shell
<clever>
pie_: same :P
<clever>
dycan: you can use `nixos-enter` to chroot into it, the man page for `journalctl` also says how to open the logs of another fs mounted at not /
<clever>
you need either a rust specific override function, or to just modify the file and callPackage your new one
<clever>
pie_: and overrideAttrs cant update the cargo cache or cargosha256
<clever>
pie_: ah, buildRustPackage has to process the src, and create a cargo cache
<clever>
why does it have 2 srcs?
<clever>
pie_: next, try comparing the src of both, nix-build -A cntr.src on the old, then check your src in /nix/store/syppz54ksr35kjy62362jw5m1mv86cs7-source or /nix/store/0bph7415azz4asa9v4bsyj7jscrb8idb-cntr-1.2.0-vendor ...
<clever>
pie_: what was src set to originally?
<clever>
pie_: is the sha256 correct?
<clever>
nice!
<clever>
ah, ddellacosta already said that, lol
<clever>
dycan: changes wont be saved, and it only takes effect for a single boot
<clever>
dycan: when nixos is booting, you can just hit e on any option in the menu to edit it
<clever>
dycan: what if you edit the cmdline in grub, and add `single` to the end of it? or `init=/bin/sh` ?
<clever>
dang, tab-complete keeps messing up! lol
<clever>
dycan: and then run (i think) nix-store --add-fixed sha256 ./gcc-5-base_5.4.0-7.really.6+steamrt1.1+srt2_amd64.deb
<clever>
dycan: try finding a copy of gcc-5-base_5.4.0-7.really.6+steamrt1.1+srt2_amd64.deb on another mirror
<clever>
dycan: have you tried booting an older generation at the grub menu?
<clever>
oh, i was thinking of nixos-generate-config, not the kernel config
<clever>
nh2: ive noticed purity problems with it before, if any mass-storage is plugged in, it bakes mass-storage support into the initrd
<clever>
though now that i look at it, i feel the urge to rewrite half of it, lol
<clever>
gchristensen: and i'm thinking the plugins should support existing outside of the nixops repo
<clever>
infinisil: just have a backend of terraform:aws that you set in nixops
<clever>
gchristensen: then packet.net, ovh, and DO, would provision hardware with apis, call the above plugin, (optionally reboot), and then deploy as normal
<clever>
gchristensen: i also want modular plugins, for example, a plugin that takes root on a rescue shell and just installs nixos
<clever>
infinisil: and then there could be a terraform wrapper/plugin, that just abuses terraform for provisioning, and then does the rest with nixops
<clever>
infinisil: my idea, is to make nixops more plugin based, so you can add any backend or util you want
2019-04-16
<clever>
and have plans to extend it further
<clever>
i prefer nixops
<clever>
gchristensen: oops!
<clever>
pxc: or `phases=configurePhase genericBuild` which handles that detection logic for you
<clever>
pxc: you need to eval $configurePhase (the env variable)
<clever>
pxc: `configurePhase` in nix-shell runs the bash function, not the new definition
<clever>
pxc: did you redefine configurePhase?
<clever>
pie_: i know it tends to fail erase cycles if exposed to lots of xrays, lol
<clever>
gchristensen: you could also just use nixops or a variant
<clever>
gchristensen: that will create a dummy configuration.nix (based on some cfg) at bootup, so you can then nixos-rebuild
<clever>
fatal: 'acbdaa569f4ee387386ebe1b9e60b9f95b4ab21b' does not appear to be a git repository
<clever>
jophish: --arg can supply foo, bar, and baz
<clever>
{ foo }: { a = { bar }: { b = { baz }: "${foo}${bar}${baz}"; }; };
<clever>
note, that --arg will call functions at many levels
<clever>
what rev of nixpkgs does this happen on?
<clever>
`--argstr system` will just execute functions with { system = "x"; }
<clever>
`--option system` will mutate `builtins.currentSystem` which fully convinces nix you are X
<clever>
jophish: what about `--option system armv7-linux` on an x86 machine?
<clever>
jophish: where is openssh appearing then, when it does appear?
<clever>
is openssh in the inputs in the drv?
<clever>
jophish: are you using nix-diff to compare them?
2019-04-13
<clever>
brb
<clever>
then either the config telling it where to log isnt set, or the package is broken
<clever>
laalf: what does ls -lhd say about data?
<clever>
linarcx: data doesnt even exist, its trying to create logs in the immutable store
<clever>
ls: cannot access '/nix/store/qmf09w1k84073yxm0k57d7nhncvgav87-nextcloud-15.0.6/data/': No such file or directory
<clever>
laalf: is data a symlink?
<clever>
growpotkin: and my memory is just wonky, ive memorized most of nixpkgs, lol
<clever>
growpotkin: i dont contribute much to nixpkgs, but i do use nix heavily at work, and do a lot of crazy things with it
<clever>
and `complete` (at least under bash) shows what function to run for each cmd
<clever>
growpotkin: i think if you run `set`, you can see the functions involved in that
2019-04-11
<clever>
WARNING #2: Do not use /dev/disk/by-uuid/… or /dev/disk/by-label/… as your swap device when using randomEncryption as the UUIDs and labels will get erased on every boot when the partition is encrypted. Best to use /dev/disk/by-partuuid/…
<clever>
_Geeko_: ahh, systemPackages has gotten more strict, one min
<clever>
_Geeko_: looks right to me, what error does it give?
<clever>
_Geeko_: can you pastebin that file and any erorrs its giving?
<clever>
_Geeko_: just make a directory like /etc/nixos/foo/share/themes, drop some themes into it, and then add ./foo to your systemPackages in configuration.nix
<clever>
which could be as simple as environment.systemPackages = [ ./foo ];, and then create a foo/share/themes
<clever>
_Geeko_: packages containing themes have to be added to environment.systemPackages
<clever>
_Geeko_: you must configure that in configuration.nix
<clever>
infinisil: :O, i could see that helping performance in some cases
<clever>
This feature enables the use of the Edon-R hash algorithm for checksum, including for nopwrite (if compression is also enabled, an overwrite of a block whose checksum matches the data being writ‐
<clever>
infinisil: if the previous one fails to unlock the device, it will just prompt again