wrappers: migrate to nilla

This commit is contained in:
Nikodem Rabuliński 2025-03-23 13:35:24 +01:00
parent b79769a5ea
commit c88daff343
Signed by: nrabulinski
SSH key fingerprint: SHA256:AZZVyfKStaCo8sbJB+3Rr/CRrlym1oEgw7vMnynJeR8
6 changed files with 38 additions and 32 deletions

View file

@ -34,7 +34,6 @@
./assets ./assets
./hosts ./hosts
./modules ./modules
./wrappers
./services ./services
]; ];

View file

@ -7,6 +7,7 @@
includes = [ includes = [
./modules/nilla ./modules/nilla
./pkgs ./pkgs
./wrappers
]; ];
config.inputs = builtins.mapAttrs (_: src: { config.inputs = builtins.mapAttrs (_: src: {
@ -53,9 +54,8 @@
symlinkJoin { symlinkJoin {
name = "settei-base"; name = "settei-base";
paths = with (getPkgs system); [ paths = with (getPkgs system); [
# TODO: wrappers helix
# helix fish
# fish
git-commit-last git-commit-last
git-fixup git-fixup
]; ];

View file

@ -1,3 +1,4 @@
{ config }:
let let
systems = [ systems = [
"x86_64-linux" "x86_64-linux"
@ -10,7 +11,6 @@ let
}; };
in in
{ config }:
{ {
config.packages.conduit-next = { config.packages.conduit-next = {
inherit systems builder; inherit systems builder;

View file

@ -1,25 +1,32 @@
{ inputs, ... }: { lib, config }:
let
systems = [
"x86_64-linux"
"aarch64-linux"
"aarch64-darwin"
];
wrappedPerSystem = lib.attrs.generate systems (
system:
config.inputs.wrapper-manager-hm-compat.result.lib {
pkgs = config.inputs.nixpkgs.result.legacyPackages.${system};
modules = [
./starship
./helix
# TODO: Enable again
# ./rash
./fish
./wezterm
];
specialArgs.inputs = builtins.mapAttrs (_: input: input.result) config.inputs;
}
);
wrappedPerSystem' = builtins.mapAttrs (_: wrapped: wrapped.config.build.packages) wrappedPerSystem;
wrapperNames = builtins.attrNames wrappedPerSystem'."x86_64-linux";
in
{ {
perSystem = config.packages = lib.attrs.generate wrapperNames (wrapper: {
{ pkgs, inputs', ... }: inherit systems;
let builder = "custom-load";
wrapped = inputs.wrapper-manager-hm-compat.lib { package = { system }: wrappedPerSystem'.${system}.${wrapper};
inherit pkgs; });
modules = [
./starship
./helix
# TODO: Enable again
# ./rash
./fish
./wezterm
];
specialArgs = {
inherit inputs inputs';
};
};
all-packages = wrapped.config.build.packages;
in
{
packages = all-packages;
};
} }

View file

@ -1,8 +1,8 @@
{ pkgs, inputs', ... }: { pkgs, inputs, ... }:
{ {
programs.helix = { programs.helix = {
enable = true; enable = true;
package = inputs'.helix.packages.default; package = inputs.helix.packages.${pkgs.system}.default;
settings = { settings = {
theme = "base16_default_dark"; theme = "base16_default_dark";
editor = { editor = {

View file

@ -1,6 +1,6 @@
{ {
pkgs, pkgs,
inputs', inputs,
config, config,
... ...
}: }:
@ -13,7 +13,7 @@
rev = "8eb52c163d6ea7c3cec2cc6b1011ce00738942e1"; rev = "8eb52c163d6ea7c3cec2cc6b1011ce00738942e1";
hash = "sha256-1yU0ZUBQqYEn85j4T2pLs02MTyJnO5BbYALIa88iomY="; hash = "sha256-1yU0ZUBQqYEn85j4T2pLs02MTyJnO5BbYALIa88iomY=";
}; };
racket-with-libs = inputs'.racket.packages.racket.newLayer { racket-with-libs = inputs.racket.packages.${pkgs.system}.racket.newLayer {
withRacketPackages = withRacketPackages =
ps: with ps; [ ps: with ps; [
readline-gpl readline-gpl