feat!: add zed editor, format files
This commit is contained in:
0
.config/vinegar/config.toml
Normal file
0
.config/vinegar/config.toml
Normal file
BIN
.config/vinegar/overlays/studio/Plugins/Rojo.rbxm
Normal file
BIN
.config/vinegar/overlays/studio/Plugins/Rojo.rbxm
Normal file
Binary file not shown.
@@ -1,4 +1,6 @@
|
||||
.git
|
||||
.gitignore
|
||||
aliases
|
||||
custom
|
||||
astal
|
||||
nix
|
||||
|
||||
@@ -1,12 +1,24 @@
|
||||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||
# and may be overwritten by future invocations. Please make changes
|
||||
# to /etc/nixos/configuration.nix instead.
|
||||
{ config, lib, pkgs, modulesPath, ... }:
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
modulesPath,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
imports = [ ];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "ehci_pci" "nvme" "sr_mod" ];
|
||||
boot.initrd.availableKernelModules = [
|
||||
"ata_piix"
|
||||
"uhci_hcd"
|
||||
"ehci_pci"
|
||||
"nvme"
|
||||
"sr_mod"
|
||||
];
|
||||
boot.initrd.kernelModules = [ "dm-snapshot" ];
|
||||
boot.kernelModules = [ ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
@@ -1,27 +1,43 @@
|
||||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||
# and may be overwritten by future invocations. Please make changes
|
||||
# to /etc/nixos/configuration.nix instead.
|
||||
{ config, lib, pkgs, modulesPath, ... }:
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
modulesPath,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||
imports = [
|
||||
(modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
|
||||
boot.initrd.availableKernelModules = [
|
||||
"nvme"
|
||||
"xhci_pci"
|
||||
"ahci"
|
||||
"usbhid"
|
||||
"usb_storage"
|
||||
"sd_mod"
|
||||
];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-amd" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-uuid/d751775f-e83d-4230-9228-d1b58c5cc534";
|
||||
fileSystems."/" = {
|
||||
device = "/dev/disk/by-uuid/d751775f-e83d-4230-9228-d1b58c5cc534";
|
||||
fsType = "btrfs";
|
||||
};
|
||||
|
||||
fileSystems."/boot" =
|
||||
{ device = "/dev/disk/by-uuid/5C2F-86EC";
|
||||
fileSystems."/boot" = {
|
||||
device = "/dev/disk/by-uuid/5C2F-86EC";
|
||||
fsType = "vfat";
|
||||
options = [ "fmask=0022" "dmask=0022" ];
|
||||
options = [
|
||||
"fmask=0022"
|
||||
"dmask=0022"
|
||||
];
|
||||
};
|
||||
|
||||
swapDevices = [ ];
|
||||
|
||||
@@ -14,5 +14,6 @@
|
||||
./keys.nix
|
||||
./rofi.nix
|
||||
./desktop.nix
|
||||
./zed-editor.nix
|
||||
];
|
||||
}
|
||||
|
||||
@@ -38,6 +38,7 @@
|
||||
wl-clip-persist
|
||||
wdisplays
|
||||
efibootmgr
|
||||
nixd
|
||||
];
|
||||
programs.thunar.enable = true;
|
||||
programs.hyprland = {
|
||||
@@ -51,6 +52,7 @@
|
||||
};
|
||||
rofi.enable = true;
|
||||
services.upower.enable = true;
|
||||
zed.enable = true;
|
||||
|
||||
home-manager.users.luca = {
|
||||
programs = {
|
||||
|
||||
84
nix/modules/zed-editor.nix
Normal file
84
nix/modules/zed-editor.nix
Normal file
@@ -0,0 +1,84 @@
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
{
|
||||
options.zed = {
|
||||
enable = lib.mkEnableOption "enable zed";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.zed.enable {
|
||||
home-manager.users.luca = {
|
||||
programs.zed-editor = {
|
||||
enable = true;
|
||||
extraPackages = with pkgs; [ nixd ];
|
||||
extensions = [
|
||||
"luau"
|
||||
"nix"
|
||||
"rose-pine-theme"
|
||||
];
|
||||
userSettings = {
|
||||
features = {
|
||||
edit_prediction_provider = "none";
|
||||
};
|
||||
edit_predictions = null;
|
||||
vim_mode = true;
|
||||
ui_font_size = 16;
|
||||
buffer_font_size = 16;
|
||||
theme = {
|
||||
mode = "dark";
|
||||
dark = "Rosé Pine";
|
||||
};
|
||||
diagnostics = {
|
||||
inline = {
|
||||
enabled = true;
|
||||
};
|
||||
};
|
||||
format_on_save = "on";
|
||||
lsp = {
|
||||
"luau-lsp" = {
|
||||
settings = {
|
||||
ext = {
|
||||
roblox = {
|
||||
enabled = true;
|
||||
security_level = "plugin";
|
||||
};
|
||||
fflags = {
|
||||
enable_new_solver = true;
|
||||
sync = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
nixd = {
|
||||
initialization_options = {
|
||||
formatting = {
|
||||
command = [
|
||||
"nixfmt"
|
||||
"--quiet"
|
||||
"--"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
languages = {
|
||||
Luau = {
|
||||
formatter = {
|
||||
external = {
|
||||
command = "stylua";
|
||||
arguments = [ "-" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
Nix = {
|
||||
language_servers = [ "nixd" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user