mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-04-25 00:19:12 +00:00
nixvimConfigs/fiesta/setups/desktop-utils: init
This commit is contained in:
parent
9d4db1eae4
commit
f5e9d12bb6
@ -2,9 +2,11 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
colorschemes.kanagawa.enable = true;
|
colorschemes.kanagawa.enable = true;
|
||||||
|
imports = [ ./modules ];
|
||||||
|
|
||||||
clipboard.providers.wl-copy.enable = true;
|
nixvimConfigs.fiesta.setups = {
|
||||||
clipboard.providers.xclip.enable = true;
|
desktop-utils.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
plugins.neorg.enable = true;
|
plugins.neorg.enable = true;
|
||||||
plugins.nvim-autopairs.enable = true;
|
plugins.nvim-autopairs.enable = true;
|
||||||
|
5
configs/nixvim/fiesta/modules/default.nix
Normal file
5
configs/nixvim/fiesta/modules/default.nix
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./setups/desktop-utils.nix
|
||||||
|
];
|
||||||
|
}
|
17
configs/nixvim/fiesta/modules/setups/desktop-utils.nix
Normal file
17
configs/nixvim/fiesta/modules/setups/desktop-utils.nix
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
nixvimCfg = config.nixvimConfigs.fiesta;
|
||||||
|
cfg = nixvimCfg.setups.desktop-utils;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.nixvimConfigs.fiesta.setups.desktop-utils.enable =
|
||||||
|
lib.mkEnableOption "desktop utilities to be used for this Neovim setup";
|
||||||
|
|
||||||
|
config = lib.mkIf cfg.enable (lib.mkMerge [
|
||||||
|
(lib.mkIf pkgs.stdenv.isLinux {
|
||||||
|
clipboard.providers.wl-copy.enable = true;
|
||||||
|
clipboard.providers.xclip.enable = true;
|
||||||
|
})
|
||||||
|
]);
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user