2024-05-07 13:13:37 +02:00
|
|
|
{ pkgs, lib, config, ... }:
|
2024-05-07 12:19:14 +02:00
|
|
|
let
|
|
|
|
nivSources = import ./nix/sources.nix;
|
|
|
|
asGithubRef = src: "github:${src.owner}/${src.repo}/${src.rev}";
|
|
|
|
in
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
"${nivSources.agenix}/modules/age.nix"
|
|
|
|
(import "${nivSources.lix-module}/module.nix" { lix = nivSources.lix-pkg; })
|
|
|
|
(builtins.getFlake (asGithubRef nivSources.chaotic)).nixosModules.default # fixme: ideally we'd not rely on the flake syntax to load the module
|
|
|
|
];
|
|
|
|
|
|
|
|
nixpkgs.hostPlatform = "x86_64-linux";
|
|
|
|
|
2024-05-07 13:13:37 +02:00
|
|
|
nixpkgs.pkgs = import nivSources.nixpkgs { allowUnfree = true; };
|
|
|
|
|
2024-05-07 12:19:14 +02:00
|
|
|
nixpkgs.overlays = lib.singleton (final: prev: {
|
2024-05-07 13:13:37 +02:00
|
|
|
agenix = final.callPackage "${nivSources.agenix}/pkgs/agenix.nix" { };
|
2024-05-07 12:19:14 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
nix.settings.extra-substituters = [
|
|
|
|
"https://cache.lix.systems"
|
|
|
|
"https://nyx.chaotic.cx/"
|
|
|
|
];
|
|
|
|
|
|
|
|
nix.settings.trusted-public-keys = [
|
|
|
|
"cache.lix.systems:aBnZUw8zA7H35Cz2RyKFVs3H4PlGTLawyY5KRbvJR8o="
|
|
|
|
"nyx.chaotic.cx-1:HfnXSw4pj95iI/n17rIDy40agHj12WfF+Gqk6SonIT8="
|
|
|
|
"chaotic-nyx.cachix.org-1:HfnXSw4pj95iI/n17rIDy40agHj12WfF+Gqk6SonIT8="
|
|
|
|
];
|
|
|
|
}
|