toad.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
Mastodon server operated by David Troy, a tech pioneer and investigative journalist addressing threats to democracy. Thoughtful participation and discussion welcome.

Administered by:

Server stats:

292
active users

#nixosconfigurations

1 post1 participant0 posts today
adingbatponder<p>If I have a derivation in my <a href="https://fosstodon.org/tags/nixosConfigurations" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>nixosConfigurations</span></a> flake for/using a certain package (e.g. rns, lxmf) and it uses python3.packages and follows nixpkgs , how do I protect the derivation against breakage if my <a href="https://fosstodon.org/tags/nixpkgs" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>nixpkgs</span></a> get a new lock.nix i.e. I move to newer updated packages for the whole computer ? <a href="https://fosstodon.org/tags/nixos" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>nixos</span></a> <a href="https://fosstodon.org/tags/nix" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>nix</span></a> <a href="https://fosstodon.org/tags/python3" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>python3</span></a></p>
Yann Büchau :nixos:<p>Okay the fastest workaround I found for now is:</p><p># build laptop's system on the server (a lot already built, doesn't take long)<br>server$ nix build .<a href="https://fosstodon.org/tags/nixosConfigurations" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>nixosConfigurations</span></a>.$LAPTOP.config.system.build.toplevel)"</p><p># copy system manually from server to laptop<br>laptop$ nix copy --from ssh://server "$(nix eval --raw --apply builtins.toString .<a href="https://fosstodon.org/tags/nixosConfigurations" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>nixosConfigurations</span></a>."$(hostname)".config.system.build.toplevel)"<br># then nixos-rebuild as usual<br>laptop$ nixos-rebuild --flake . --use-remote-sudo switch</p><p><a href="https://fosstodon.org/tags/nixos" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>nixos</span></a></p>
9th level spell slut<p>if you're running nixos:</p><pre><code># for your local system<br>nix derivation show -r /run/current-system | jq -r ".[] | .outputs.out.path" | cut -d- -f2- | grep "^xz-5.6"<br><br># for a flake<br>nix derivation show -r .#nixosConfigurations.whatever-hostname.config.system.build.toplevel | jq -r ".[] | .outputs.out.path" | cut -d- -f2- | grep "^xz-5.6"<br></code></pre>
adingbatponder<p><a href="https://fosstodon.org/tags/nixos" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>nixos</span></a> install with <a href="https://fosstodon.org/tags/gnome" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>gnome</span></a> . How does one set apps/programs/packages to run at <a href="https://fosstodon.org/tags/startup" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>startup</span></a> by using the config.nix file (without using home-manager and without using gnome which in any case btw has no startup icon visible) ? <a href="https://fosstodon.org/tags/nixosconfigurations" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>nixosconfigurations</span></a></p>