flake

Francesco Saccone's Nix flake.
git clone https://git.francescosaccone.com/flake
Log | Files | Refs | README | LICENSE

default.nix (484B)


      1 {
      2   lib,
      3   options,
      4   config,
      5   pkgs,
      6   inputs,
      7   ...
      8 }:
      9 {
     10   options.modules.vis = {
     11     enable = lib.mkOption {
     12       description = "Whether to enable Vis.";
     13       default = false;
     14       type = lib.types.bool;
     15     };
     16   };
     17 
     18   config = lib.mkIf config.modules.vis.enable {
     19     home = {
     20       packages = [
     21         pkgs.vis
     22       ];
     23       file = {
     24         ".mkshrc".text = "export EDITOR=${pkgs.vis}/bin/vis";
     25         ".config/vis/visrc.lua".source = ./visrc.lua;
     26       };
     27     };
     28   };
     29 }