[-] gomp@lemmy.ml 31 points 1 week ago* (last edited 1 week ago)

Might I add the idea that your terminal emulator must support your shell is utterly ridiculous?

https://docs.waveterm.dev/reference/faq#what-shells-does-wave-terminal-support

https://docs.warp.dev/getting-started/using-warp-with-shells

Also Wave might be FOSS but if you look at the footer in their website it says it's backed by venture capital... how would you estimate the chances it gets closed, paywalled or otherwise enshittified?

[-] gomp@lemmy.ml 29 points 1 month ago

Isn't the purpose getting views on youtube?

[-] gomp@lemmy.ml 40 points 2 months ago

Yeah... does git have issue tracking? actions? C'mon: it's not like github & co. are just git.

[-] gomp@lemmy.ml 46 points 3 months ago

I actually found the tone of the article (which is in tune with the title) quite refreshing, to the point that I read it all despite the fact I couldn't care less about cars :)

IDK about the US press (I live elsewhere) but sometimes I feel the news could benefit from more candidly opinionated articles like this one and less professional-sounding pieces crafted to influence the readers' opinions instead of informing them of the writer's.

[-] gomp@lemmy.ml 28 points 4 months ago

I can't wait for chatGPT to learn it should answer every disjunctive question with "por que no los dos?"

[-] gomp@lemmy.ml 39 points 6 months ago

capitalism in a nutshell

[-] gomp@lemmy.ml 46 points 6 months ago

Creepy tracking, less functionality than the old alternativeto.net (also less content, but of course content takes time so that's understandable), plus desperate-looking "enroll to our newsletter" and "advertise" pleads. Looks like a cheap attempt at making a couple bucks to me.

[-] gomp@lemmy.ml 48 points 8 months ago

It's not like a judge said it's illegal... what happened is that a huge multinational company sent a menacing letter to a developer regarding their hobby project, and the developer —understandably— decided to comply.

[-] gomp@lemmy.ml 50 points 8 months ago

User: "I have to waste my whole life fixing this" Dev: "you are complaining that you have to spend a few minutes"

Savage.

[-] gomp@lemmy.ml 65 points 8 months ago

To me, saying "wayland breaks things" is putting it backwards: at this point, it should be "[thing] still doesn't work on wayland".

[-] gomp@lemmy.ml 27 points 1 year ago

The really important sosftware gets ported to all the platforms

5
submitted 1 year ago* (last edited 1 year ago) by gomp@lemmy.ml to c/nixos@lemmy.ml

I'd like to set a "global" option from within a submodule, but the config I return is grafted into the "global" under the submodule "path" rather than at the root... any idea if it's somehow possible?

Er... I guess I didn't make a great job at explaining what I want to do... Some code will hopefully help.

In mymodule.nix I have:

{ lib, config, ... }: {

  options.myoption = lib.mkOption {
      type = lib.types.attrsOf (lib.types.submodule (
        import ./mysubmodule.nix
      ));
  };

}

and mysubmodule.nix is:

{ name, lib, config, ... }: {

options.mysubmoduleoption = {
  type = lib.types.str;
};

config = {
  # here I want to set a "global" option, say "systemd.mounts"
  # based on the value of "mymodule.name.mysubmoduleoption"
  # but it seems I can only set values under "mymodule.name" 
};

}
9
submitted 1 year ago* (last edited 1 year ago) by gomp@lemmy.ml to c/nixos@lemmy.ml

I'm trying to debug a module I'm writing with builtins.trace, but it's being more complicated than I anticipated.

Let's say I have a module:

{ config, lib, pkgs, modulesPath, ... }:

{

  config =
  let
    some-list = lib.attrsets.mapAttrsToList (n: v: {
        some-attr = "${n} ${v}";
    }) { n1 = "v1"; n2 = "v2"; };
  in {
    users.mutableUsers = builtins.trace (some-list) false;
  };

}

This will print

trace: [ <code> <code> ]

because builtins.trace (for whatever reason?) evaluates its first argument only shallowly.

Changing the trace expression to:

builtins.trace (builtins.toJSON some-list) false;

helps a lot, but as soon as one tries to print a long list or a structure with some complexity the output is completely unreadable, and it's not like it can easily be piped into jq (I mean... &amp;| grep ^trace: | sed 's/trace: //' | jq works*, but there must be a "better" way?)

(*) in fish shell, IDK about bash

edit: It's not like I specifically want JSON output: any format will do (ideally, nix would be nice)

4
submitted 1 year ago by gomp@lemmy.ml to c/nixos@lemmy.ml

I need to generate a number of scripts in my configuration and make them into a single package (for ease of reference, because there are a lot of them).

So far, I'm creating the scripts via writeShellApplication, making them into packages via an overlay, merging them with buildEnv and then adding the resulting package to `systemPackages.

Something like:

nixpkgs.overlays = [ (final: prev: {
  my-hello-1 = final.writeShellApplication {
    name = "my-hello-1-script";
    text = "echo my hello wolrd 1";
  };
  my-hello-2 = final.writeShellApplication {
    name = "my-hello-2-script";
    text = "echo my hello wolrd 1";
  };
  my-hello-scripts = final.buildEnv {
    name = "my-hello-scripts";
    paths = [ final.my-hello-1 final.my-hello-2 ];
  };
}) ];

environment.systemPackages = [ pkgs.my-hello-scripts ];

This works, but I don't really need the my-hello-1 and my-hello-2 packages... can you think of a way to make do without needing them?

5
submitted 1 year ago by gomp@lemmy.ml to c/nixos@lemmy.ml

I'm migrating my NAS to nixos, and I got to the point of setting up my restic backups.

services.restic.backups is great, but -- on top of the systemd timers/services -- I also want some helper scripts (eg. one to easily mount the backups, stuff that with ansible I currently generate into /usr/local/sbin).

These scripts would be entirely generated from the services.restic.backups config and would reference sops secrets also from configuration.nix, so... I don't think it would make sense to make a package out of them?

What should I use to make these scripts? Should I use nixpkgs.writeShellApplication and then alter the PATH?

25
submitted 1 year ago by gomp@lemmy.ml to c/privacy@lemmy.ml

Since I need to run a few apps that won't work on LineageOS (because dumb developer security stance), I need to buy a "regular" android device that includes all the google "services".

Ideally, it should be a cheap second-hand phone that will still receive security updates for a long time.

Are there bands that are better (well, "less worse") than others from a privacy perspective?

[-] gomp@lemmy.ml 34 points 1 year ago

Its funny how podcasters and commenters seem to have taken Redhat's spin about "contributing value to the community" seriously, while to the rest of us the whole thing was obviously only about money (same as all the follow-ups from other parties... I would say "including Alma" but that would probably deserve its separate debate).

view more: ‹ prev next ›

gomp

joined 1 year ago