realised how self' is supposed to work and removed all stdenv bullshit

This commit is contained in:
2026-07-07 13:53:09 +01:00
parent dd8369d01e
commit d18e1476dd
8 changed files with 73 additions and 107 deletions

View File

@@ -1,30 +1,26 @@
{
self,
inputs,
wrappers,
moduleWithSystem,
...
}: {
flake.nixosModules.kitty = {
pkgs,
lib,
...
}: {
environment.systemPackages = [
self.packages.${pkgs.stdenv.hostPlatform.system}.kitty
];
};
perSystem = {
pkgs,
lib,
self',
...
}: {
flake.nixosModules.kitty = moduleWithSystem (
{
pkgs,
self',
}: {
environment.systemPackages = with self'.packages; [
kitty
];
}
);
perSystem = {pkgs, ...}: {
packages.kitty = let
fira-mono = pkgs.nerd-fonts.fira-mono;
fontsConf = pkgs.makeFontsConf {
fontDirectories = [fira-mono];
};
in
inputs.wrappers.wrappers.kitty.wrap {
wrappers.wrappers.kitty.wrap {
inherit pkgs;
environment = {
"FONTCONFIG_FILE" = "${fontsConf}";