Skip to content

Fix CI failures from flake.lock update: nixos-25.05 compatibility#10

Draft
Copilot wants to merge 4 commits intoupdate_flake_lock_actionfrom
copilot/sub-pr-3
Draft

Fix CI failures from flake.lock update: nixos-25.05 compatibility#10
Copilot wants to merge 4 commits intoupdate_flake_lock_actionfrom
copilot/sub-pr-3

Conversation

Copy link

Copilot AI commented Feb 23, 2026

The automated flake.lock update pulled in newer versions of srvos, devenv, and treefmt-nix that are incompatible with nixos-25.05.

treefmt-nix breaking changes

  • nixfmt: Default package changed from nixfmt-rfc-style to nixfmt (classic), which can't parse the |> pipe operator used throughout the codebase. Pinned back to pkgs.nixfmt-rfc-style.
  • nixf-diagnose: New autoFix = true default passes --auto-fix flag not supported by the nixos-25.05 version. Disabled.

srvos incompatibility

New srvos uses systemd.settings.Manager for watchdog config — an option that doesn't exist until newer nixpkgs. Added a compatibility shim that defines the option and converts it to systemd.extraConfig:

({ config, lib, ... }:
  let managerSettings = config.systemd.settings.Manager or { };
  in {
    options.systemd.settings = lib.mkOption {
      type = lib.types.attrsOf (lib.types.attrsOf lib.types.str);
      default = { };
    };
    config = lib.mkIf (managerSettings != { }) {
      systemd.extraConfig = lib.concatStringsSep "\n" (
        lib.mapAttrsToList (key: value: "${key}=${value}") managerSettings
      );
    };
  })

devenv incompatibility

New devenv defaults git-hooks.package to pkgs.prek (a pre-commit replacement not in nixos-25.05). Overridden with pkgs.pre-commit.


🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

github-actions bot and others added 2 commits February 22, 2026 00:46
Flake lock file updates:

• Updated input 'devenv':
    'github:cachix/devenv/312f0eb' (2025-04-27)
  → 'github:cachix/devenv/6757a74' (2026-02-21)
• Updated input 'devenv/flake-compat':
    'github:edolstra/flake-compat/ff81ac9' (2024-12-04)
  → 'github:edolstra/flake-compat/f387cd2' (2025-10-27)
• Added input 'devenv/flake-parts':
    'github:hercules-ci/flake-parts/8645992' (2025-10-20)
• Added input 'devenv/flake-parts/nixpkgs-lib':
    follows 'devenv/nixpkgs'
• Updated input 'devenv/git-hooks':
    'github:cachix/git-hooks.nix/dcf5072' (2025-03-22)
  → 'github:cachix/git-hooks.nix/ca5b894' (2025-10-17)
• Updated input 'devenv/git-hooks/flake-compat':
    follows 'devenv'
  → follows 'devenv/flake-compat'
• Updated input 'devenv/nix':
    'github:domenkozar/nix/0903948' (2025-04-24)
  → 'github:cachix/nix/7eb6c42' (2026-02-19)
• Updated input 'devenv/nix/flake-compat':
    follows 'devenv'
  → follows 'devenv/flake-compat'
• Updated input 'devenv/nix/flake-parts':
    'github:hercules-ci/flake-parts/9126214' (2024-04-01)
  → follows 'devenv/flake-parts'
• Removed input 'devenv/nix/flake-parts/nixpkgs-lib'
• Added input 'devenv/nix/git-hooks-nix':
    follows 'devenv/git-hooks'
• Removed input 'devenv/nix/libgit2'
• Updated input 'devenv/nix/nixpkgs':
    'github:NixOS/nixpkgs/88269ab' (2024-06-03)
  → follows 'devenv/nixpkgs'
• Removed input 'devenv/nix/pre-commit-hooks'
• Added input 'devenv/nixd':
    'github:nix-community/nixd/d4bf15e' (2025-11-24)
• Added input 'devenv/nixd/flake-parts':
    follows 'devenv/flake-parts'
• Added input 'devenv/nixd/flake-root':
    'github:srid/flake-root/b759a56' (2024-08-14)
• Added input 'devenv/nixd/nixpkgs':
    follows 'devenv/nixpkgs'
• Added input 'devenv/nixd/treefmt-nix':
    'github:numtide/treefmt-nix/65712f5' (2024-12-20)
• Added input 'devenv/nixd/treefmt-nix/nixpkgs':
    follows 'devenv/nixd/nixpkgs'
• Updated input 'devenv/nixpkgs':
    'github:cachix/devenv-nixpkgs/7bd9e84' (2024-12-06)
  → 'github:cachix/devenv-nixpkgs/d1c3045' (2025-10-24)
• Updated input 'flake-parts':
    'github:hercules-ci/flake-parts/c621e84' (2025-04-01)
  → 'github:hercules-ci/flake-parts/5792860' (2026-02-02)
• Updated input 'nixos-generators':
    'github:nix-community/nixos-generators/ee07ba0' (2025-05-19)
  → 'github:nix-community/nixos-generators/8946737' (2026-01-30)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/8f1b52b' (2025-06-04)
  → 'github:NixOS/nixpkgs/ac62194' (2026-01-02)
• Updated input 'sops-nix':
    'github:Mic92/sops-nix/8d215e1' (2025-05-18)
  → 'github:Mic92/sops-nix/e85540f' (2026-02-19)
• Updated input 'srvos':
    'github:nix-community/srvos/755578b' (2025-05-19)
  → 'github:nix-community/srvos/4744487' (2026-02-19)
• Updated input 'treefmt-nix':
    'github:numtide/treefmt-nix/1f3f7b7' (2025-05-26)
  → 'github:numtide/treefmt-nix/337a4fe' (2026-02-04)
Copilot AI and others added 2 commits February 23, 2026 22:21
- Add systemd.settings compatibility shim for nixos-25.05 (srvos compat)
- Override nixfmt package to nixfmt-rfc-style (treefmt-nix changed default)
- Disable nixf-diagnose autoFix (not supported in nixos-25.05)
- Override devenv git-hooks.package to pre-commit (pkgs.prek unavailable)

Co-authored-by: DaRacci <90304606+DaRacci@users.noreply.github.com>
…fically

Co-authored-by: DaRacci <90304606+DaRacci@users.noreply.github.com>
Copilot AI changed the title [WIP] Update flake.lock file with automated changes Fix CI failures from flake.lock update: nixos-25.05 compatibility Feb 23, 2026
Copilot AI requested a review from DaRacci February 23, 2026 22:25
@DaRacci DaRacci force-pushed the update_flake_lock_action branch from 0bf549c to 11c1458 Compare March 1, 2026 00:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants