Actually add vesktop package if vesktop is enabled
This commit is contained in:
parent
e584be598b
commit
5433727cac
2 changed files with 36 additions and 0 deletions
35
modules/cli/neovim.nix
Normal file
35
modules/cli/neovim.nix
Normal file
|
@ -0,0 +1,35 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
lazyvim-config = pkgs.fetchFromGitHub {
|
||||
owner = "Dragyx";
|
||||
repo = "lazyvim-config";
|
||||
rev = "d799724f48199d81ca6c8abb5951860fbf8fa0df";
|
||||
hash = "sha256-NF92CweRFQ1qZS8NXoTUEljazRGXgXS2AuDt5IWmwBc=";
|
||||
};
|
||||
cfg = config.modules.neovim-old;
|
||||
username = config.modules.other.system.username;
|
||||
in
|
||||
{
|
||||
options.modules.cli.neovim-old = lib.mkEnableOption "neovim-old";
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
home-manager.users.${username} = {
|
||||
home.packages = with pkgs; [ lazygit ripgrep fd gcc xclip rust-analyzer ];
|
||||
programs.neovim = {
|
||||
enable = true;
|
||||
viAlias = true;
|
||||
vimAlias = true;
|
||||
defaultEditor = true;
|
||||
};
|
||||
|
||||
xdg.configFile."nvim" = {
|
||||
enable = true;
|
||||
source = lazyvim-config;
|
||||
recursive = true;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
}
|
|
@ -13,6 +13,7 @@ in {
|
|||
|
||||
config = mkIf cfg.enable {
|
||||
home-manager.users.${username} = {
|
||||
home.packages = with pkgs; [ vesktop ];
|
||||
xdg.configFile."vesktop/settings.json".text = builtins.toJSON {
|
||||
discordBranch = "ptb";
|
||||
firstLaunch = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue