diff --git a/fanya.nix b/fanya.nix index 15f0d11..e02a8b5 100644 --- a/fanya.nix +++ b/fanya.nix @@ -23,6 +23,7 @@ in { fonts.fonts = with pkgs; [ (nerdfonts.override {fonts = ["Go-Mono"];}) + apl386 dejavu_fonts noto-fonts ]; diff --git a/flake.nix b/flake.nix index 1d5ff58..f73be93 100644 --- a/flake.nix +++ b/flake.nix @@ -40,7 +40,11 @@ nixosConfigurations.fanya = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; specialArgs = args; - modules = [./fanya.nix]; + modules = [ + ./fanya.nix + + (_: {nixpkgs.overlays = [(import ./overlay)];}) + ]; }; }; } diff --git a/overlay/apl386/default.nix b/overlay/apl386/default.nix new file mode 100644 index 0000000..453f04e --- /dev/null +++ b/overlay/apl386/default.nix @@ -0,0 +1,32 @@ +{ + lib, + stdenvNoCC, + fetchFromGitHub, +}: +stdenvNoCC.mkDerivation { + pname = "apl386"; + version = "2022-03-07"; + + src = fetchFromGitHub { + owner = "abrudz"; + repo = "APL386"; + rev = "6332c9dbb588946a0e8c9d7984dd0c003eeea266"; + sha256 = "sha256-oHk4e7NRgAjGtZzQmZToYz7wCZETaj7/yRwZMeeYF2M="; + }; + + installPhase = '' + runHook preInstall + + install -Dm644 APL386.ttf -t $out/share/fonts/apl386 + + runHook postInstall + ''; + + meta = with lib; { + description = "APL385 Unicode font evolved "; + homepage = "https://github.com/abrudz/APL386"; + license = licenses.unlicense; + maintainers = with maintainers; [buffet]; + platforms = platforms.all; + }; +} diff --git a/overlay/default.nix b/overlay/default.nix new file mode 100644 index 0000000..aadb40c --- /dev/null +++ b/overlay/default.nix @@ -0,0 +1,3 @@ +self: super: { + apl386 = super.callPackage ./apl386 {}; +} diff --git a/programs/sbcl.nix b/programs/sbcl.nix new file mode 100644 index 0000000..dd72815 --- /dev/null +++ b/programs/sbcl.nix @@ -0,0 +1,13 @@ +{pkgs, ...}: { + home-manager.users.buffet = { + home = { + packages = with pkgs; [ + sbcl + ]; + + file.".config/common-lisp/source-registry.conf.d/lisp.conf".text = '' + (:tree "/home/buffet/proj") + ''; + }; + }; +}