fasterthanlime, to random
@fasterthanlime@hachyderm.io avatar

✨ “Making a dev shell with nix flakes” is now available for everyone!

https://fasterthanli.me/series/building-a-rust-service-with-nix/part-10

techmiker, to random
@techmiker@hachyderm.io avatar

Sorry I'll shut up about Nix at some point :) BUT I'm preparing a presentation to introduce Nix to my team and I wondered if anyone was using it in a professional capacity at the moment. I'd love to know how it's implemented and how it's being used etc.

fossesq, to random

Well it took me literal months to get working (not as bad as it sounds because that's 5-minute snatches here and there), but it finally came up (, woo!) and porting over my basic config from has taken about 15 minutes.

Now to tackle waybar.

gridbugs, to random

My weekend project https://github.com/gridbugs/nix-shell-locked is a tool for starting transient shells with some temporarily-installed packages on systems where packages are taken from a version of nixpkgs according to a flake lockfile. This can be helpful when you want to temporarily try out a program without installing it, and want to make sure it's compatible with your system or home-manager configuration, if you manage those configs with flakes.

fasterthanlime, to random
@fasterthanlime@hachyderm.io avatar

her: "you don't like me! you like the idea of me"
me: "yes nixpkgs, that's exactly it."

docRekd,

@hazelweakly @fasterthanlime Well when using I do feel like peering in the hidden foundations of computer science, shaping entire universes from few commands while being completely immune to mere mortals base concerns like global state, versions or compatibilities

alper, to random
@alper@rls.social avatar

So is when Haskell people make a package manager, a language, an OS and a build system all entangled with each other both physically and conceptually?

alper,
@alper@rls.social avatar

I'm getting into and now installed it on my personal machine as well (thanks new installer!), but the error messages are from another planet. I don't see what fundamental complexity there is in Nix to make it this difficult to understand.

alper,
@alper@rls.social avatar

I'm making an effort to learn . It's a good idea but judging from what I'm seeing and the strong path dependance, I'm not sure if the issues are fixable within the project.

It would be best for somebody to do a clean and humane re-implementation on top of the Nix store concept.

hazelweakly, to random
@hazelweakly@hachyderm.io avatar

behold, the git logs of a highly optimal system in which nothing goes wrongly ever

good thing nix saves time and neovim makes you more efficient as a person amirite

tuck, to random

I have started learning Nix and Home Manager. Along this journey I'll be compiling some articles showing the process I am taking to configure and convert my existing fish shell dotfiles over to the nix and home manager setup.

Here is the first post showing the initial setup.

https://www.dantuck.com/article/nix/setup/

Join me in this learning journey!

SecurityWriter, (edited ) to infosec

deleted_by_author

  • Loading...
  • docRekd,

    @SecurityWriter all the things with .
    This includes automatic and before merging

    ramin_hal9001, to linux
    @ramin_hal9001@emacs.ch avatar

    Guix maintainers Janneke Nieuwenhuizen @janneke and Ludovic Courtès @civodul have announced just today that their "seed" C compiler "Mes" is now in production in Guix OS. Mes can, after several boostraping stages eventually compile GCC which in turn compiles Linux, Guile, and Guix. The bootstrap program (as I understand it) is written in Guile Scheme, and compiles to a 357 byte binary. Now when you do guix pull you will see that the entirety of the core operating system (some 22,000 expressions) all depend on that single 357-byte bootstrap program. The idea is to eliminate the footprint of trusted binaries that build the software for the OS and compiler toolchain -- the famous "Trusting Trust" problem outlined by Ken Thompson which he presented while receiving his Turing Award. Thanks to their hard work, we now have an operating system for which every stage of the build can be verified by a human. https://guix.gnu.org/blog/2023/the-full-source-bootstrap-building-from-source-all-the-way-down/

    Nix OS people do not need to feel left out, a new issue on the Nix OS GitHub page has announced that they will begin a similar project. https://github.com/NixOS/nixpkgs/pull/227914

    hanemile, to random
    @hanemile@chaos.social avatar

    : "Ist es serverless, wenn man auf hostet?"

    sotolf, to programming

    and has this thing in common, people excited about them manage to drag it in to every discussion, and will derail it to talk about their pet thing talking down at others and just kill the good discussion that was there.

    kytta,
    @kytta@fosstodon.org avatar

    @sotolf is the new (btw)

    lisa, to linux

    Im upgrading my pc to curesed hardwear to than install NixOS on it OWO im hyped ​:blahaj:​

    aral, to SmallWeb
    @aral@mastodon.ar.al avatar

    Great, it looks like whatever they changed in Chrome no longer trusts Kitten’s¹ local certificate authority (installed and trusted by the system trust store, as you’d do in a spit enterprise).

    Applies to previously trusted and working certificates too.

    (The directly related module is Auto Encrypt Localhost²)

    Going to look into it today and see if I can’t find a workaround.

    FFS…

    ¹ https://codeberg.org/kitten/app
    ² https://codeberg.org/small-tech/auto-encrypt-localhost

    ck,

    @aral you can try as an account level package manager. Yes, I know, nix is kind of a love or hate it thing, but it will never install anything system wide, everything is contained in the nix store and easy to get rid of if you figure you don't like it.

    eisfunke, to random
    @eisfunke@inductive.space avatar

    Talked to @davebloggt today, he told me he worked with some colleagues on a machine someone else (who doesn't work there anymore) set up at his workplace. I think this is an interesting case study on the new-to-NixOS-experience, which is why I'm writing this down.

    They tried to change something in the sway config. Searching "sway nixos" led them to the NixOS wiki, which said something about if sway is enabled in the NixOS config at /etc/nixos/configuration.nix, which it was, it overwrites any home-manager config for sway. However, the sway config file was a symlink to a home-manager path in the store, even after running nixos-rebuild switch.

    Searching "home-manager" led them to the NixOS wiki again, which said something about the home-manager config being in ~/.config/nixpkgs/home.nix or a NixOS module. This file however didn't exist, and theconfiguration.nix` didn't contain anything mentioning home-manager.

    This ended in confusion, them not being able to determine where the home-manager stuff came from, and finally them simply deleting the symlink and changing stuff manually.

    The solution we worked out together was that the system was built from a flake in some repo. The file in /etc/nixos/configuration.nix was probably just a leftover, which is why it contained stuff that didn't make sense. When they ran nixos-rebuild without --flake it took the old config file, which didn't contain any home-manager stuff. That left the system in an inconsistent state.

    Some learnings we might take from this:

    • If you google something about NixOS, in most cases, the wiki will be the first thing to pop up, because it's the only place that really contains the kind of "you want X? do Y" instructions for practical stuff.
    • I think the NixOS wiki isn't really up to that task as de-facto landing page for novices. It's neither really comprehensive nor up-to-date and seemingly not even official anymore and now now operated independently because of... some stuff that happened?
    • The flake/non-flake split of the ecosystem doesn't make things easier.
    • The person who set up that machine probably should have documented their deployment.
    • His company should really hire me as a consultant!
    nomeata, to random
    @nomeata@mastodon.online avatar

    I'm wondering if I should package and contribute little useful (at least to me) but somewhat fringe tools like git post-squash to nixpkgs:
    https://github.com/nomeata/git-post-squash

    slice, to NixOS
    @slice@chitter.xyz avatar

    📝 an overview of nix in practice

    nix is weird, awesome, frustrating, and there's really nothing else quite like it. i wanted to try to explain it and show off specific scenarios where i thought it helped me personally

    https://slice.zone/blog/nix-in-practice/

    aynish, to elixir

    I'm looking for a back end / devops / SRE role that can hire me in Vancouver, BC (happy to do remote/hybrid)

    I'm experienced and can be trusted around computers, especially ones that aren't my own.

    I love and functional languages (such as ) and have experience with all the fancy industry standard tools ( ) as well as with all the other things expected of my role (cloud providers, CI/CD, IaC, networking, postgres)

    blinry, to random
    @blinry@chaos.social avatar

    I managed to build some 15-year-old software with , including Firefox 2.0 and Blender 2.45!

    This post explains which problems I encountered along the way, and how I solved them: https://blinry.org/nix-time-travel/

    kupac, to NixOS
    @kupac@functional.cafe avatar

    I'm wading into a nicely written but very complex docker ecosystem. Build times are up to my chest, and when I look down, I can't see my feet from the web of interconnected install.sh files. All the while my brain is going: solves this. (https://twitter.com/kubukoz/status/1516821150583689222)

    soupglasses, to NixOS
    @soupglasses@hachyderm.io avatar

    Which CI do you use? :revblobfoxread:

    Been playing with Garnix recently. I like it, but likely wont use it long-term as it is closed source.

    Curious what other's here run!

    shane, to elixir
    @shane@hachyderm.io avatar

    After several years, I've finally built some specialty flakes tooling for projects and am working on the first hard documentation pass. Code refinement comes next, but it's quite usable IMO - I dogfood it continually.

    https://github.com/shanesveller/nix-beam-flakes/tree/feature/readme

    If you're acquainted with one of Nix/Elixir but not the other you're my ideal source of feedback re: the initial documentation.

    If you're acquainted with both, well, we've likely encountered each other before, PTAL! 🤜 🤛

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • tacticalgear
  • DreamBathrooms
  • InstantRegret
  • magazineikmin
  • Youngstown
  • everett
  • anitta
  • slotface
  • GTA5RPClips
  • rosin
  • thenastyranch
  • kavyap
  • mdbf
  • Leos
  • modclub
  • osvaldo12
  • Durango
  • khanakhh
  • provamag3
  • cisconetworking
  • ngwrru68w68
  • cubers
  • tester
  • ethstaker
  • megavids
  • normalnudes
  • lostlight
  • All magazines