realised how self' is supposed to work and removed all stdenv bullshit
This commit is contained in:
@@ -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}";
|
||||
|
||||
Reference in New Issue
Block a user