Most profoundly annoying #nixos error right now?
error: attribute 'currentSystem' missing
Apparently this is based on a philosophical choice made with #flakes, and I have no problem with that, but the actual resolution steps (particularly when migrating legacy config) are ... opaque.
il y a 2 p'tit scripts pour étendre git qui m'intéressaient, mais qui ne sont pas packagés sur Nixpkgs
pareil, j'ai mit le lien du repo du script, en input de mon Nix #Flakes
https://gitlab.com/pinage404/dotfiles/-/blob/bb96e4ff993d5c365329cc5bff1aa67b8eb3111f/flake.nix#L64
puis j'ai wrappé dans un `writeShellScriptBin``
https://gitlab.com/pinage404/dotfiles/-/blob/bb96e4ff993d5c365329cc5bff1aa67b8eb3111f/home-manager/package/cli/dev.nix#L48
et pouf ! #git a 2 nouvelles commandes
---
un usage de Nix qui me plait beaucoup
I've published my #NixOS configuration files: https://github.com/novoid/nixos-config
#flakes #homemanager #xfce #tmux #zsh and more
#nixos #flakes #homemanager #xfce #tmux #zsh
@pludikovsky There are plenty of intros. However, they cover different levels and topics and #NixOS is not NixOS if you take #flakes and #Homemanager into account.
Same goes for all syntax "missions" here: it depends on your setup and what you want to do.
For me, almost anything was a new adventure to me until I found out how to do it. 🤷
That's the bad part of NixOS IMHO.
@publicvoit
How do you like it so far?
#nixos #flakes #homemanager #github #gitlab #nix
I'd like to publish my #NixOS configuration (incl. #flakes + #homemanager) soon.
With #GitHub it seems easy to look for configuration examples: https://gitlab.com/search?search=xfconf (1.2M code, 1.8k Repositories). 👍
However, #GitLab doesn't seem to support a similar search method: not a single hit for each:
https://gitlab.com/search?search=xfconf
https://gitlab.com/search?search=homemanager
https://gitlab.com/search?search=nixos-configuration
Related: https://docs.gitlab.com/ee/user/search/
It looks like GitLab isn't the proper place for my config when I want to be found.
#nixos #flakes #homemanager #GitHub #gitlab #nix
Finally switched from my old NixOS configuration to Nix flakes. It took me nearly a week to do so due to lack of up-to-date docs. But it does provide much better composibility, where I could specify deps in inputs rather than the impure nix channels.
Next step is to put config of multiple machines into the same flake.
What's missing in the #NixOS community (from my perspective so far): documentation for the step from one host (relatively well documented) to multiple hosts with different configurations.
There seems to be millions of possible ways to implement that and nothing seems to be documented.
With one test notebook and one VM, I'm already totally lost since this really strange #nixlang (+ #flakes) requires weird magic spells for the simple tasks of defining host-specific includes. 😔
Hm, strange, one of my servers fails rebuilding while I migrate to #Nix #flakes :
```
building the system configuration...
warning: error: unable to download 'https://github.com/ryantm/agenix/archive/db5637d10f797bb251b94ef9040b237f4702cde3.tar.gz': Timeout was reached (28)
[...]
```
After some confusion I found the issue. This server is #IPv6-only. It has a private IPv4, but it is not NATed or routed. And NixOS works just fine, as cache.nixos.org is IPv6-enabled.
But if you use Flakes, you probably load inputs from GitHub, making #IPv4 a requirement.
Already reaching maximum value (bottom right) from
https://xkcd.com/1205/ when trying to start with #NixOS from scratch + migrating to #flakes.
And I did not even start with adding configurations to #HomeManager yet.
I guess this will never pay off. 😔
It's like an adventure game where you only get something really positive every few hours or such ...
However, the end result is still tempting to me ...
#nixos #flakes #homemanager #yakshaving
Once #nixos installed, what to do ?
stable or unstable ? #homemanager or not ?
#flakes or not ? Multiple files for my configuration.nix or not ?
According to your use, some of this questions can be answered here :
https://discourse.nixos.org/t/tips-tricks-for-nixos-desktop/28488
Now I've different approach for my laptop (all in configuration.nix) and my servers (multiple files) : #kiss (Keep It Simple and Stupid)
#kiss #flakes #homemanager #nixos
Developing Nix libraries with Subflakes
https://figsoda.github.io/posts/2023/developing-nix-libraries-with-subflakes/
On my voyage for more #idempotent systems, deploy-rs is really resonating with me right now. 😁 It's a #nix #flakes profile deployment system.
Fancy for, you write a declarative config and it gets what you need correctly. 😅 It's really making me rethink of my #ansible usage. At least for provisioning.
For troubleshooting though, you'll need to pry ansible from my dead hands to get rid of the love. 😁
#idempotent #nix #flakes #ansible