12 Oct 2024 |
qbit | oh hrm: nix (Nix) 2.18.4 | 14:08:54 |
qbit | oh, maybe my machine isn’t using the module.. | 14:09:41 |
qbit | k, added it to the modules, but when I try to do darwin-rebuild switch —flake github:qbit/xin —refresh i get:
building the system configuration...
error:
… while setting up the build environment
error: getting attributes of path '/private/tmp/nix-build-builder.pl.drv-0/build: Permission denied
| 14:15:58 |
qbit | guess i’ll try as root :P | 14:16:23 |
qbit | lel, same result | 14:16:30 |
qbit | so i guess the underlying nix install is busted? | 14:48:00 |
ocharles | Very vague one but maybe someone here can help... I recently (a month ago maybe?) saw a project that I think was some kind of alternative frontend to nixos-rebuild that showed version changes for apps that were upgraded. Does that ring a bell to anyone? | 15:36:58 |
K900 | nvd? | 15:37:48 |
hexa | In reply to @hexa:lossy.network
system.activationScripts.diff = {
supportsDryActivation = true;
text = ''
PATH=${lib.makeBinPath (with pkgs; [ nvd config.nix.package ])}:$PATH
if [[ -e /run/current-system ]]; then
# ${config.nix.package}/bin/nix --extra-experimental-features nix-command store diff-closures /run/current-system "$systemConfig"
nvd diff $(ls -dv /nix/var/nix/profiles/system-*-link | tail -2)
fi
'';
};
^ | 15:39:53 |
ocharles | K900: This looks like it might be it, yea! Though I swore I saw it on GitHub | 15:40:48 |
ocharles | Maybe it was mirrored there though | 15:40:57 |
hexa | check the snippet though 😄 | 15:41:05 |
ocharles | Yea that is cool :) | 15:42:11 |
qbit | ya, reinstalled nix and now it seems to be working | 15:42:32 |
qbit | FAILED: doc/manual/nix-env-delete-generations.1
/private/tmp/nix-build-lix-2.91.0.drv-0/source/doc/manual/./render-manpage.sh --out-no-smarty 'nix-env --delete-generations' 1 doc/manual/markdown/command-ref/nix-env/delete-generations>
sandbox initialization failed: Operation not permitted
lowdown: sandbox_init: Operation not permitted
| 16:42:18 |
qbit | crap | 16:42:21 |
qbit | mm, HEAD of lix builds fine | 17:52:12 |
qbit | maybe i should just switch to that | 17:52:17 |
ToxicFrog | So, running into an issue with imperative, per-user packages Something that invokes the command-not-found handler results in messages saying to, e.g., use nix-env -iA nixpkgs.vim.out to install vim Actually running it says that it can't resolve nixpkgs
$NIX_PATH includes nixpkgs=/etc/channels/nixos , but I gather that only works for <nixpkgs> and not for whatever nix-env is doing So what am I missing here? | 18:51:17 |
ToxicFrog | nix-env --install vim also doesn't work, and it seems like it should based on the man page. | 18:52:00 |
ToxicFrog | nix-env --dry-run --install -A nixpkgs.vim as root instead gets me error: profile '/nix/var/nix/profiles/default' is incompatible with 'nix-env'; please use 'nix profile' instead | 18:57:17 |
ToxicFrog | Ok, after some experimentation, it looks like what's happening is that that user's home directory doesn't include a nix-profile | 19:07:55 |
ToxicFrog | So nix-index displays the nix-env commands rather than the nix profile commands | 19:08:08 |
ToxicFrog | But nix-index still uses the flake registry or something to find the packages | 19:08:22 |
ToxicFrog | So it tells the user to install nixpkgs.vim even though there is no nixpkgs channel on this machine | 19:08:36 |
13 Oct 2024 |
| Emma [it/its] joined the room. | 05:27:11 |
Emma [it/its] | 👋 lix/i686, should i expect it to work or not? | 05:32:59 |
Emma [it/its] | main reason im wondering is that it feels like lix is faster than stock cppnix | 05:41:40 |
V. 🏳️⚧️ | That is correct | 06:22:04 |
KFears (tragedy arc) | Made my first proper CL to Lix yesterday 🎉 | 07:22:10 |