My dotfiles (written in Nix, btw!) ❄

zed

+44
+1
user/home.nix
··· 18 18 ./spotify.nix 19 19 ./themes.nix 20 20 ./zsh.nix 21 + ./zed.nix 21 22 #./nixvim.nix 22 23 ]; 23 24 # Home Manager needs a bit of information about you and the paths it should
+43
user/zed.nix
··· 1 + { 2 + self, 3 + systemSettings, 4 + userSettings, 5 + ... 6 + }: { 7 + programs.zed-editor = { 8 + enable = true; 9 + extensions = [ 10 + "html" 11 + "nord" 12 + "nix" 13 + "gleam" 14 + "templ" 15 + "discord-presence" 16 + ]; 17 + userSettings = { 18 + vim_mode = true; 19 + autosave.afterDelay.milliseconds = 1000; 20 + buffer_font_family = "JetBrains Mono"; 21 + buffer_font_size = 16; 22 + ui_font_family = "Ubuntu"; 23 + 24 + lsp = { 25 + nixd.settings = let 26 + flake = "(builtins.getFlake \"${self}\");"; 27 + in { 28 + nixos.expr = "${flake}.nixosConfigurations.\"${systemSettings.hostname}\".options"; 29 + home_manager.expr = "${flake}.homeConfigurations.\"${userSettings.username}\".options"; 30 + }; 31 + }; 32 + 33 + languages = { 34 + Nix.formatter.external.command = "alejandra"; 35 + }; 36 + 37 + theme = { 38 + mode = "dark"; 39 + dark = "Nord"; 40 + }; 41 + }; 42 + }; 43 + }