43 lines
1.2 KiB
Nix
43 lines
1.2 KiB
Nix
{
|
|
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
inputs.sops-nix.url = "github:Mic92/sops-nix";
|
|
|
|
outputs = { self, nixpkgs, sops-nix }@attrs: let
|
|
hydraGitea = (final: prev: {
|
|
hydra_unstable = prev.hydra_unstable.overrideAttrs
|
|
(old: {
|
|
doCheck = false;
|
|
patches = [
|
|
(final.fetchpatch {
|
|
name = "hydra-gitea-push-patch";
|
|
url = "https://patch-diff.githubusercontent.com/raw/NixOS/hydra/pull/1227.patch";
|
|
sha256 = "A4dN/4zLMKLYaD38lu87lzAWH/3EUM7G5njx7Q4W47w=";
|
|
})
|
|
];
|
|
});
|
|
});
|
|
nvidiaContainer = import ./nvidiacontainer-overlay.nix nixpkgs;
|
|
in {
|
|
|
|
nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
specialArgs = attrs;
|
|
modules =
|
|
[
|
|
({ config, pkgs, ... }: {
|
|
nixpkgs.overlays = [ hydraGitea nvidiaContainer ];
|
|
})
|
|
./machines/hippocampus/configuration.nix
|
|
sops-nix.nixosModules.sops
|
|
];
|
|
};
|
|
nixosConfigurations.universedesktop = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
modules =
|
|
[
|
|
./configuration.nix
|
|
];
|
|
};
|
|
};
|
|
}
|