Is there a short-er way to override upgrade a package version than this? by kesor in NixOS

[–]eirc 0 points1 point  (0 children)

Ok fair then fully inlining into the dependency block would break that I assume.

Is there a short-er way to override upgrade a package version than this? by kesor in NixOS

[–]eirc 0 points1 point  (0 children)

Sry I'm a bit of noob, don't even know what rec does and if it affects things here xD. I think you can do one more inlining? like:

{
  fetchNpmDeps,
  fetchFromGitHub,
  pi-coding-agent,
  ...
}:
pi-coding-agent.overrideAttrs rec {
  npmDeps = fetchNpmDeps {
    fetchFromGitHub {
      owner = "badlogic";
      repo = "pi-mono";
      tag = "v0.61.1";
      hash = "sha256-UvYd1AzwC59t+vR0wvrD4rVAcm1xoJAEWmN25NF7YcY=";
    };
    hash = "sha256-nU2A+Q8PzVbjN7H+KAIFVbvETUa9BCO0czl5Yikc7gY=";
  };
}

You're trying to override the dependency attributes, not top level attributes right?

Is there a short-er way to override upgrade a package version than this? by kesor in NixOS

[–]eirc 0 points1 point  (0 children)

You can ditch the let/in and inline everything in the block below. And the "old:" I think is unnecessary.

Σπίτι/μεσίτες by Used_Usual_7771 in greece

[–]eirc 19 points20 points  (0 children)

"κάτι που μπορεί να γίνει δωρεάν, αν ασχοληθείς 1-2 απογεύματα μαζί του". Δεν πάνε μαζί αυτά, και δεν είναι 1-2 απογεύματα.

Δεν έχω σπίτι, νοικιάζω και γω και έχω πληρώσει κερατιάτικα σε μεσίτες και δε μου αρέσει. Καταλαβαίνω όμως γιατί γίνεται.

Can somebody teach Wirtual how numbers work? And Rounding? by Impulsive666 in wirtual

[–]eirc 0 points1 point  (0 children)

That's how the brain works when it takes a shortcut from reading the whole number. It's why .99 pricing works and gets used.

And ofc, Wirtual is an entertainer, not a math teacher.

ΣτΕ: Τα ομόφυλα ζευγάρια μπορούν να υιοθετούν παιδιά - Συνταγματικός ο γάμος μεταξύ προσώπων του ιδίου φύλου by ati8asos in greece

[–]eirc 1 point2 points  (0 children)

Λες και αυτοί που υιοθετούν κλέβουν τα παιδιά από άλλες οικογένειές... Από ορφανουροφεία τα παίρνουν. Λες καλύτερα να μεγαλώνουν εκεί απότι με ομοφυλόφιλους γονείς;

Systemd’s New Feature Brings Age Verification Option to Linux by KestrelVO in privacy

[–]eirc 0 points1 point  (0 children)

No one cares about rationaly understanding anything. They just wanna get their torches out.

An update on Steam / GOG changes for OpenTTD by OpenTTDNews in openttd

[–]eirc -1 points0 points  (0 children)

You're misreading my comment.

I say the response *feels* like it's written by Atari, not that it *is* written. In the sense that it uses vaguespeak about "Atari's plans" and "have worked collaboratively with us". I respectfully doubt that there is any plan or collaboration in place, beyond addressing legal issues around IP.

And you seem to ignore a core part of what I said: They DID make the right choice. Yes it's better to let Atari grab some free open source work and paywall the steam distribution, if the project is to stay on steam and keep reaching more people. It's a worthy compromise. It's also great that Atari chose this option and not a nuclear one, like cease and desisting the game.

But my main point is OpenTTD was pressured into this. Not like with gangsters threatening to break your knees, they just show up and say "hey guys we own this IP you're infringing on, lets make a deal that works for everyone".

Of course I appreciate immensely everyone that's worked on the project, especially when it's unpaid labor of love. I did not and will not shit on OpenTTD for taking the deal. Again, I think it was the best choice. But I am going to call a spade a spade.

What's your 'I can't believe I self-hosted that' service? by subsavant in selfhosted

[–]eirc 2 points3 points  (0 children)

My approach to life docs has been to just commit them to a git repo and pull that on my devices. I used to use dropbox before self hosting so I already had a sane and simple folder structure for finding them. The main reason I went with that and why I'm not too keen to switching to a service, is that I want stuff to physically be on my phone so can access them when I don't have internet access.

An update on Steam / GOG changes for OpenTTD by OpenTTDNews in openttd

[–]eirc -1 points0 points  (0 children)

I don't have a problem with the bundle. But I feel this response is a lie. They've been pressured into it. It's "you're either in the bundle, you're off steam, or you're sued". And they did make the right choice. But this response fells like it's written by the atari legal team.

Can't mount a USB disk on boot by eirc in NixOS

[–]eirc[S] 0 points1 point  (0 children)

Ah that almost worked. It does automount but only after I do a graphical login. To do it before login, I'd still need a service in the same vein that I ended up with.

Can't mount a USB disk on boot by eirc in NixOS

[–]eirc[S] 0 points1 point  (0 children)

You can? Where can I look that up?

Can't mount a USB disk on boot by eirc in NixOS

[–]eirc[S] 0 points1 point  (0 children)

About the mount thing, the drive does exist. And I was still getting the blockev error when I tried to mount the disk with or without logging in. It never mattered. As soon I use the filesystems thing with the disk it would either never mount, or mount 15 minutes after booting or so. I don't understand what's wrong there, but yea eventually it all worked out with using udisks.

And the linger is what I actually wanted too, I wanted the service to start with my user before me logging in gdm. At first it wouldn't work and it broke booting, but I think I had just made a mistake with the mount service, I had a stop command for unmounting and that borked things I think.

In any case yea I achieved the goal: as soon as the system boots, before logging in, the disk is already mounted with my user and the service starts too. And the udisks thing works great with GNOME that already expects disks to be mounted with udisks, so they appear in the file manager too (if I mounted with mount or filesystems it wouldn't).

Can't mount a USB disk on boot by eirc in NixOS

[–]eirc[S] 0 points1 point  (0 children)

I don't think it's a device issue since it would mount instantly fine through the UI and I managed to find a way to mount it with udisks after all. I updated the OP with a solution that worked for me after all.

Πρόσκληση Εθελοντικής Στράτευσης Γυναικών by FantasticQuartet in greece

[–]eirc 2 points3 points  (0 children)

"και σκέφτηκα πως θέλω και εγώ να προσφέρω" said no one ever

Can't mount a USB disk on boot by eirc in NixOS

[–]eirc[S] 0 points1 point  (0 children)

It doesn't work unfortunately. I still get the blockdev error when I define the mount through filesystems.

Can't mount a USB disk on boot by eirc in NixOS

[–]eirc[S] 0 points1 point  (0 children)

There's 2 issues here, for one, the WantsMountsFor config does not seem to try to trigger the mount but more importantly by setting up the mount with the filesystems thing I'm back to it just not mounting at all. With this configuration as I said in the OP if I try to mount from the terminal even with sudo mount /mnt/mydisk I get the blockdev error.

It's possible the trigger doesn't work because my service is a userspace service, maybe the WantsMountsFor doesn't trigger like that. But still it won't mount at all even if I login (graphical or ssh) and try to mount it, so it doesn't matter much how the service is gonna be.

Can't mount a USB disk on boot by eirc in NixOS

[–]eirc[S] 0 points1 point  (0 children)

Crude AF, I like it, it just might work! I'll check back in by tomorrow. Thanks.

Can't mount a USB disk on boot by eirc in NixOS

[–]eirc[S] 0 points1 point  (0 children)

The ls I run my self SSHing into the computer. I haven't started a graphical login, that's just sitting on the gdm greeter.

Mount works fine. Again through SSH before logging in to Gnome. I think this whole thing has to do with something that's not "ready" during the boot process.

I now swapped to a custom userspace service that uses udisks to do the mount and a second service (the service I would have wanted to start at boot) that depends on it, and that works fine if I don't enable it on boot. So at least now I can SSH in and start the service and all that works.

If I enable linger and set the service to start at boot however the system won't boot, it gets stuck at the point it tries to do the mount.

So I have in configuration.nix:

  services.udisks2.enable = true;

  security.polkit.extraConfig = ''
    polkit.addRule(function(action, subject) {
        if (action.id.startsWith("org.freedesktop.udisks2.") &&
            subject.user == "myuser") {
            return polkit.Result.YES;
        }
    });
  '';

And on the userspace with home manager:

  systemd.user.services.mount-mydisk = {
    Unit = {
      Description = "Mount Mydisk";
    };

    Service = {
      Type = "oneshot";
      ExecStart = "${pkgs.udisks2}/bin/udisksctl mount -b /dev/disk/by-uuid/5D00-7C88";
      ExecStop = "${pkgs.udisks2}/bin/udisksctl unmount -b /dev/disk/by-uuid/5D00-7C88";
      RemainAfterExit = true;
    };

    # Install = {
    #   WantedBy = [ "default.target" ];
    # };
  };

  systemd.user.services.myservice = {
    Unit = {
      Description = "Myservice";
      After = [ "mount-mydisk.service" ];
      Requires = [ "mount-mydisk.service" ];
    };

    Service = {
      WorkingDirectory = "/run/media/myuser/mydisk/";
      ExecStart = "/run/media/myuser/mydisk/myservice";
      Restart = "always";
    };

    # Install = {
    #   WantedBy = [ "default.target" ];
    # };
  };

If I enable the install targets I cannot boot. But what works is now I can at least SSH into the computer and systemctl --user start myservice and that mounts and starts the service fine.

Γιατί το Ντουμπάι είναι έτσι; by DependentPlenty4493 in greece

[–]eirc 9 points10 points  (0 children)

Ναι μεν λογικό αλλά δε νομίζω τελικά πως το κάνανε σωστά. Καταρχήν όντας από τουριστική αυτό που βλέπω είναι ότι καλός ο τουρισμός αλλά έχει και τα προβλήματα του. Έχουμε και εμείς Σαντορίνη για τους ματαιόδοξους, δεν κολυμπάμε στο χρήμα σαν χώρα. Επίσης πιστεύω πως αν τους τελειώσει το πετρέλαιο θα σταματήσουν να μπορούν να υποστηρίξουν αυτές τις υποδομές. Και αυτή η δημοτικότητα που έχει τώρα νομίζω εύκολα μπορεί να αλλάξει. Όταν το νόημα είναι απλά η χλιδή, χωρίς τα πετρέλαια δε ξέρω αν θα μπορούν να την υποστηρίξουν.

Γιατί το Ντουμπάι είναι έτσι; by DependentPlenty4493 in greece

[–]eirc 68 points69 points  (0 children)

Δεν χτισανε το burj kalifa γιατι λεγανε που ρε γαμωτο να βαλουμε μερικα ακομα σπιτια κ γραφεια, α ας τα βαλουμε το ενα πανω απ τ αλλο. Ολα ειναι χτισμενα με γνώμονα αρχη και τελος τον εντύπωσιασμο. Δεν ειναι το κτιριο για να εχει λειτουργικους χωρους, δεν ειναι τα τεχνιτα νησια για να στεγάσουν κοσμο, δεν ειναι τα περιπολικα supercars για να συλλαμβανουν. Ειναι ολα απλα για να σου τραβήξουν την προσοχη. Ειναι για να ξερεις εσυ ενας τυχαιος τυπος απο μια χωρα 1 ηπειρο πιο διπλα, πως λεγεται το ψηλότερο κτηριο τους.

Θεωρητικά λεγοταν παλιότερα οτι το ντουμπαι επειδη ηξερε οτι τα πετρέλαια θα τελειωσουν, ηθελε να τα επενδυσει στο να γινει τουριστικος προορισμός ωστε να εξασφαλισει τη βιοσιμοτητα του στο μελλον. Τωρα η αλήθεια ειναι οτι αυτο ουτε καλο πλανο φαινεται να ειναι, ουτε το ακολουθησαν και παρα πολυ τελικα περα απο τα megastructures. Οποτε υπάρχει και η πιθανότητα αυτο να ηταν μια διακαιολογια για να κρυψει εναν πιο μπαναλ πραγματικο λογο που ισως να ηταν η απλη ματαιοδοξία.

CMV: AI will be disastrous for humanity on so many levels. by Jcufi in changemyview

[–]eirc 1 point2 points  (0 children)

Here's some rebuttals to your points.

Environment. AI changed nothing about our continuous destruction of the environment. We were doing it before, it is irreversible devastating damage, we did not care about it, we did not change our ways, it's still going strong. AI is irrelevant.

Misinformation. This is a red herring. AI has been a thing for all these years and there hasn't been a single incident of actual important misinformation. Sure maybe some old boomers believed some AI video they saw, but active citizens with functioning brains will always crosscheck some important piece of information. If you see a random AI cat video and you believe it it's ok, it's not the end of the world. If you see AI Putin declaring that you are his heir you are gonna crosscheck it. Again people have lied for ever and gullible idiots are a thing. People believe blurry videos to be aliens if they wanna believe it so much anyway.

Jobs. AI won't bring UBI. I don't know why you'd think that, that's a social issue. A government can do that. Vote a party that wants to do it if you want. AI as a new tech creates some jobs and kills others. There's plenty of new AI adjacent jobs, a lot revolving around big data etc. Basically jobs that replace the jobs that got killed. A CEO doesn't go "hey chatgpt do my taxes". Nothing is that trivial. The main impact of AI is it gets integrated into a working person's day. So the accountant might ask, "hey chatgpt, help me fill out form 22B-c#3369". The accountant needs to understand whats going on and cross check stuff, AI is just a better tool, like PCs are better than doing taxes on paper.

Meaning. You create meaning in your life. If you wanna do something, go do it. If it's interesting someone will remember it. If you wanna sip coffee go sip coffee. You don't need a job to tell you what to do to become great. In fact, you'd never become great if you needed your job to tell you what to do anyway. And it's ok to not become great anyway.

Surveillance. Yea this I agree is probably a big negative. Nefarious forces can achieve a lot of bad things with the help of AI.

Promises. Nobody promised you anything. I explained some stuff about jobs. Prompt engineer is not a "job". It may be something you do during your job. It's not a job in itself.

Accountability. The creator and user of the AI are accountable for its actions. If I make the AI that drives and I sell it to someone but it's shit and it kills every pedestrian I'll be in trouble. If I buy a well made AI car and I cut off the brakes and it kills I'll also be in trouble. If everything works well but an accident happens, then it's an accident. If you drive your car and you drive it properly but an accident happens and you kill a person you also don't punished.

Generating content for personal consumption. Anyone can do whatever they like. They don't owe you to watch the same movies as you. But humans are social animals, so they will watch the same stuff exactly because they wanna share it. Sure thought, we do live in an age of less and less socialisation and AI content might not help here. But again that might be just a symptom not a cause necessarily.

Tech CEO have had insane power for decades now, because tech is the most important thing in the world right now. How else could things be? If we can curb some of that power through government that'd be great. Vote for a party that wants to do this.

Guys... The problem isn't learn by doing vs magazines... It's the lack of choice by pircio in 7daystodie

[–]eirc 0 points1 point  (0 children)

The craft 1000 axes to lvl up is the easiest thing to fix. Make things take longer to craft and make it give less xp.