claymorwan
9
26
claymorwan

@lemmy.blahaj.zone

claymorwan 2 points 8 months 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

path: 0 21149921 21153661 21155786 21157127, hotness: undefined, score: 2, children: 0
claymorwan 2 points 3 months ago

Yea I'm pretty sure I've also did this correctly since it in fact worked just fine with this electron package I've had in here for a little while now. Looking in nix-tree and searching for nodejs but the only nodejs versions I'm finding are 24.14.1 and no sign of the insecure version. Tried exporting the env and rebuilding my config but it didn't work either

path: 0 23890392 23891952, hotness: undefined, score: 2, children: 0
claymorwan 2 points 9 months ago

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

path: 0 20725476 20726146 20726382 20752433, hotness: undefined, score: 2, children: 1
claymorwan 2 points 9 months ago

I did notice lutris having its own FHS when upgrading, but aw man this looks pretty dam complicated, I'm like a week old to NixOS I have no idea how imma do this lmao, i did attempt the following

failed attemps
home.packages = with pkgs; [
 lutris.overrideAttrs (finalAttrs: previousAttrs: {
      multiPkgs = self ++ [(pkgs.runCommand "steamrun-lib" {}
  "mkdir $out; ln -s ${pkgs.steam-run.fhsenv}/usr/lib64 $out/lib")];
    })
];

and

home.packages = with pkgs; [
 lutris.override {
      buildFHSEnv = self.buildFHSEnv.override {
        multiPkgs = self ++ [(pkgs.runCommand "steamrun-lib" {}
  "mkdir $out; ln -s ${pkgs.steam-run.fhsenv}/usr/lib64 $out/lib")];
      };
    }
];

which obviously didn't work, so yea im kinda lost

I'm also really surprised that lutris' FHS just does not have anything to run native linux game by default

path: 0 20725476 20726146, hotness: undefined, score: 2, children: 7
claymorwan 2 points 8 months ago

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
path: 0 21149921 21153661, hotness: undefined, score: 2, children: 2
claymorwan 2 points 6 months ago

o yea this did work, i went with the first snippet but im curious abt what the better thing abt diong it in multiple files

path: 0 22140114 22191048, hotness: undefined, score: 2, children: 1
claymorwan 2 points 7 months ago

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

path: 0 21558106 21558746, hotness: undefined, score: 2, children: 0
claymorwan 1 point 8 months 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!

path: 0 21163802 21180853 21186891 21187868 21189791 21191157, hotness: undefined, score: 1, children: 0
claymorwan 1 point 7 months ago

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,
path: 0 21649380 21663170, hotness: undefined, score: 1, children: 6
claymorwan 1 point 7 months ago

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; }
path: 0 21649380 21663170 21677394 21679263, hotness: undefined, score: 1, children: 4
claymorwan 1 point 7 months ago

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

path: 0 21649380 21663170 21677394 21679263 21682317 21689227, hotness: undefined, score: 1, children: 0
claymorwan 1 point 7 months ago

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

path: 0 21649380 21663170 21677394 21679263 21681301 21699749, hotness: undefined, score: 1, children: 0
claymorwan 1 point 4 months ago

o yea that did work, I didn't find anywhere where this could be documented so I had no idea, thanks a lot!!

path: 0 23525448 23527266, hotness: undefined, score: 1, children: 3
claymorwan 1 point 3 months ago

o i didn't know those worked just like regular urls, makes sense now

path: 0 23525448 23527266 23540505 23887396, hotness: undefined, score: 1, children: 0
claymorwan 1 point 3 months ago

yea I'm in fact evalutating a flake, u can find it here, but I usually override my inputs' nixpkgs input with mine. I'm using nh to rebuild my config, running nh os switch -H nixos

path: 0 23889984 23892059, hotness: undefined, score: 1, children: 6
claymorwan 1 point 3 months ago

that kinda sucks, i tried to un-override all flakes ik could use nodejs so they can use their verson of nixpkgs (which should allow nodejs 20) but nope still broken

path: 0 23889984 23892059 23893990 23901438 23901493 23901715, hotness: undefined, score: 1, children: 2
claymorwan 1 point 3 months ago

so overriding this potential flake's nixpkgs input won't apply my permitted insecure package ? dam i thought it would, ig i gotta hunt for that flake now

path: 0 23889984 23892059 23893990 23901438, hotness: undefined, score: 1, children: 4
claymorwan 1 point 3 months ago

i think imma go with that, tho i'd prefer if i could have my config stay pure i'll have to troubleshoot more

path: 0 23897610 23912669, hotness: undefined, score: 1, children: 0
claymorwan 1 point 5 months ago

Well that does works, idk if it's the best way to do so tho, I did reuse ur timestamp function tho thanks

path: 0 22781074 22830730, hotness: undefined, score: 1, children: 0
claymorwan 1 point 3 months ago

it's okay that was a good guess

path: 0 23889984 23892059 23893990 23901438 23901493 23901715 23901740 23912670, hotness: undefined, score: 1, children: 0

thanks for using Leebra!

go to feed...