feature/claurst #221

Merged
ahuston-0 merged 5 commits from feature/claurst into main 2026-05-01 01:51:32 -04:00
5 changed files with 45 additions and 15 deletions
Showing only changes of commit f878369896 - Show all commits

View File

@@ -1,5 +1,5 @@
{ {
"recommendations": [ "recommendations": [
"davidanson.vscode-markdownlint" "davidanson.vscode-markdownlint"
] ]
} }

2
.vscode/mcp.json vendored
View File

@@ -1 +1 @@
{} {}

View File

@@ -164,19 +164,23 @@
lib = self; lib = self;
} }
); );
packageSetup = import ./pkgs/default.nix { inherit nixpkgs; };
inherit (packageSetup) localPackagesOverlay;
inherit (lib.adev.systems) genSystems getImages; inherit (lib.adev.systems) genSystems getImages;
inherit (self) outputs; # for hydra inherit (self) outputs; # for hydra
in in
rec { rec {
inherit lib; # for allowing use of custom functions in nix repl inherit lib; # for allowing use of custom functions in nix repl
overlays.default = localPackagesOverlay;
hydraJobs = import ./hydra/jobs.nix { inherit inputs outputs systems; }; hydraJobs = import ./hydra/jobs.nix { inherit inputs outputs systems; };
formatter = forEachSystem (system: nixpkgs.legacyPackages.${system}.nixfmt); formatter = forEachSystem (system: nixpkgs.legacyPackages.${system}.nixfmt);
nixosConfigurations = genSystems inputs outputs src (src + "/systems"); nixosConfigurations = genSystems inputs outputs src (src + "/systems");
homeConfigurations = { homeConfigurations = {
"alice" = inputs.home-manager.lib.homeManagerConfiguration { "alice" = inputs.home-manager.lib.homeManagerConfiguration {
pkgs = import nixpkgs { system = "x86_64-linux"; }; pkgs = packageSetup.mkPkgs "x86_64-linux";
modules = [ modules = [
inputs.stylix.homeModules.stylix inputs.stylix.homeModules.stylix
inputs.sops-nix.homeManagerModules.sops inputs.sops-nix.homeManagerModules.sops
@@ -203,13 +207,7 @@
qcow = getImages nixosConfigurations "qcow"; qcow = getImages nixosConfigurations "qcow";
}; };
packages.x86_64-linux.lego-latest = packages = forEachSystem packageSetup.mkPackages;
nixpkgs.legacyPackages.x86_64-linux.callPackage ./pkgs/lego-latest/default.nix
{ };
packages.x86_64-linux.claurst =
nixpkgs.legacyPackages.x86_64-linux.callPackage ./pkgs/claurst/default.nix
{ };
checks = import ./checks.nix { inherit inputs forEachSystem formatter; }; checks = import ./checks.nix { inherit inputs forEachSystem formatter; };
devShells = import ./shell.nix { inherit inputs forEachSystem checks; }; devShells = import ./shell.nix { inherit inputs forEachSystem checks; };

33
pkgs/default.nix Normal file
View File

@@ -0,0 +1,33 @@
{ nixpkgs }:
let
localPackagesOverlay = final: _prev: {
lego-latest = final.callPackage ./lego-latest/default.nix { };
claurst = final.callPackage ./claurst/default.nix { };
};
mkPkgs =
system:
import nixpkgs {
inherit system;
overlays = [ localPackagesOverlay ];
};
mkPackages =
system:
let
pkgs = mkPkgs system;
in
{
inherit (pkgs)
lego-latest
claurst
;
};
in
{
inherit
localPackagesOverlay
mkPkgs
mkPackages
;
}

View File

@@ -2,7 +2,6 @@
config, config,
pkgs, pkgs,
lib, lib,
outputs,
machineConfig, machineConfig,
... ...
}: }:
@@ -91,7 +90,7 @@
gocryptfs gocryptfs
awscli2 awscli2
outputs.packages.${pkgs.system}.claurst claurst
]; ];
}; };