Files
infra/flake.nix

47 lines
1.2 KiB
Nix
Raw Normal View History

{
description = "Personal Infrastructure stuff?";
inputs = {
nixpkgs.url = "nixpkgs/nixos-23.05";
impermanence.url = "github:nix-community/impermanence";
};
outputs = {self, nixpkgs, impermanence}:
let
customPackagesModule = {...}: {
nixpkgs.overlays =
[
2023-09-17 14:52:43 +02:00
(super: self: { logo = super.callPackage ./lib/pkgs/logo { }; })
(super: self: { config-archive = super.callPackage ./lib/pkgs/config-archive.nix { }; })
];
};
2023-09-20 18:23:04 +02:00
forAllSystems = function:
nixpkgs.lib.genAttrs [
"x86_64-linux"
"aarch64-darwin"
] (system: function nixpkgs.legacyPackages.${system});
in
{
nixosConfigurations = {
fugitive = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
customPackagesModule
impermanence.outputs.nixosModules.impermanence
./lib/systems/fugitive
];
};
};
2023-09-20 18:23:04 +02:00
devShells = forAllSystems (pkgs: {
default = pkgs.mkShell {
buildInputs = [ pkgs.nixos-rebuild ];
};
});
};
2023-09-20 18:23:04 +02:00
}