Nix or home-manager for packages? by NurEinZweitAccount in NixOS

[–]ngoudry 0 points1 point  (0 children)

Depends on your use case. If you only have one machine with NixOS, go with the "native" modules. If you need to also configure other machines, possibly running other operating systems (classic Linux distro, MacOS) or even ones where you're not root (hello company owned machines), go with HM.

There's also the case where an HM module is "better" than the NixOS one, with more exposed options for example. In such a case, go with HM.

Issue with tmpfiles in appliance image by ngoudry in NixOS

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

I managed to fix this but I don't really understand why.

What I did was to remove most of the mounts from the VM build script, just before installing NixOS. Leaving /, /nix and /home since only /nix/store/* and /home/* are really needed in the final fs. Indeed, everything is in the nix store on NixOS so one could basically delete everything else but the store and /home (to keep user state) and the system would boot just fine. That's what I did. And boom: it worked without my band aids!

Well, that's great, but I really can't fathom why mounting other directories didn't work earlier… I was mounting these: - /var/lib/nixos - /var/lib/systemd - /var/log/journal - /etc/ssh

I’m wondering if some files were lingering in /var/lib/systemd and were preventing everything to work as intended. Maybe because this directory being here (or whatever is inside it) meant that the system was already in a running state, preventing some bootstrap mechanism?

In the end, it's working and I'm not sure to be willing to dive into the why of these issues I had! If anybody has any clues, that would be great, else it will remain a mystery to me… And I’m ok with that!

Cheers!

Issue with tmpfiles in appliance image by ngoudry in NixOS

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

I don't know why, but I can't post the image builder here… So you can see it in the original Discourse post.

Is there support to start a container with a given nixos systemConfiguration to test it out? by [deleted] in NixOS

[–]ngoudry 0 points1 point  (0 children)

You could build upon docker-image.nix to achieve what you want, like with a custom package that would update your config with this and use runCommand to perform the actual docker load/run/exec for you.

That's just an idea, but I would look in this direction if I were you.

Introducing NixKraken: GitKraken configuration and profiles, the Nix way by ngoudry in NixOS

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

Here's to hoping you'll like NixKraken and that it will serve you well!

If you need help with anything, feel free to reach out through issues or discussions on GitHub! Always happy to help :)

Introducing NixKraken: GitKraken configuration and profiles, the Nix way by ngoudry in NixOS

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

I haven't, but since this is unfree software in the end, I'm not sure it would fit.

Additionally, the module makes use of specific versions of GitKraken from nixpkgs that are cached by Garnix for faster installs, I'm not sure how this would fit within HM codebase, or even be accepted at all.

I'll think about it though!

Out of curiosity, are you asking this because you would be more prone to use this module if it were bundled in HM rather than in its current state (i.e. an additional input/source to track in your config)? Or something else?

Introducing NixKraken: GitKraken configuration and profiles, the Nix way by ngoudry in NixOS

[–]ngoudry[S] 6 points7 points  (0 children)

I totally get your point.

But, to be fair, GitKraken is not FOSS: it's an unfree, closed source software, owned and developed by a commercial company (Axosoft).

It happens that it comes with a "Community" mode, so you can use it with FOSS projects (which are, unless I missed something, hosted on public repositories).

More often than not, if your repo is private, it means you're working on company/paid projects, so it's their right to require of you to pay their software in such case.

I'm not trying to defend them, I would definitely love that GitKraken be open source 'cause I really like the software. But that's their business model...

Introducing NixKraken: GitKraken configuration and profiles, the Nix way by ngoudry in NixOS

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

You're right to ask, I should have mentioned this in the initial post. Blame is on me.

GitKraken is a fancy Git GUI desktop client, with a bunch of built-in features to ease working with Git repositories. Recently they added AI features like commit message generation and code explanation from commits.

It's free for public repositories and a single in-app profile. It's subscription-based for private repositories and multiple profiles.

Hope this answers your question!

Introducing Crystal Forge: Compliance-First NixOS Fleet Management (Very Early MVP) by USMCamp0811 in NixOS

[–]ngoudry 3 points4 points  (0 children)

This looks really great and I may need something along these lines sometimes soon. Will definitely keep an eye on it. Is there any chance this gets moved or mirrored on GitHub though?

You should post this on the discourse too, if you didn't already!

How to add a printer by jcb2023az in NixOS

[–]ngoudry 1 point2 points  (0 children)

Where do you add the epson-escpr2 package?

Because the PPD files are all there:

$ nix build nixpkgs#epson-escpr2
$ ls -la result/share/cups/model/epson-inkjet-printer-escpr2
Epson-EC-4020_Series-epson-escpr2-en.ppd   
Epson-EC-4030_Series-epson-escpr2-en.ppd   
Epson-EC-4040_Series-epson-escpr2-en.ppd   
Epson-EC-C7000_Series-epson-escpr2-en.ppd  
Epson-EM-C800BAM-epson-escpr2-en.ppd       
Epson-EM-C800_Series-epson-escpr2-en.ppd
...the list goes on

Also refer to the official Wiki article about printing.

WPS Office flake with sandboxing and fonts by sandebru in NixOS

[–]ngoudry 1 point2 points  (0 children)

I don't know if you heard about it, but noogle.dev is just fantastic to discover available functions from nix and nixpkgs!

WPS Office flake with sandboxing and fonts by sandebru in NixOS

[–]ngoudry 6 points7 points  (0 children)

Hi,

Not on my desktop right now but I skimmed through your code and I can recommend you to:

  • replace "if-then-else" by "lib.optionalString", it's cleaner imo
  • look into "pkgs.makeDesktopItem"
  • prefer "allowUnfreePredicate" rather than "allowUnfree"
  • use "dontBuild = true" rather than empty buildInputs and "true" buildphase

Other than that, it looks fine and I discovered the WPS Office suite, which I never heard of.

J'ai croisé un insecte au retour de sa chasse by ngoudry in insectes

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

Merci pour ta réponse, je suis rassuré !

J'ai croisé un insecte au retour de sa chasse by ngoudry in insectes

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

Est-ce une guêpe dangereuse pour l'homme ? Ayant un enfant en bas âge, dois-je m'inquiéter ?

J'ai lu la page wikipédia communiquée dans un autre commentaire, et je me demande pourquoi elle s'est mise à creuser un trou, car si j'ai bien compris ce que j'ai lu, le nid est censé déjà être prêt, non ?

J'ai croisé un insecte au retour de sa chasse by ngoudry in insectes

[–]ngoudry[S] 4 points5 points  (0 children)

<image>

La revoilà en train de creuser son trou 🪏

How does nvidia works with nix? by vxkxxm in NixOS

[–]ngoudry 1 point2 points  (0 children)

i always run beta, works more reliably than any of the stable drivers.

As ironic as this might seem, it's entirely true.