Skip to content

Latest commit

 

History

History
55 lines (43 loc) · 1.69 KB

README.md

File metadata and controls

55 lines (43 loc) · 1.69 KB

Psilocybin

This flake defaults to my own layout, but it can be also used to easily configure your own magic layout🪄⭐
You can see the details of the default layout here

Usage

This enables the default psilocybin layout on your NixOS system

  description = "Your NixOS configuration";

  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";

    psilocybin = {
      url = "github:nyawox/psilocybin";
      # Recommended to not clutter your flake.lock
      inputs.nixpkgs.follows = "nixpkgs";
    };
  };

  outputs = { self, nixpkgs, psilocybin, ...}: {
    nixosConfigurations = {
      yourHost = nixpkgs.lib.nixosSystem {
        system = "x86_64-linux";

        modules = [
          # This is not a complete configuration and you need to reference
          # your normal configuration here.

          # Import the module
          psilocybin.nixosModules.psilocybin

          ({
            psilocybin = {
              enable = true;
              # ansi.enable = true;
              # jis.enable = true;
            };
          })
        ];
      };
    };
  };
}

Using your own layout

Visit here for examples of how to configure your layout.
Ensure you set psilocybin.ansi.config for layers,
psilocybin.config for aliases and chords, as well as psilocybin.magic.rules and psilocybin.magic.rptRules psilocybin.magic.wordStartingRules, etc for your custom magic rules.
Use psilocybin.magic.rptRules for magic rules that activate via repeat keys.
If you are using your own layout, make sure to overwrite all configurations set for my layout. I plan to introduce an option like psilocybin.customLayout = true later on.