47 lines
1.2 KiB
Nix
47 lines
1.2 KiB
Nix
{
|
|
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 =
|
|
[
|
|
(super: self: { logo = super.callPackage ./lib/pkgs/logo { }; })
|
|
(super: self: { config-archive = super.callPackage ./lib/pkgs/config-archive.nix { }; })
|
|
];
|
|
};
|
|
|
|
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
|
|
];
|
|
};
|
|
};
|
|
|
|
devShells = forAllSystems (pkgs: {
|
|
default = pkgs.mkShell {
|
|
buildInputs = [ pkgs.nixos-rebuild ];
|
|
};
|
|
});
|
|
};
|
|
}
|