claymorwan

joined 2 months ago

yea no idea why, only happens when i override these two packages

well this only happens when i use the override on these packages so i suppose it is related

[–] claymorwan@lemmy.blahaj.zone 1 points 4 days ago (4 children)

yea that worked, now im getting this tho:

       … while calling the 'head' builtin
         at /nix/store/kfcxqcxb9hcq6x33sg4cmwakbb1ifwg9-source/lib/attrsets.nix:1713:13:
         1712|           if length values == 1 || pred here (elemAt values 1) (head values) then
         1713|             head values
             |             ^
         1714|           else

       … while evaluating the attribute 'value'
         at /nix/store/kfcxqcxb9hcq6x33sg4cmwakbb1ifwg9-source/lib/modules.nix:1118:7:
         1117|     // {
         1118|       value = addErrorContext "while evaluating the option `${showOption loc}':" value;
             |       ^
         1119|       inherit (res.defsFinal') highestPrio;

       … while evaluating the option `system.build.toplevel':

       … while evaluating definitions from `/nix/store/kfcxqcxb9hcq6x33sg4cmwakbb1ifwg9-source/nixos/modules/system/activation/top-level.nix':

       … while evaluating the option `warnings':

       … while evaluating definitions from `/nix/store/kfcxqcxb9hcq6x33sg4cmwakbb1ifwg9-source/nixos/modules/system/boot/systemd.nix':

       … while evaluating the option `systemd.services.home-manager-claymorwan.serviceConfig':

       … while evaluating definitions from `/nix/store/x4cardk9amcfpx2r02v8ic20aclgjxf4-source/nixos':

       … while evaluating the option `home-manager.users.claymorwan.home.file."/home/claymorwan/.config/fontconfig/conf.d/10-hm-fonts.conf".source':

       … while evaluating definitions from `/nix/store/x4cardk9amcfpx2r02v8ic20aclgjxf4-source/modules/files.nix':

       … while evaluating the option `home-manager.users.claymorwan.home.file."/home/claymorwan/.config/fontconfig/conf.d/10-hm-fonts.conf".text':

       … while evaluating definitions from `/nix/store/x4cardk9amcfpx2r02v8ic20aclgjxf4-source/modules/misc/xdg.nix':

       … while evaluating the option `home-manager.users.claymorwan.xdg.configFile."fontconfig/conf.d/10-hm-fonts.conf".text':

       … while evaluating definitions from `/nix/store/x4cardk9amcfpx2r02v8ic20aclgjxf4-source/modules/misc/fontconfig.nix':

       … while evaluating the option `home-manager.users.claymorwan.fonts.fontconfig.configFile.fonts.text':

       … while evaluating definitions from `/nix/store/x4cardk9amcfpx2r02v8ic20aclgjxf4-source/modules/misc/fontconfig.nix':

       (stack trace truncated; use '--show-trace' to show the full, detailed trace)

       error: cannot coerce a set to a string: { __functionArgs = «thunk»; __functor = «lambda __functor @ /nix/store/kfcxqcxb9hcq6x33sg4cmwakbb1ifwg9-source/lib/trivial.nix:1017:17»; override = «thunk»; tests = «thunk»; version = 1; }
[–] claymorwan@lemmy.blahaj.zone 1 points 5 days ago* (last edited 4 days ago) (6 children)

o dam yea i had forgotten abt the parens, now i do get this error tho, also good to mention that both package doesn't have any patches to beguin with

error: function 'anonymous lambda' called with unexpected argument 'patches'
       at /nix/store/kfcxqcxb9hcq6x33sg4cmwakbb1ifwg9-source/pkgs/tools/misc/qt5ct/default.nix:1:1:
            1| {
             | ^
            2|   mkDerivation,
 

I'm trying to patch qt5ct and qt6ct with their kde patch, which im doing like so:

  home.packages = with pkgs; [
    kdePackages.qt6ct.overrideAttrs (finalAttrs: previousAttrs: {
      patches = [
        fetchpatch {
          url = "https://aur.archlinux.org/cgit/aur.git/plain/qt6ct-shenanigans.patch?h=qt6ct-kde";
          hash = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=";
        }
      ];
    })

    libsForQt5.qt5ct.override {
      patches = [
        fetchpatch {
          url = "https://aur.archlinux.org/cgit/aur.git/plain/qt5ct-shenanigans.patch?h=qt5ct-kde";
          hash = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=";
        }
      ];
    }
  ];

but that im getting this error

error: A definition for option `home-manager.users.claymorwan.home.packages."[definition 10-entry 3]"' is not of type `package'. Definition values:
       - In `/nix/store/2p2nainh0h91ijj2724bpg1pc1z8ska5-source/NixOS/modules/home/qt.nix': <function, args: {fetchurl, lib, mkDerivation, qmake, qtbase, qtsvg, qttools}>

yea i was abt to edit the post saying i found out lol, but still thanks for the help

 

I'm currently trying to package a python package called entangled.py, two of its dependencies aren't in the nixpkgs so I also packaged them. Now I'm trying to package the entangled with these two local packages but idk how to actually use them, rn i do this (using buildPythonPackage):

buildPythonPackage rec {
  # ...
  dependencies = [
    py
    filelock
    rich
    rich-argparse
    tomlkit
    copier
    (callPackage ../brei/package.nix)
    pyyaml
    (callPackage ../repl-session/package.nix)
    msgspec
    click
    rich-click
    typeguard
    watchfiles
  ];
  # ...
}

but it returns me this error:

error:
       … while evaluating the attribute 'drvPath'
         at /nix/store/ln4j1iqnnzs2ynx2cr88bdh65fmds2aq-source/lib/customisation.nix:446:7:
          445|     // {
          446|       drvPath =
             |       ^
          447|         assert condition;

       … while calling the 'derivationStrict' builtin
         at <nix/derivation-internal.nix>:37:12:
           36|
           37|   strict = derivationStrict drvAttrs;
             |            ^
           38|

       (stack trace truncated; use '--show-trace' to show the full, detailed trace)

       error: Dependency is not of a valid type: element 7 of propagatedBuildInputs for python3.13-entangled-cli-2.4.

obviously this is only for testing if the package builds and works correctly, i don't want to send a broken package

SOLUTION: kinda stupid of me lol, i need to add an empty set after the path like so: (callPackage path/to/package { }) also if u're using with import <nixpkgs>;, remove that too

[–] claymorwan@lemmy.blahaj.zone 1 points 1 month ago

o yea now i see better how it works, all i gotta do is learn some emacs stuff and then i should be able to do it, thanks a lot!

[–] claymorwan@lemmy.blahaj.zone 1 points 1 month ago (2 children)

o thanks, i'll take a closer look but for what i've seen so far it kinda looks complex I also flake-part mentioned in some of the commits,i remember seeing it a few times and apparently it can modularize flakes or sum like that, can it modularize inputs too outta curiosity

[–] claymorwan@lemmy.blahaj.zone 1 points 1 month ago (4 children)

first time im earing of Org Roam, but i think i kinda understand, do ya got a repo where i can see how u did it im kinda interested

[–] claymorwan@lemmy.blahaj.zone 2 points 1 month ago

yea i think it may just not be possible yet, looking it up more i've seen people talking abt how a big con of flakes is that flake.nix is not parsed like regular nix files. I'm not sure why they made it work like that but it gets changed eventually cuz that's really too bad we can't do things as simple as imports

[–] claymorwan@lemmy.blahaj.zone 2 points 1 month ago (2 children)

I followed how u did it but it doesn't seem to work, i keep getting hit with this error:

error: expected a set but got a thunk at /home/claymorwan/.dotfiles/NixOS/flake.nix:4:3
6
submitted 1 month ago* (last edited 1 month ago) by claymorwan@lemmy.blahaj.zone to c/nix@programming.dev
 

I'm starting to have a lot of flake inputs in my flake.nix file, and it's starting to get really cluttered. I'm wondering if there's a way to separate my inputs into multiple files so it looks cleaner. I've tried to look it up but couldn't really find anything abt it

Edit: Well as it turns out it's not something possible yet, apparently the flake.nix file isn't parsed like regular nix files and doesn't support stuff like import

[–] claymorwan@lemmy.blahaj.zone 1 points 1 month ago

Ok well i was abt to get the logs and just realized that the one game i choosed to try is literally the only one who doesn't wanna work in lutris so far. I've tried a few more native linux games with lutris and they all work, ig lutris just hates this first game in particular, which oddly enoug works with steam-run.

I suppose if i add the libraries from steam-run to lutris' fhs environment it'll work maybe Alsothe lutris logs does't say anythingi particular, just that the game closed too fast

[–] claymorwan@lemmy.blahaj.zone 2 points 1 month ago (1 children)

returns this error

error: attribute 'multiPkgs' missing
        at /nix/store/j9lcrp816krraglnjk6r8iacl6jvww87-source/nixos/modules/home/packages.nix:24:19:
            23|     (lutris.overrideAttrs (_: prevAttrs: {
            24|       multiPkgs = prevAttrs.multiPkgs ++ [
              |                   ^
            25|         (pkgs.runCommand "steamrun-lib" { } ''

if i were to guess maybe cuz multiPkgs is defined in fhsenv.nix in not in default.nix, could be wring tho im pretty new to nix packaging

 

I've been trying to run native linux games with lutris but can't get it to work. As far as ik, i can either use steam-app in my termianl, which works, or I can use nix-ld which i did setup and also works when running the game's executable from the terminal

I've setup nix-ld like so:

  programs.nix-ld = {
      enable = true;

      libraries = [(pkgs.runCommand "steamrun-lib" {}
  "mkdir $out; ln -s ${pkgs.steam-run.fhsenv}/usr/lib64 $out/lib")];
};

But for some reasons, when running the game's executable in lutris, it just fails instantly, and I'm kinda out of ideas, if anyone knows what to do that'd be real helpful please

Edit: Ok well apparently it just solved itself ??? I realized i could install lutis using programs.lutris.enable = true; instead of just putting it in home.packages, and apparently it fixed the issue. Idk why or how but ig if u use home manager, insall lutris like so

view more: next ›