Files
nur/flake.nix
T
wymiller c101b7c7e6
Publish packages to Attic / publish (push) Successful in 11m43s
chore: update flake lock
2026-08-26 14:04:12 -04:00

56 lines
1.6 KiB
Nix

{
description = "Miller Nix User Repository";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-26.05";
home-manager.url = "github:nix-community/home-manager";
darwin.url = "github:LnL7/nix-darwin";
darwin.inputs.nixpkgs.follows = "nixpkgs";
hildibrand.url = "git+https://scm.wyattjmiller.com/wymiller/hildibrand.git";
caitsith.url = "git+https://scm.wyattjmiller.com/wymiller/caitsith.git";
};
outputs = inputs@{ self, nixpkgs, home-manager, darwin, ... }:
let
supportedSystems = [
"x86_64-linux"
"aarch64-linux"
"aarch64-darwin"
];
forAllSystems = f: nixpkgs.lib.genAttrs supportedSystems f;
in
{
packages = forAllSystems (system:
let
pkgs = import nixpkgs {
inherit system;
overlays = [ self.overlays.default ];
};
in
import ./pkgs {
inherit pkgs;
# packages that are already built with Nix go here
hildibrand = inputs.hildibrand.packages.${system}.default;
caitsith = inputs.caitsith.packages.${system}.default;
}
);
devShells = forAllSystems (system:
let pkgs = import nixpkgs { inherit system; }; in
{
default = pkgs.mkShell {
packages = with pkgs; [
nixfmt-rfc-style
];
};
}
);
overlays.default = import ./overlays;
homeManagerModules = import ./modules/home-manager self;
nixosModules.default = import ./modules/nixos;
darwinModules.default = import ./modules/darwin;
};
}