Skip to content

Commit

Permalink
flake: import colmena fixes for nix 2.24 and darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
xanderio committed Nov 1, 2024
1 parent 14c77a2 commit 668fc64
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 6 deletions.
7 changes: 4 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 13 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
nixos-small.url = "github:NixOS/nixpkgs/nixos-unstable-small";
nixos-hardware.url = "github:NixOS/nixos-hardware";
flake-parts.url = "github:hercules-ci/flake-parts";
colmena.url = "github:zhaofengli/colmena";
colmena.url = "github:zhaofengli/colmena/direct-flake-eval";
colmena.inputs."nixpkgs".follows = "nixpkgs";
darwin = {
url = "github:lnl7/nix-darwin/master";
Expand Down Expand Up @@ -76,7 +76,18 @@
formatter = pkgs.nixfmt-rfc-style;
devShells.default = pkgs.mkShellNoCC {
buildInputs = [
pkgs.colmena
(inputs'.colmena.packages.colmena.overrideAttrs (old: {
patches = (
old.patches or [ ]
++ [
(pkgs.fetchpatch {
url = "https://github.com/zhaofengli/colmena/pull/233.patch";
hash = "sha256-uwL3u0gO708bzV2NV8sTt10WHaCL3HykJNqSZNp9EtA=";
})
]
);
}))

pkgs.sops
inputs'.sops-to-age.packages.ssh-to-age
];
Expand Down
3 changes: 2 additions & 1 deletion hosts/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
hex = import ./hex/disko.nix;
vetinari = import ./vetinari/disko.nix;
};
nixosConfigurations = (inputs.colmena.lib.makeHive self.outputs.colmena).nodes;
colmenaHive = inputs.colmena.lib.makeHive self.outputs.colmena;
nixosConfigurations = self.colmenaHive.nodes;
};
}

0 comments on commit 668fc64

Please sign in to comment.