home.social

#nixosconfigurations — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #nixosconfigurations, aggregated by home.social.

  1. Hi there,
    after approximately 15 hours I'm done with my server migration from #debian to #nixos.

    All services are running and backups are in place. I can now use my matrix account again. :P

    If someone is interested to look over my configuration, please visit my git repo. If there are some problematic configurations or something I should do better, please open an issue.

    codeberg.org/liamthexpl0rer/ni

    #server #linux #nixosconfigurations

  2. Do you have a single for multiple devices using different in which for each device you have a specified /persist data location as part of an setup? I am looking for examples, tips and foot-gun alerts.... cheers.

  3. I'm also curious do you recommend something else than home manager, multiple config files, flakes and maybe a git /w control scripts? #nix #nixos #nixosconfigurations :pacman: :nix:

  4. If I have a derivation in my 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 get a new lock.nix i.e. I move to newer updated packages for the whole computer ?

  5. @YvanDaSilva
    you can commit the update and then run
    nix store diff-closures --derivation git+file://<path to your config flake>?rev=<full commit hash before update>#nixosConfigurations.<hostname>.config.system.build.toplevel git+file://<path to your config flake>?rev=<full commit hash after update>#nixosConfigurations.<hostname>.config.system.build.toplevel

  6. nix build --builders 'ssh-ng://erin@dev x86_64-linux' .#nixosConfigurations.iso.config.system.build.isoImage

  7. Налаштовую новий сервер, відеокарти нема, тому треба headless install. Дуже зручно на NixOS згенерувати ISO з усіма моїми налаштуваннями + SSH публічними ключем.

    `nix build .#nixosConfigurations.xeon.config.system.build.isoImage`

  8. Okay the fastest workaround I found for now is:

    # build laptop's system on the server (a lot already built, doesn't take long)
    server$ nix build ..$LAPTOP.config.system.build.toplevel)"

    # copy system manually from server to laptop
    laptop$ nix copy --from ssh://server "$(nix eval --raw --apply builtins.toString .."$(hostname)".config.system.build.toplevel)"
    # then nixos-rebuild as usual
    laptop$ nixos-rebuild --flake . --use-remote-sudo switch

  9. when you nixos-rebuild .#nixosConfigurations.[one machine] --target-host [another machine] :neofox_x_x:

  10. Für Nextcloud ist

    settings.trusted_domains = ["my.domain.de" "my.otherdomain.net"];

    gesetzt. Hilft aber auch nicht.

    #nixosConfigurations

  11. @roberth @arianvp Hell yeah! Thanks for the info! (and implementation 😎️)
    Good to know I can just do `nix run unstable#nix -- ..config.myhost.system.build.toplevel` as a temporary workaround.

    Curious how this is done. Will peep the implementation.

  12. @arianvp Would be nice if stack traces could be constricted to include/exclude specific paths.

    - Paths within my git repo ... *very much* care about *all* of them
    - Paths within nixpkgs ... *maybe* care about 4-8 frames

    to find the error, you gotta sift through 500 lines of garbage. Makes iterating on NixOS a nightmare

    `nixos-rebuild` should collapse irrelevant internal frames by default. If you need the whole trace use `nix build ..host.config.system.build.toplevel`.

  13. NixOS users can determine if CUPS is enabled, and their machine may be impacted by the recent CUPS vulnerabilities via:

    nix eval .#nixosConfigurations.YOURMACHINENAME.config.services.printing.enable

    The machine is not affected if nix eval prints "false".

  14. #nixos #nixosConfigurations

    This

    ├── gnome
    │   ├── default.nix
    │   └── home.nix
    └── hyprland
       ├── default.nix
       └── home.nix

    Not this

    ├── nixos
    │   ├── gnome.nix
    │   └── hyprland.nix
    └── home-manager
       ├── gnome.nix
       └── hyprland.nix

    Separate concerns with
    github.com/pipelight/nixos-tid

  15. @brainblasted

    Should be possible with [mobile-nixos](github.com/NixOS/mobile-nixos) and `nix build ..<host>.config.system.build.iso-image`

    The project is kinda rough tho. Development/maintenance is slow, probably due to doing a bunch of nonstandard things on top of NixOS and not supporting Nix flakes.

    I have a OnePlus 6T, so hopefully I can step up to help maintain the project once I'm a little more knowledgeable with Nix and boot related stuff.

  16. @imikoy you can WHAT

    i need to do this asap awawawa

    my plan for including my phone into my nix flake so far was writing a nix package derivation for the aosp base image and exposing nix options which are transpiled into git patches and then built with `nix build .#nixosConfigurations.iso.config.system.build.isoImage` like you would do with a nixos installer image, but this sounds even better lmao

  17. To make start the last used vpn connection automatically under nixos after when the user logs on thereafter, try the setup as lines 160-179 of my pastebin.com/R3Hz05MZ Uses the command line interface of the protonvpn-cli package.
    Cannot say I understand it, but learnt a lot after a lot of dead-ends on the way. The in the configuratoin.nix file is not listed by Why?

  18. install with . How does one set apps/programs/packages to run at by using the config.nix file (without using home-manager and without using gnome which in any case btw has no startup icon visible) ?

  19. Is there a way to make nix eval do lazy evaluation? If I try to do something (stupid) like nix eval .#nixosConfigurations.example (defined by way of pkgs.lib.nixosSystem) to see what that set actually looks like my computer bursts into flames as it tries to evaluate the whole set all the way down, pulling in a bunch of (broken) derivations along the way #Nix #NixOS

  20. @ryanbooker you add the following to imports

    "${modulesPath}/installer/sd-card/sd-image-aarch64-new-kernel.nix"

    Build the SD card image: nix build .#nixosConfigurations.HOSTNAME.config.system.build.sdImage

    and then flash it: unzstd -cd result/sd-image/nixos-sd-image-*-aarch64-linux.img.zst | sudo dd bs=4M of=/dev/sdX

    The image might be gzip compressed, then just change the time extension and use gunzip