mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 00:33:00 +00:00
nix: zed-editor
This commit is contained in:
parent
05d620296e
commit
0d3b789ca2
14 changed files with 56 additions and 8 deletions
|
|
@ -25,4 +25,12 @@ vim.api.nvim_create_autocmd("FileType", {
|
|||
end,
|
||||
})
|
||||
|
||||
vim.api.nvim_create_autocmd("FileType", {
|
||||
pattern = "nix",
|
||||
callback = function()
|
||||
vim.opt_local.shiftwidth = 2
|
||||
vim.opt_local.tabstop = 2
|
||||
end,
|
||||
})
|
||||
|
||||
return M
|
||||
|
|
|
|||
|
|
@ -59,6 +59,8 @@
|
|||
in
|
||||
{
|
||||
|
||||
# This will automatically generate nixOS config for `nixosHosts'
|
||||
# Include the module ./hosts/${hostname} by default.
|
||||
nixosConfigurations = nixpkgs.lib.genAttrs nixosHosts mkNixosSystem;
|
||||
|
||||
darwinConfigurations."zen" = nix-darwin.lib.darwinSystem {
|
||||
|
|
|
|||
|
|
@ -37,8 +37,5 @@
|
|||
boot.extraModulePackages = with config.boot.kernelPackages; [
|
||||
v4l2loopback
|
||||
];
|
||||
boot.extraModprobeConfig = ''
|
||||
options v4l2loopback devices=1 video_nr=2 card_label="OBS Virtual Camera" exclusive_caps=1
|
||||
'';
|
||||
system.stateVersion = "25.05";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,4 +8,5 @@
|
|||
vscjava.vscode-spring-initializr
|
||||
vscjava.vscode-java-pack
|
||||
];
|
||||
programs.zed-editor.extensions = [ "java" ];
|
||||
}
|
||||
|
|
|
|||
12
nixcfgs/modules/home/dev/lua.nix
Normal file
12
nixcfgs/modules/home/dev/lua.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
luajit
|
||||
lua-language-server
|
||||
stylua
|
||||
];
|
||||
programs.vscode.profiles.default.extensions = with pkgs.vscode-extensions; [
|
||||
sumneko.lua
|
||||
];
|
||||
programs.zed-editor.extensions = [ "lua" ];
|
||||
}
|
||||
|
|
@ -8,4 +8,6 @@
|
|||
kamadorueda.alejandra
|
||||
jnoortheen.nix-ide
|
||||
];
|
||||
|
||||
programs.zed-editor.extensions = [ "nix" ];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
{pkgs, ...}: {
|
||||
programs.zed-editor = {
|
||||
enable = true;
|
||||
extensions = ["nix"];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -26,4 +26,5 @@
|
|||
extraGroups = ["libvirtd"];
|
||||
};
|
||||
networking.firewall.trustedInterfaces = ["virbr0"];
|
||||
virtualisation.spiceUSBRedirection.enable = true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,4 +4,7 @@
|
|||
enable = true;
|
||||
enableVirtualCamera = true;
|
||||
};
|
||||
boot.extraModprobeConfig = ''
|
||||
options v4l2loopback devices=1 video_nr=2 card_label="OBS Virtual Camera" exclusive_caps=1
|
||||
'';
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
# ~/.config/nix-config/common/packages-headless.nix
|
||||
{pkgs, ...}: {
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
age
|
||||
aichat
|
||||
|
|
@ -48,5 +49,6 @@
|
|||
# Misc
|
||||
ta-lib
|
||||
ddgr
|
||||
protonvpn-cli
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -29,5 +29,8 @@
|
|||
qutebrowser
|
||||
ryubing
|
||||
qbittorrent
|
||||
protonvpn-gui
|
||||
proton-pass
|
||||
protonmail-bridge
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
{pkgs, ...}: let
|
||||
{ pkgs, ... }:
|
||||
let
|
||||
commonAliases = {
|
||||
v = "nvim";
|
||||
g = "lazygit";
|
||||
|
|
@ -8,7 +9,8 @@
|
|||
c = "code";
|
||||
aic = "aichat -s";
|
||||
};
|
||||
in {
|
||||
in
|
||||
{
|
||||
programs.fish = {
|
||||
enable = true;
|
||||
interactiveShellInit = "set fish_greeting";
|
||||
|
|
@ -27,4 +29,5 @@ in {
|
|||
enable = true;
|
||||
shellAliases = commonAliases;
|
||||
};
|
||||
programs.zed-editor.extensions = [ "fish" ];
|
||||
}
|
||||
|
|
|
|||
14
nixcfgs/users/js0ny/programs/zed-editor.nix
Normal file
14
nixcfgs/users/js0ny/programs/zed-editor.nix
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
programs.zed-editor = {
|
||||
enable = true;
|
||||
extensions = [
|
||||
"dockerfile"
|
||||
"catppuccin"
|
||||
"toml"
|
||||
"material-icon-theme"
|
||||
"git-firefly"
|
||||
"make"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
@ -20,10 +20,12 @@
|
|||
./programs/firefox.nix
|
||||
./programs/distrobox.nix
|
||||
./programs/mime.nix
|
||||
./programs/zed-editor.nix
|
||||
# ./programs/floorp.nix
|
||||
../../modules/home/gnome-keyrings.nix
|
||||
../../modules/home/dev/c.nix
|
||||
../../modules/home/dev/java.nix
|
||||
../../modules/home/dev/lua.nix
|
||||
../../modules/home/dev/nix.nix
|
||||
../../modules/home/dev/python.nix
|
||||
../../modules/home/programs/eza.nix
|
||||
|
|
@ -32,7 +34,6 @@
|
|||
../../modules/home/programs/nvim.nix
|
||||
../../modules/home/programs/starship.nix
|
||||
../../modules/home/programs/zoxide.nix
|
||||
../../modules/home/programs/zed-editor.nix
|
||||
# ./flatpak.nix
|
||||
];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue