Netboot: Difference between revisions

Pigs (talk | contribs)
See also: Use current channel for search.nixos.org link
Tags: Mobile edit Mobile web edit Advanced mobile edit
Nh2 (talk | contribs)
Fix advanced script for NixOS 25.05; especially: Failed assertions: - 25.05.git.d19a0d79723b is an invalid value for 'system.stateVersion'; it must be in the format "YY.MM",
Line 114: Line 114:
           mutt
           mutt
           borgbackup
           borgbackup
           rxvt_unicode.terminfo
           rxvt-unicode
         ];
         ];
         # users.users.nixos.openssh.authorizedKeys.keys = [ … ];
         # users.users.nixos.openssh.authorizedKeys.keys = [ … ];
Line 136: Line 136:
     { config, ... }:
     { config, ... }:
     {
     {
       system.stateVersion = config.system.nixos.version; # be quiet
       system.stateVersion = builtins.substring 0 (builtins.stringLength "XX.XX") config.system.nixos.version;
       system.nixos.tags = [ name ];
       system.nixos.tags = [ name ];
     };
     };