Successfully melded nixvim configuration into the sysflake itself rather than using it as a flake input
This commit is contained in:
@@ -1,10 +1,25 @@
|
||||
{
|
||||
pkgs,
|
||||
inputs,
|
||||
host,
|
||||
...
|
||||
}: let
|
||||
toilet = inputs.toilet.packages."x86_64-linux".default;
|
||||
}:
|
||||
let
|
||||
extraFigletFonts = pkgs.fetchFromGitHub {
|
||||
owner = "xero";
|
||||
repo = "figlet-fonts";
|
||||
rev = "master";
|
||||
sha256 = "sha256-dAs7N66D2Fpy4/UB5Za1r2qb1iSAJR6TMmau1asxgtY=";
|
||||
};
|
||||
toilet-extrafonts = pkgs.toilet.overrideAttrs (oldAttrs: {
|
||||
buildInputs = oldAttrs.buildInputs or [] ++ [extraFigletFonts];
|
||||
|
||||
installPhase = ''
|
||||
make install PREFIX=$out
|
||||
mkdir -p $out/share/figlet
|
||||
cp -r ${extraFigletFonts}/* $out/share/figlet
|
||||
'';
|
||||
});
|
||||
|
||||
desktop_pkgs =
|
||||
if (host == "oganesson")
|
||||
then
|
||||
@@ -39,7 +54,7 @@ in {
|
||||
libreoffice
|
||||
gtrash
|
||||
ripgrep
|
||||
toilet
|
||||
toilet-extrafonts
|
||||
python3
|
||||
]
|
||||
++ desktop_pkgs;
|
||||
|
||||
Reference in New Issue
Block a user