30 Dec 2021 |
@teutat3s:pub.solar | With commit 838bcd1f5114c93473fdd920d49dc5abba6577bf I get
error: anonymous function at /nix/store/cwj2aqdysszjvfzfx1n9zci1niinw3cx-source/pkgs/tools/misc/nix-direnv/default.nix:1:1 called with unexpected argument 'nix'
at /nix/store/cwj2aqdysszjvfzfx1n9zci1niinw3cx-source/lib/customisation.nix:69:16:
68| let
69| result = f origArgs;
| ^
70|
(use '--show-trace' to show detailed location information)
Replacing nix-direnv with nix-direnv-flakes fixes it locally. Can anybody reproduce this?
| 22:30:43 |
Pacman99 | Ohh you might be using a nixpkgs version before this commit: https://github.com/NixOS/nixpkgs/commit/c03040cfd5fef7dc99a7663c30e33df5ebec6984#diff-109dd75e2b95e3705a18a60bc6a49e3976b539194889520d4c5b920995070104 | 22:32:45 |
@teutat3s:pub.solar | hm no, nixos -> nixpkgs is on latest release-21.11 commit | 22:35:05 |
@teutat3s:pub.solar | I think I've got something else wrong | 22:36:05 |
Pacman99 | What is your nixos commit on? | 22:42:10 |
Pacman99 | nix flake metadata --json | jq .locks.nodes.nixos.locked.rev | 22:42:11 |
@teutat3s:pub.solar | That fix I mentioned wasn’t a real fix, because I replaced both nix-direnv in that line, and didn’t change it in the profile, so the override just didn’t do anything and passed | 22:42:20 |
Pacman99 | Because I'm thinking that this is the offending line: https://github.com/divnix/devos/blob/1cbf28f445caabc4f89798a7447ee0bee580b81b/overlays/overrides.nix#L19 | 22:43:12 |
Pacman99 | But on 21.11, nix is an argument for nix-direnv, so idk why its erroring out there | 22:43:36 |
@teutat3s:pub.solar | How do I check for that nix argument?
bud repl
:lf
…hostname.pkgs.nix-direnv.nix
? | 22:45:47 |
@teutat3s:pub.solar | That line 19 is the one | 22:46:44 |
Pacman99 | You can try Channels.nixos.nix-direnv.override.__functionArgs in bud repl | 22:52:26 |
@teutat3s:pub.solar | nix-repl> Channels.nixos.nix-direnv.override.__functionArgs
{ enableFlakes = true; fetchFromGitHub = false; gnugrep = false; lib = false; nixStable = false; nix_2_4 = false; stdenv = false; }
| 23:43:33 |
@teutat3s:pub.solar | ❯ nix flake metadata --json | jq .locks.nodes.nixos.locked.rev
"c7295777c97308ba7b0399c23d1e8bf15a1c7815"
| 23:44:38 |
Pacman99 | Ohh got it, I think I was on the wrong nixpkgs branch then | 23:53:47 |
Pacman99 | Uhh I think I can just remove the line altogether, since nix-direnv gets nixUnstable with the nix_2_4 argument | 23:54:15 |
4 Jan 2022 |
@cw:kernelpanic.cafe | Anybody up? I'd like to take another swing at this devos thing | 00:42:33 |
@cw:kernelpanic.cafe | home = {
imports = [ (digga.lib.importExportableModules ./users/modules) ];
modules = [ ];
importables = rec {
profiles = digga.lib.rakeLeaves ./users/profiles;
suites = with profiles; rec {
base = [ direnv git ];
};
};
users = {
cw = { suites, ... }: { imports = suites.base; };
}; # digga.lib.importers.rakeLeaves ./users/hm;
};
| 00:48:52 |
@cw:kernelpanic.cafe | Does a user need to be explicitly defined in here? | 00:49:02 |
@cw:kernelpanic.cafe | When that line is commented out, my users/cw/default.nix fails | 00:49:43 |
@cw:kernelpanic.cafe | which I thought was what digga.lib.rakeLeaves was doing? | 00:50:06 |
@cw:kernelpanic.cafe | Redacted or Malformed Event | 00:51:18 |
@cw:kernelpanic.cafe | { hmUsers, lib, ... }:
{
home-manager.users = { inherit (hmUsers) cw; };
users.users.cw = {
uid = lib.mkDefault 1000;
password.hashedPassword = "$6$password_hash_here/";
description = "I run this bitch.";
isNormalUser = true;
extraGroups = [ "wheel" ];
openssh.authorizedKeys.keyFiles = [
/home/cw/.ssh/id_nixos.pub
];
};
}
| 00:51:45 |
Pacman99 | Yeah users shouldn't need to be set | 00:51:56 |
Pacman99 | I think thats only important for homeConfigurations or portableHomeConfigurations | 00:52:13 |
@cw:kernelpanic.cafe | I get error: attribute 'cw' missing, at when I don't set user in flake.nix | 00:52:57 |
Pacman99 | Uhh wait nvm I might be wrong | 00:53:01 |
@cw:kernelpanic.cafe | at line 3 in the second comment | 00:53:04 |
@cw:kernelpanic.cafe | home-manager.users = { inherit (hmUsers) cw; }; | 00:53:10 |
@cw:kernelpanic.cafe | * at line 3 in users/cw/default.nix | 00:54:05 |