From f17eee879a56a6c4f099c913ccd231ff85c264ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Tue, 23 May 2023 01:20:25 +0200 Subject: [PATCH] Add nixos-23.05 jobs --- flake.lock | 17 +++++++++++++++++ flake.nix | 37 ++++++++++++++++++++----------------- 2 files changed, 37 insertions(+), 17 deletions(-) diff --git a/flake.lock b/flake.lock index ce0abc9b..62844b18 100644 --- a/flake.lock +++ b/flake.lock @@ -377,6 +377,22 @@ "type": "github" } }, + "nixos-23-05": { + "locked": { + "lastModified": 1684796928, + "narHash": "sha256-GxF+TX2UsuiIj0rdLkovBBWnMdAccWmw/T9p6S00etU=", + "owner": "SuperSandro2000", + "repo": "nixpkgs", + "rev": "7582acc515fa86fb0c5797970ea987f3872a8ad6", + "type": "github" + }, + "original": { + "owner": "SuperSandro2000", + "ref": "nixos-23.05", + "repo": "nixpkgs", + "type": "github" + } + }, "nixos-hardware": { "locked": { "lastModified": 1684169666, @@ -484,6 +500,7 @@ "naersk": "naersk", "nix-cache-cut": "nix-cache-cut", "nixos": "nixos", + "nixos-23-05": "nixos-23-05", "nixos-hardware": "nixos-hardware", "nixos-modules": "nixos-modules", "oparl-scraper": "oparl-scraper", diff --git a/flake.nix b/flake.nix index d85f31f6..1d562caa 100644 --- a/flake.nix +++ b/flake.nix @@ -9,7 +9,7 @@ inputs = { # use sandro's fork full with cherry-picked fixes nixos.url = "github:SuperSandro2000/nixpkgs/nixos-22.11"; - # nixos-mobilizon.url = "github:minijackson/nixpkgs/init-mobilizon"; + nixos-23-05.url = "github:SuperSandro2000/nixpkgs/nixos-23.05"; nixos-hardware.url = "github:nixos/nixos-hardware"; affection-src = { @@ -213,7 +213,7 @@ }; }; - outputs = inputs@{ self, alert2muc, c3d2-user-module, deployment, disko, fenix, heliwatch, microvm, naersk, nixos, nixos-hardware, nixos-modules, buzzrelay, caveman, oparl-scraper, scrapers, secrets, skyflake, sshlogd, sops-nix, spacemsg, ticker, tigger, yammat, zentralwerk, ... }: + outputs = inputs@{ self, alert2muc, c3d2-user-module, deployment, disko, fenix, heliwatch, microvm, naersk, nixos, nixos-23-05, nixos-hardware, nixos-modules, buzzrelay, caveman, oparl-scraper, scrapers, secrets, skyflake, sshlogd, sops-nix, spacemsg, ticker, tigger, yammat, zentralwerk, ... }: let inherit (nixos) lib; @@ -231,11 +231,12 @@ # Our custom NixOS builder nixosSystem' = - { modules + { nixos ? inputs.nixos + , modules , system ? "x86_64-linux" }@args: - { inherit args; } // lib.nixosSystem { + { inherit args; } // nixos.lib.nixosSystem { inherit system; modules = [ @@ -831,19 +832,21 @@ in lib.mapAttrs getBuildEntryPoint self.nixosConfigurations # NOTE: left here to have the code as reference if we need something like in the future, eg. on a stable update - # // lib.mapAttrs' (hostname: nixosSystem: lib.nameValuePair - # # job display name - # (hostname + "-nox") - # (getBuildEntryPoint null (nixosSystem' (nixosSystem.args // (with nixosSystem.args; { - # modules = modules ++ [ - # { - # # simd.enable = lib.mkForce true; - # environment.noXlibs = true; - # } - # ]; - # # nixpkgs = nixos-unstable-simd; - # })))) - # ) self.nixosConfigurations + // lib.mapAttrs' (hostname: nixosSystem: let + hostname' = hostname + "-23-05"; + in lib.nameValuePair + # job display name + hostname' + (getBuildEntryPoint hostname' (nixosSystem' (nixosSystem.args // (with nixosSystem.args; { + modules = modules ++ [ + # { + # # simd.enable = lib.mkForce true; + # environment.noXlibs = true; + # } + ]; + nixos = nixos-23-05; + })))) + ) self.nixosConfigurations // nixos.lib.filterAttrs (name: attr: (builtins.match ".+-tftproot" name != null && lib.isDerivation attr) ) self.packages.aarch64-linux