!UUqahLbShAYkkrXmKs:matrix.org

DevOS

35 Members
Seeking help and geeking out together on https://github.com/divnix/devos & https://github.com/divnix/digga10 Servers

Load older messages


SenderMessageTime
30 Dec 2021
@teutat3s:pub.solar@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
@pachumicchu:myrdd.infoPacman99Ohh you might be using a nixpkgs version before this commit: https://github.com/NixOS/nixpkgs/commit/c03040cfd5fef7dc99a7663c30e33df5ebec6984#diff-109dd75e2b95e3705a18a60bc6a49e3976b539194889520d4c5b92099507010422:32:45
@teutat3s:pub.solar@teutat3s:pub.solar hm no, nixos -> nixpkgs is on latest release-21.11 commit 22:35:05
@teutat3s:pub.solar@teutat3s:pub.solarI think I've got something else wrong22:36:05
@pachumicchu:myrdd.infoPacman99What is your nixos commit on?22:42:10
@pachumicchu:myrdd.infoPacman99 nix flake metadata --json | jq .locks.nodes.nixos.locked.rev 22:42:11
@teutat3s:pub.solar@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
@pachumicchu:myrdd.infoPacman99Because I'm thinking that this is the offending line: https://github.com/divnix/devos/blob/1cbf28f445caabc4f89798a7447ee0bee580b81b/overlays/overrides.nix#L1922:43:12
@pachumicchu:myrdd.infoPacman99 But on 21.11, nix is an argument for nix-direnv, so idk why its erroring out there 22:43:36
@teutat3s:pub.solar@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@teutat3s:pub.solarThat line 19 is the one22:46:44
@pachumicchu:myrdd.infoPacman99 You can try Channels.nixos.nix-direnv.override.__functionArgs in bud repl 22:52:26
@teutat3s:pub.solar@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@teutat3s:pub.solar
❯ nix flake metadata --json | jq .locks.nodes.nixos.locked.rev
"c7295777c97308ba7b0399c23d1e8bf15a1c7815"
23:44:38
@pachumicchu:myrdd.infoPacman99Ohh got it, I think I was on the wrong nixpkgs branch then23:53:47
@pachumicchu:myrdd.infoPacman99Uhh I think I can just remove the line altogether, since nix-direnv gets nixUnstable with the nix_2_4 argument23:54:15
4 Jan 2022
@cw:kernelpanic.cafe@cw:kernelpanic.cafeAnybody up? I'd like to take another swing at this devos thing00:42:33
@cw:kernelpanic.cafe@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@cw:kernelpanic.cafeDoes a user need to be explicitly defined in here?00:49:02
@cw:kernelpanic.cafe@cw:kernelpanic.cafe When that line is commented out, my users/cw/default.nix fails 00:49:43
@cw:kernelpanic.cafe@cw:kernelpanic.cafe which I thought was what digga.lib.rakeLeaves was doing? 00:50:06
@cw:kernelpanic.cafe@cw:kernelpanic.cafeRedacted or Malformed Event00:51:18
@cw:kernelpanic.cafe@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
@pachumicchu:myrdd.infoPacman99 Yeah users shouldn't need to be set 00:51:56
@pachumicchu:myrdd.infoPacman99 I think thats only important for homeConfigurations or portableHomeConfigurations 00:52:13
@cw:kernelpanic.cafe@cw:kernelpanic.cafe I get error: attribute 'cw' missing, at when I don't set user in flake.nix 00:52:57
@pachumicchu:myrdd.infoPacman99Uhh wait nvm I might be wrong00:53:01
@cw:kernelpanic.cafe@cw:kernelpanic.cafeat line 3 in the second comment00:53:04
@cw:kernelpanic.cafe@cw:kernelpanic.cafe home-manager.users = { inherit (hmUsers) cw; }; 00:53:10
@cw:kernelpanic.cafe@cw:kernelpanic.cafe * at line 3 in users/cw/default.nix 00:54:05

Show newer messages


Back to Room ListRoom Version: 6