by 96bcaa76-0f27-45e7-9aa3-65c535e53a05

Gnome Console set max buffer length

Gnome Console no longer easily let’s you set a longer scroll buffer. It’s default length is just 10,000 lines which can be lacking at times. You can still configure it via gsettings though

gsettings set  org.gnome.Console scrollback-lines 9223372036854775807

set its to the max it can be as its an int64 number.

by 96bcaa76-0f27-45e7-9aa3-65c535e53a05

Nixos Always Latest

Nixos often has the latest versions of packages. Especially if you pull from unstable or directly from github, but there are times when the most bleeding edge of software has not been packaged yet. Nix does provide an easy fix though. For exaple I want to run the latest version of prusa-slicer I can do this easily by doing the following.

  mog_prusa-slicer = pkgs.unstable.prusa-slicer.overrideAttrs (oldAttrs: rec {
    version = "2.6.1-rc2";
    src = pkgs.fetchFromGitHub {
      owner = "prusa3d";
      repo = "PrusaSlicer";
      hash =
        "sha256-eSAKQNNNh4sDHwBTl0AmETlM+eFbC3PL5we5O5oOXfI="; # lib.fakeHash;
      rev = "version_${version}";
in {
  environment.systemPackages = with pkgs; [

this is altering the standard nixos package which is at 2.6.0 to build from the 2.6.1-rc2 version. Given the depdencies haven’t changed it just worked. To find the hash value you need you can use lib.fakeHash it will cause nix to give you the correct hash for the new version of the software you are trying to build.

by 96bcaa76-0f27-45e7-9aa3-65c535e53a05

Nixos debian backup

Often it is helpful to have a non nix environment to test things in, my go to choice is debian. this is my config. it just starts a debian instance via nspawn so its very fast.

First get the image and their public key from here hub nspawn

sudo sudo gpg --no-default-keyring \ \
         --keyring=/etc/systemd/import-pubring.gpg \
         --search 9E31BD4963FC2D19815FA7180E2A1E4B25A425F6
sudo machinectl pull-tar \
         --verify=signature \  \

here is the configuation.

{ config, lib, pkgs, ... }:

  systemd.targets.machines.enable = true;
  systemd.nspawn."debian-bookworm" = {
    enable = true;
    execConfig = { Boot = true; };

    filesConfig = {
      BindReadOnly =
        [ "/etc/resolv.conf:/etc/resolv.conf" "/etc/hosts:/etc/hosts" ];
    networkConfig = { Private = false; };
  };"systemd-nspawn@debian-bookworm" = {
    enable = true;
    requiredBy = [ "" ];
    overrideStrategy = "asDropin";

and I can enter it easily

machinectl login debian-bookworm
by 96bcaa76-0f27-45e7-9aa3-65c535e53a05