clemmyzemmy

joined 1 year ago
[–] clemmyzemmy@sopuli.xyz 2 points 2 weeks ago

Not sure of the exact problem, but I did see tailscale 1.82.5 (I think) was failing to build on Hydra yesterday with a build error mentioning 'portlist'. So I'd assume it's not just you?

 

Hi, I'm currently using a script to update my various NixOS hosts from a central machine, using the nh utility (https://github.com/nix-community/nh). By default, the command nh os switch . -H "..." --target-host "..." outputs the dependency graph of the build, as well as all the build logs. I like the dependency graph, however the build logs tend to push the diff result of the previous builds off of the terminal screen, so I have to watch the whole time in case I miss it. I've tried using the --no-nom flag, however this removed the dependency graph also. Is there a way in bash of selectively suppressing the build logs but not the dependency graph? Or is this an issue to raise with the project itself? The full bash script I'm using is shown below:

#!/usr/bin/env bash
# From: https://discourse.nixos.org/t/deploy-nixos-configurations-on-other-machines/22940/8

hosts=($(echo `nix eval .#nixosConfigurations --apply 'pkgs: builtins.concatStringsSep " " (builtins.attrNames pkgs)'` | xargs ))
skip=(
    "..."
)

rsa_key="$HOME/.config/sops-nix/secrets/keys/nixos-deploy-key"
export NIX_SSHOPTS="-t -i $rsa_key"

for host in "${hosts[@]}"
do
    # Check if the host is in the skip list
    if [[ " ${skip[*]} " =~ " ${host} " ]];then
        continue
    fi

    fqdn="$host"
    echo " ### $fqdn ### "
    echo

    initDir=($(ssh -i $rsa_key $host "readlink /run/current-system"))

    # Build config and list changes
    nh os switch . -H "$host" --target-host "deploy@$fqdn"

    ssh -i $rsa_key $host "nvd diff $initDir /run/current-system"
    echo
done

Any help is greatly appreciated, thanks!

[–] clemmyzemmy@sopuli.xyz 1 points 1 month ago

Good idea, thanks a lot (╯✧▽✧)╯

[–] clemmyzemmy@sopuli.xyz 1 points 1 month ago (2 children)

Aah thanks, doesn't feel too good but needs must I guess. In other news, the build phase is now failing with:

CMake Deprecation Warning at CMakeLists.txt:21 (cmake_minimum_required): Compatibility with CMake < 3.10 will be removed from a future version of CMake.

Update the VERSION argument value. Or, use the ... syntax to tell CMake that the project requires at least but has been updated to work with policies introduced by or earlier.

Any ideas what's going on there?

 

Hi all,

Since intel-media-sdk-23.2.2 + has been marked as vulnerable in NixPkgs ( commit ) is there an alternative for enabling Jellyfin hardware transcoding on an Intel i5-8500? Thanks!

[–] clemmyzemmy@sopuli.xyz 30 points 8 months ago (4 children)

I don't think I've ever fully realised the depth of feeling I have for emoticons, let alone that there were others out there!

─=≡Σ((( つ•̀ω•́)つ LET'S GO!

 

Howdy y'all non-developer trying to understand nix flakes.