diff options
| -rw-r--r-- | common/default.nix | 5 | ||||
| -rw-r--r-- | common/home/programs/nixvim/plugins/default.nix | 31 | ||||
| -rw-r--r-- | common/home/programs/nixvim/plugins/typst-preview.nix | 7 |
3 files changed, 28 insertions, 15 deletions
diff --git a/common/default.nix b/common/default.nix index 28526e8..8eca18a 100644 --- a/common/default.nix +++ b/common/default.nix @@ -91,4 +91,9 @@ "flakes" ]; }; + + swapDevices = [ { + device = "/var/lib/swapfile"; + size = 32*1024; + } ]; } diff --git a/common/home/programs/nixvim/plugins/default.nix b/common/home/programs/nixvim/plugins/default.nix index 4898ff6..b9f40a9 100644 --- a/common/home/programs/nixvim/plugins/default.nix +++ b/common/home/programs/nixvim/plugins/default.nix @@ -1,20 +1,21 @@ { pkgs, ... }: let - plugins = [ - "web-devicons" - "nvim-tree" - "telescope" - "lualine" - "treesitter" - ]; +plugins = [ + "web-devicons" + "nvim-tree" + "telescope" + "lualine" + "treesitter" + "typst-preview" +]; in builtins.listToAttrs ( - map (n: { - name = n; - value = - if builtins.pathExists ./${n}.nix then - (import ./${n}.nix { inherit pkgs; }) - else - { enable = true; }; - }) plugins + map (n: { + name = n; + value = + if builtins.pathExists ./${n}.nix then + (import ./${n}.nix { inherit pkgs; }) + else + { enable = true; }; + }) plugins ) diff --git a/common/home/programs/nixvim/plugins/typst-preview.nix b/common/home/programs/nixvim/plugins/typst-preview.nix new file mode 100644 index 0000000..7753cc0 --- /dev/null +++ b/common/home/programs/nixvim/plugins/typst-preview.nix @@ -0,0 +1,7 @@ +{ pkgs, ... }: +{ + enable = true; + settings = { + open_cmd = "firefox %s -P typst-preview --class typst-preview"; + }; +} |