From 78898f78dd67fd88fcd0cf3e05dadc7ddafb541c Mon Sep 17 00:00:00 2001 From: "info@data-pro.nu" Date: Wed, 29 Apr 2026 11:12:15 +0200 Subject: [PATCH] Regenerated --- Droidnix/README.html | 856 ++++++++++-------- Droidnix/README.org | 81 +- Droidnix/generated/.config/zed/settings.json | 29 +- .../modules/traveldroid/apps/zeditor.nix | 48 + 4 files changed, 597 insertions(+), 417 deletions(-) create mode 100644 Droidnix/generated/modules/traveldroid/apps/zeditor.nix diff --git a/Droidnix/README.html b/Droidnix/README.html index c95b325b0..80b4e33c7 100644 --- a/Droidnix/README.html +++ b/Droidnix/README.html @@ -3,7 +3,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> - + Droidnix: A Dendritic NixOS + Home Manager Configuration NixOS Configuration Structure @@ -204,141 +204,142 @@

Table of Contents

-
-

Shortcuts

-
+
+

Shortcuts

+

Introduction The Assets Folder @@ -354,25 +355,25 @@

Introduction   intro

-
-

What is Droidnix

-
+
+

What is Droidnix

+

Droidnix is a modular, declarative NixOS + Home Manager configuration system. with configurations managed via Emacs Org and Nix Flakes. The project is designed for reproducibility, maintainability, and cross-machine compatibility.

-
-

Installed components:

-
+
+

Installed components:

+
    -
  • Core
  • -
  • Hyprland
  • +
  • Core
  • +
  • Hyprland
-
-

Goals, project Structure, import hierarchy

-
+
+

Goals, project Structure, import hierarchy

+

This project uses a modular NixOS configuration with Hyprland support, designed for literate programming and cross-device reusability. The Droidnix repository is organized into two main parts: @@ -385,9 +386,9 @@ The Droidnix repository is organized into two main parts:

-
-

Root Level

-
+
+

Root Level

+
  • = is the entry point and imports:
      @@ -398,16 +399,16 @@ The Droidnix repository is organized into two main parts:
-
-

Generated Structure

-
+
+

Generated Structure

+

The generated/ directory contains all generated configurations, divided into three main groups: system, hyprland, and mangowc.

-
-

First Setup

-
+
+

First Setup

+
  1. Clone this repository.
  2. Run the setup script: ./setup_droid.
  3. @@ -428,9 +429,9 @@ The generated/ directory contains all generated configurations, div The .assets/ folder contains all static files, such as configs, scripts, and themes. These files are not generated and can be edited directly.

-
-

generated/assets/2_b_installed.conf

-
+
+

generated/assets/2_b_installed.conf

+

This is a list of additional apps to install

@@ -508,9 +509,9 @@ com.logseq.Logseq
-
-

generated/assets/aliases.conf

-
+
+

generated/assets/aliases.conf

+

This is a list of additional apps to install

@@ -552,9 +553,9 @@ keys=hyprctl binds This section contains the Org blocks for tangling Nix code into the generated folders.

-
-

generated/flake.nix

-
+
+

generated/flake.nix

+

The Nix flake definition for Droidnix.

@@ -643,9 +644,9 @@ The Nix flake definition for Droidnix.
-
-

generated/modules/traveldroid/system/colors.nix

-
+
+

generated/modules/traveldroid/system/colors.nix

+

Setting the colors for Droidnix.

@@ -722,9 +723,9 @@ in
-
-

generated/hosts/traveldroid/boot.nix

-
+
+

generated/hosts/traveldroid/boot.nix

+
# --- This file has been auto-generated. For permanent changes alter the appropriate block in the README.org. ---
 { config, pkgs, lib, flakeRoot, ... }:
@@ -793,9 +794,9 @@ in
 
-
-

generated/hosts/traveldroid/hardware-configuration.nix

-
+
+

generated/hosts/traveldroid/hardware-configuration.nix

+
  1. Boot into NixOS Live ISO or your installed system.
  2. Open a terminal.
  3. @@ -853,9 +854,9 @@ in
-
-

generated/hosts/traveldroid/host.nix

-
+
+

generated/hosts/traveldroid/host.nix

+
{ lib, config, pkgs, flakeRoot, import-tree, home-manager, ... }:
 
@@ -915,13 +916,13 @@ in
 
-
-

generated/traveldroid/modules/apps

-
+
+

generated/traveldroid/modules/apps

+
-
-

generated/modules/traveldroid/apps/2_b_installed.nix

-
+
+

generated/modules/traveldroid/apps/2_b_installed.nix

+

This installs a list of apps

@@ -1029,9 +1030,9 @@ in {
-
-

generated/modules/traveldroid/apps/emacs/emacs.nix

-
+
+

generated/modules/traveldroid/apps/emacs/emacs.nix

+

This installs emacs

@@ -1127,9 +1128,9 @@ in
-
-

generated/disabled/modules/traveldroid/apps/flameshot.nix

-
+
+

generated/disabled/modules/traveldroid/apps/flameshot.nix

+

This is top file of this level which contains just an import statement for all relevant files and/or the subfolder in this folder

@@ -1189,9 +1190,9 @@ in
-
-

generated/modules/traveldroid/apps/kdeconnect.nix

-
+
+

generated/modules/traveldroid/apps/kdeconnect.nix

+

This is top file of this level which contains just an import statement for all relevant files and/or the subfolder in this folder

@@ -1220,9 +1221,9 @@ in
-
-

generated/modules/traveldroid/apps/kitty.nix

-
+
+

generated/modules/traveldroid/apps/kitty.nix

+

This file sets up Kitty terminal

@@ -1274,9 +1275,9 @@ in
-
-

generated/modules/traveldroid/apps/starship.nix

-
+
+

generated/modules/traveldroid/apps/starship.nix

+

This file sets up starship prompt

@@ -1315,9 +1316,9 @@ in
-
-

generated/modules/traveldroid/apps/thunar.nix

-
+
+

generated/modules/traveldroid/apps/thunar.nix

+

This is top file of this level which contains just an import statement for all relevant files and/or the subfolder in this folder

@@ -1363,9 +1364,9 @@ in
-
-

generated/modules/traveldroid/apps/wofi.nix

-
+
+

generated/modules/traveldroid/apps/wofi.nix

+

This is the install for Wofi, the launcher

@@ -1400,9 +1401,9 @@ in
-
-

generated/modules/traveldroid/apps/zenbrowser.nix

-
+
+

generated/modules/traveldroid/apps/zenbrowser.nix

+

This installs zen browser

@@ -1422,9 +1423,67 @@ in
-
-

generated/modules/traveldroid/apps/zsh.nix

-
+
+

generated/modules/traveldroid/apps/zeditor.nix

+
+

+This sets Zed Editor +

+
+
# --- This file has been auto-generated. For permanent changes alter the appropriate block in the README.org. ---
+{ lib, config, pkgs, flakeRoot, ... }:
+let
+  username = config.defaultUser or "henrov";
+  sysname = "zed";
+  assetPath = "${flakeRoot}/generated/.config/${sysName}";
+in
+{
+  environment.systemPackages = [ pkgs.zed-editor ];
+
+  environment.sessionVariables = {
+    EDITOR = "zeditor";
+    VISUAL = "zeditor";
+  };
+
+  xdg.mime.defaultApplications = {
+    "text/plain"                = "dev.zed.Zed.desktop";
+    "text/x-lua"                = "dev.zed.Zed.desktop";
+    "text/x-sql"                = "dev.zed.Zed.desktop";
+    "text/x-org"                = "dev.zed.Zed.desktop";
+    "text/x-script.python"      = "dev.zed.Zed.desktop";
+    "text/x-shellscript"        = "dev.zed.Zed.desktop";
+    "text/x-csrc"               = "dev.zed.Zed.desktop";
+    "text/x-chdr"               = "dev.zed.Zed.desktop";
+    "text/x-rust"               = "dev.zed.Zed.desktop";
+    "text/x-toml"               = "dev.zed.Zed.desktop";
+    "text/x-yaml"               = "dev.zed.Zed.desktop";
+    "text/x-json"               = "dev.zed.Zed.desktop";
+    "application/json"          = "dev.zed.Zed.desktop";
+    "text/markdown"             = "dev.zed.Zed.desktop";
+    "text/x-nix"                = "dev.zed.Zed.desktop";
+  };
+
+  home-manager.users.${username} = {
+    home.activation.MakeZedMutable = {
+        after = [ "writeBoundary" ];
+        before = [];
+        data = ''
+          rm -rf $HOME/.config/${sysName}
+          mkdir -p $HOME/.config/${sysName}
+          cp -r ${assetPath}/* $HOME/.config/${sysName}/
+          chmod -R u+w $HOME/.config/${sysName}/
+          find $HOME/.config/${sysName}/ -name "*.sh" -exec chmod +x {} \;
+        '';
+    };
+  };
+}
+
+
+
+
+
+

generated/modules/traveldroid/apps/zsh.nix

+

This sets up the zsh in the terminal

@@ -1538,13 +1597,13 @@ in
-
-

generated/modules/traveldroid/desktop

-
+
+

generated/modules/traveldroid/desktop

+
-
-

generated/modules/traveldroid/desktop/fonts.nix

-
+
+

generated/modules/traveldroid/desktop/fonts.nix

+

This file installs and configures fonts

@@ -1562,9 +1621,9 @@ This file installs and configures fonts
-
-

generated/modules/traveldroid/desktop/gtk.nix

-
+
+

generated/modules/traveldroid/desktop/gtk.nix

+

Setting up GTK

@@ -1590,9 +1649,9 @@ in
-
-

generated/modules/traveldroid/desktop/hyprland.nix

-
+
+

generated/modules/traveldroid/desktop/hyprland.nix

+

Setting up Hyprland

@@ -1637,9 +1696,9 @@ in
-
-

generated/modules/traveldroid/desktop/stylix.nix

-
+
+

generated/modules/traveldroid/desktop/stylix.nix

+
{ lib, config, pkgs, flakeRoot, stylix, ... }:
 
@@ -1726,9 +1785,9 @@ in
 
-
-

generated/modules/traveldroid/desktop/wallpaper.nix

-
+
+

generated/modules/traveldroid/desktop/wallpaper.nix

+

Setting up wallpaper engine + wallpaper gui

@@ -1827,9 +1886,9 @@ in
-
-

generated/modules/traveldroid/desktop/waybar.nix

-
+
+

generated/modules/traveldroid/desktop/waybar.nix

+

This file installs and configures waybar

@@ -1875,9 +1934,9 @@ in
-
-

generated/modules/traveldroid/desktop/wayland.nix

-
+
+

generated/modules/traveldroid/desktop/wayland.nix

+
{ lib, config, pkgs, ... }:
 
@@ -1907,9 +1966,9 @@ in
 
-
-

generated/modules/traveldroid/desktop/xdg.nix

-
+
+

generated/modules/traveldroid/desktop/xdg.nix

+

This sets the XDG implementation

@@ -1980,13 +2039,13 @@ in
-
-

generated/modules/traveldroid/system

-
+
+

generated/modules/traveldroid/system

+
-
-

generated/modules/traveldroid/system/audio.nix

-
+
+

generated/modules/traveldroid/system/audio.nix

+
{ lib, config, pkgs, ... }:
 
@@ -2005,9 +2064,9 @@ in
 
-
-

generated/modules/traveldroid/system/avahi.nix

-
+
+

generated/modules/traveldroid/system/avahi.nix

+

Avahi helps discovering services

@@ -2027,9 +2086,9 @@ Avahi helps discovering services
-
-

generated/modules/traveldroid/system/bluetooth.nix

-
+
+

generated/modules/traveldroid/system/bluetooth.nix

+

Installing Bluetooth services and supporting aps

@@ -2056,9 +2115,9 @@ in
-
-

generated/modules/traveldroid/system/copy_scripts.nix

-
+
+

generated/modules/traveldroid/system/copy_scripts.nix

+

This copies any scripts from generated.config/scripts to ~/.config/scripts and makes any .sh files executable.

@@ -2099,9 +2158,9 @@ in
-
-

generated/modules/traveldroid/system/dbus.nix

-
+
+

generated/modules/traveldroid/system/dbus.nix

+

This sets the dbus implementation

@@ -2128,9 +2187,9 @@ This sets the dbus implementation
-
-

generated/modules/traveldroid/system/firewall.nix

-
+
+

generated/modules/traveldroid/system/firewall.nix

+

This sets the firewall.

@@ -2211,9 +2270,9 @@ This sets the firewall.
-
-

generated/modules/traveldroid/system/hypridle.nix

-
+
+

generated/modules/traveldroid/system/hypridle.nix

+

This installs hypridle

@@ -2269,9 +2328,9 @@ in
-
-

generated/modules/traveldroid/system/hyprlock.nix

-
+
+

generated/modules/traveldroid/system/hyprlock.nix

+

This installs hyprlock

@@ -2328,9 +2387,9 @@ in
-
-

generated/modules/traveldroid/system/gnome-keyring.nix

-
+
+

generated/modules/traveldroid/system/gnome-keyring.nix

+

This sets the dbus implementation

@@ -2378,9 +2437,9 @@ This sets the dbus implementation
-
-

generated/modules/traveldroid/system/login-tuigreet.nix

-
+
+

generated/modules/traveldroid/system/login-tuigreet.nix

+

This sets up tuigreeter which is not fancy but imho fits the aesthetic I am aiming for

@@ -2427,9 +2486,9 @@ in
-
-

generated/modules/traveldroid/system/networking.nix

-
+
+

generated/modules/traveldroid/system/networking.nix

+

This sets the networking.

@@ -2478,9 +2537,9 @@ This sets the networking.
-
-

generated/modules/traveldroid/system/nix.nix

-
+
+

generated/modules/traveldroid/system/nix.nix

+
{ lib, config, ... }:
 {
@@ -2503,9 +2562,9 @@ This sets the networking.
 
-
-

generated/modules/traveldroid/system/printing.nix

-
+
+

generated/modules/traveldroid/system/printing.nix

+

This sets the dbus implementation

@@ -2529,9 +2588,9 @@ This sets the dbus implementation
-
-

generated/modules/traveldroid/system/quickshell.nix

-
+
+

generated/modules/traveldroid/system/quickshell.nix

+

This sets the dbus implementation

@@ -2583,9 +2642,9 @@ in
-
-

generated/modules/traveldroid/system/swaync.nix

-
+
+

generated/modules/traveldroid/system/swaync.nix

+

This sets the dbus implementation

@@ -2634,13 +2693,13 @@ in
-
-

generated/users

-
+
+

generated/users

+
-
-

generated/users/

-
+
+

generated/users/

+

This is the default user, just search and replace henrov another name if you want to change

@@ -2702,9 +2761,9 @@ in

These are all the prepared config files

-
-

generated/.config/emacs/early-init.el

-
+
+

generated/.config/emacs/early-init.el

+

This contaions emacs

@@ -2805,9 +2864,9 @@ package-archive-priorities '(("gnu" . 99)
-
-

generated/.config/emacs/init.el

-
+
+

generated/.config/emacs/init.el

+

This contaions emacs

@@ -3217,9 +3276,9 @@ the top of the file."
-
-

generated/.config/hypr/animations.conf

-
+
+

generated/.config/hypr/animations.conf

+

These are config files for .config/hypr

@@ -3238,9 +3297,9 @@ These are config files for .config/hypr
-
-

generated/.config/hypr/behaviour.conf

-
+
+

generated/.config/hypr/behaviour.conf

+

These are config files for .config/hypr

@@ -3262,9 +3321,9 @@ input {
-
-

generated/.config/hypr/bindings.conf

-
+
+

generated/.config/hypr/bindings.conf

+

These are config files for .config/hypr

@@ -3440,9 +3499,9 @@ bind = $mainMod, U, exec, kitty -e bash -lc "$HOME/.config/scripts/update.sh"
-
-

generated/.config/hypr/exec-once.conf

-
+
+

generated/.config/hypr/exec-once.conf

+

These are config files for .config/hypr

@@ -3463,9 +3522,9 @@ exec-once = waybar
-
-

generated/.config/hypr/hypridle.conf

-
+
+

generated/.config/hypr/hypridle.conf

+

These are config files for .config/hypr

@@ -3496,9 +3555,9 @@ listener {
-
-

generated/.config/hypr/hyprlock.conf

-
+
+

generated/.config/hypr/hyprlock.conf

+

These are config files for .config/hypr

@@ -3528,9 +3587,9 @@ input-field {
-
-

generated/.config/hypr/hyprland.conf

-
+
+

generated/.config/hypr/hyprland.conf

+

These are config files for .config/hypr

@@ -3549,9 +3608,9 @@ source = ./workspace-rules.conf
-
-

generated/.config/hypr/layer-rules.conf

-
+
+

generated/.config/hypr/layer-rules.conf

+

These are config files for .config/hypr

@@ -3564,9 +3623,9 @@ layerrule = xray 1, match:namespace swaync-control-center
-
-

generated/.config/hypr/layout.conf

-
+
+

generated/.config/hypr/layout.conf

+

These settings control Hyprland config

@@ -3581,9 +3640,9 @@ scrolling {
-
-

generated/.config/hypr/monitor-rules.conf

-
+
+

generated/.config/hypr/monitor-rules.conf

+

These are config files for .config/hypr

@@ -3594,9 +3653,9 @@ monitor = eDP-1, preferred, auto-left, 1.5
-
-

generated/.config/hypr/theming.conf

-
+
+

generated/.config/hypr/theming.conf

+

These are config files for .config/hypr

@@ -3662,9 +3721,9 @@ misc {
-
-

generated/.config/hypr/window-rules.conf

-
+
+

generated/.config/hypr/window-rules.conf

+

These are config files for .config/hypr

@@ -3747,9 +3806,9 @@ windowrule {
-
-

generated/.config/hypr/workspace-rules.conf

-
+
+

generated/.config/hypr/workspace-rules.conf

+

These setttings configure rules for workspaces

@@ -3764,9 +3823,9 @@ workspace = 6, monitor:DP-1 #, layout:dwindle
-
-

generated/.config/quickshell/media/shell.qml

-
+
+

generated/.config/quickshell/media/shell.qml

+

offers a adio widget

@@ -4160,9 +4219,9 @@ ShellRoot {
-
-

generated/.config/quickshell/powermenu/shell.qml

-
+
+

generated/.config/quickshell/powermenu/shell.qml

+

Provides a powermenu

@@ -4310,9 +4369,9 @@ ShellRoot {
-
-

generated/.config/quickshell/layoutswitcher/shell.qml

-
+
+

generated/.config/quickshell/layoutswitcher/shell.qml

+

Provides a layout menu

@@ -4459,9 +4518,9 @@ ShellRoot {
-
-

generated/.config/waybar/scripts/batterywarn.sh

-
+
+

generated/.config/waybar/scripts/batterywarn.sh

+

Providing an media

@@ -4478,9 +4537,9 @@ fi
-
-

generated/.config/waybar/scripts/media.sh

-
+
+

generated/.config/waybar/scripts/media.sh

+

Providing an media

@@ -4579,9 +4638,9 @@ jq -c -n \
-
-

generated/.config/scripts/numlock-check.sh

-
+
+

generated/.config/scripts/numlock-check.sh

+

Count keyboards and enable numlock if more then 1, else disable

@@ -4603,9 +4662,9 @@ fi
-
-

generated/.config/scripts/power.sh

-
+
+

generated/.config/scripts/power.sh

+

Enables a terminal power menu

@@ -4660,9 +4719,9 @@ main
-
-

generated/.config/scripts/update.sh

-
+
+

generated/.config/scripts/update.sh

+

A file containing color variables

@@ -4687,9 +4746,9 @@ flatpak update -y
-
-

generated/.config/wofi/scripts/wofi-launcher.sh

-
+
+

generated/.config/wofi/scripts/wofi-launcher.sh

+

Providing an media

@@ -4704,9 +4763,9 @@ Providing an media
-
-

generated/.config/shared/colors.css

-
+
+

generated/.config/shared/colors.css

+

A file containing color variables

@@ -4747,9 +4806,9 @@ A file containing color variables
-
-

generated/.config/starship.toml

-
+
+

generated/.config/starship.toml

+

These are config files for Starship

@@ -5037,9 +5096,9 @@ crust = "#181926"
-
-

generated/.config/stylix/stylix.conf

-
+
+

generated/.config/stylix/stylix.conf

+

These are config files for .config/stylix

@@ -5076,9 +5135,9 @@ icons = {
-
-

generated/.config/stylix/palette.json

-
+
+

generated/.config/stylix/palette.json

+

These are config files for .config/stylix

@@ -5108,9 +5167,9 @@ These are config files for .config/stylix
-
-

generated/.config/stylix/palette.html

-
+
+

generated/.config/stylix/palette.html

+

These are config files for .config/stylix

@@ -5187,9 +5246,9 @@ These are config files for .config/stylix
-
-

generated/.config/swaync/config.json

-
+
+

generated/.config/swaync/config.json

+

These are config files for waybar

@@ -5250,9 +5309,9 @@ These are config files for waybar
-
-

generated/.config/swaync/style.css

-
+
+

generated/.config/swaync/style.css

+

These are config files for waybar

@@ -5445,9 +5504,9 @@ These are config files for waybar
-
-

generated/.config/waybar/config.jsonc

-
+
+

generated/.config/waybar/config.jsonc

+

These are config files for waybar

@@ -5784,9 +5843,9 @@ These are config files for waybar
-
-

generated/.config/waybar/style-dark.css

-
+
+

generated/.config/waybar/style-dark.css

+

This file contains all css for waybar

@@ -6046,9 +6105,9 @@ label#custom-windows:not(.active) {
-
-

generated/.config/waybar/scripts/bluetooth-status.sh

-
+
+

generated/.config/waybar/scripts/bluetooth-status.sh

+

These are config files for waybar

@@ -6073,9 +6132,9 @@ printf '{"text": "%s", "tooltip": "%s"}\n' "$icon" "$tooltip"
-
-

generated/.config/waybar/scripts/hypr-workspaces.sh

-
+
+

generated/.config/waybar/scripts/hypr-workspaces.sh

+

These are config files for waybar

@@ -6117,9 +6176,9 @@ jq -c -n \
-
-

generated/.config/waybar/scripts/hypr-workspacesmenu.sh

-
+
+

generated/.config/waybar/scripts/hypr-workspacesmenu.sh

+

These are config files for waybar

@@ -6141,9 +6200,9 @@ hyprctl dispatch focuswindow address:"$addr"
-
-

generated/.config/waybar/scripts/kdeconnect-status.sh

-
+
+

generated/.config/waybar/scripts/kdeconnect-status.sh

+

These are config files for waybar

@@ -6167,9 +6226,9 @@ fi
-
-

generated/.config/waypaper/config.ini

-
+
+

generated/.config/waypaper/config.ini

+

These are config files for waypaper

@@ -6206,9 +6265,9 @@ keybindings = ~/.config/waypaper/keybindings.ini
-
-

generated/.config/waypaper/config.ini

-
+
+

generated/.config/waypaper/config.ini

+

These are config files for .config/waypaper

@@ -6244,9 +6303,9 @@ keybindings = ~/.config/waypaper/keybindings.ini
-
-

generated/.config/wofi/config

-
+
+

generated/.config/wofi/config

+

These are config files for .config/wofi

@@ -6273,9 +6332,9 @@ prompt = > ...
-
-

generated/.config/wofi/style.css

-
+
+

generated/.config/wofi/style.css

+

This is the default layout for wofi

@@ -6371,9 +6430,9 @@ This is the default layout for wofi
-
-

generated/.config/zed/settings.json

-
+
+

generated/.config/zed/settings.json

+

These are config files for Zed editor

@@ -6387,21 +6446,28 @@ These are config files for Zed editor // custom settings, run `zed: open default settings` from the // command palette (cmd-shift-p / ctrl-shift-p) { - "icon_theme": "Catppuccin Mocha", - "agent": { - "default_model": { - "provider": "ollama", - "model": "codellama:34b", - "enable_thinking": false - }, - "favorite_models": [], - "model_parameters": [] + "theme": { + "mode": "system", + "light": "Catppuccin Frappé", + "dark": "Catppuccin Mocha", }, + "icon_theme": { + "mode": "system", + "light": "Catppuccin Frappé", + "dark": "Catppuccin Mocha" + }, + "auto_install_extensions": { + "catppuccin": true, + "catppuccin-icons": true, + "org-mode": true, + "lua": true, + "sql": true + }, "ui_font_size": 16, "buffer_font_size": 15, "theme": { - "mode": "dark", - "light": "One Light", + "mode": "system", + "light": "Catppuccin Frappé", "dark": "Catppuccin Mocha", }, } @@ -6409,9 +6475,9 @@ These are config files for Zed editor
-
-

generated/.config/zsh/.zshrc

-
+
+

generated/.config/zsh/.zshrc

+

This sets up the zsh in the terminal

@@ -6448,7 +6514,7 @@ cd() {

Author: Henro Veijer

-

Created: 2026-04-29 wo 10:59

+

Created: 2026-04-29 wo 11:12

Validate

diff --git a/Droidnix/README.org b/Droidnix/README.org index 015713ed2..0b72e43c6 100644 --- a/Droidnix/README.org +++ b/Droidnix/README.org @@ -968,6 +968,58 @@ in } #+END_SRC +** =generated/modules/traveldroid/apps/zeditor.nix= +This sets Zed Editor +#+BEGIN_SRC nix :tangle generated/modules/traveldroid/apps/zeditor.nix :noweb yes :mkdirp yes :eval never +# --- This file has been auto-generated. For permanent changes alter the appropriate block in the README.org. --- +{ lib, config, pkgs, flakeRoot, ... }: +let + username = config.defaultUser or "henrov"; + sysname = "zed"; + assetPath = "${flakeRoot}/generated/.config/${sysName}"; +in +{ + environment.systemPackages = [ pkgs.zed-editor ]; + + environment.sessionVariables = { + EDITOR = "zeditor"; + VISUAL = "zeditor"; + }; + + xdg.mime.defaultApplications = { + "text/plain" = "dev.zed.Zed.desktop"; + "text/x-lua" = "dev.zed.Zed.desktop"; + "text/x-sql" = "dev.zed.Zed.desktop"; + "text/x-org" = "dev.zed.Zed.desktop"; + "text/x-script.python" = "dev.zed.Zed.desktop"; + "text/x-shellscript" = "dev.zed.Zed.desktop"; + "text/x-csrc" = "dev.zed.Zed.desktop"; + "text/x-chdr" = "dev.zed.Zed.desktop"; + "text/x-rust" = "dev.zed.Zed.desktop"; + "text/x-toml" = "dev.zed.Zed.desktop"; + "text/x-yaml" = "dev.zed.Zed.desktop"; + "text/x-json" = "dev.zed.Zed.desktop"; + "application/json" = "dev.zed.Zed.desktop"; + "text/markdown" = "dev.zed.Zed.desktop"; + "text/x-nix" = "dev.zed.Zed.desktop"; + }; + + home-manager.users.${username} = { + home.activation.MakeZedMutable = { + after = [ "writeBoundary" ]; + before = []; + data = '' + rm -rf $HOME/.config/${sysName} + mkdir -p $HOME/.config/${sysName} + cp -r ${assetPath}/* $HOME/.config/${sysName}/ + chmod -R u+w $HOME/.config/${sysName}/ + find $HOME/.config/${sysName}/ -name "*.sh" -exec chmod +x {} \; + ''; + }; + }; +} +#+END_SRC + ** =generated/modules/traveldroid/apps/zsh.nix= This sets up the zsh in the terminal #+BEGIN_SRC nix :tangle generated/modules/traveldroid/apps/zsh.nix :noweb yes :mkdirp yes :eval never @@ -5537,21 +5589,28 @@ These are config files for Zed editor // custom settings, run `zed: open default settings` from the // command palette (cmd-shift-p / ctrl-shift-p) { - "icon_theme": "Catppuccin Mocha", - "agent": { - "default_model": { - "provider": "ollama", - "model": "codellama:34b", - "enable_thinking": false - }, - "favorite_models": [], - "model_parameters": [] + "theme": { + "mode": "system", + "light": "Catppuccin Frappé", + "dark": "Catppuccin Mocha", }, + "icon_theme": { + "mode": "system", + "light": "Catppuccin Frappé", + "dark": "Catppuccin Mocha" + }, + "auto_install_extensions": { + "catppuccin": true, + "catppuccin-icons": true, + "org-mode": true, + "lua": true, + "sql": true + }, "ui_font_size": 16, "buffer_font_size": 15, "theme": { - "mode": "dark", - "light": "One Light", + "mode": "system", + "light": "Catppuccin Frappé", "dark": "Catppuccin Mocha", }, } diff --git a/Droidnix/generated/.config/zed/settings.json b/Droidnix/generated/.config/zed/settings.json index 91f605bbe..1026c0825 100644 --- a/Droidnix/generated/.config/zed/settings.json +++ b/Droidnix/generated/.config/zed/settings.json @@ -7,21 +7,28 @@ // custom settings, run `zed: open default settings` from the // command palette (cmd-shift-p / ctrl-shift-p) { - "icon_theme": "Catppuccin Mocha", - "agent": { - "default_model": { - "provider": "ollama", - "model": "codellama:34b", - "enable_thinking": false - }, - "favorite_models": [], - "model_parameters": [] + "theme": { + "mode": "system", + "light": "Catppuccin Frappé", + "dark": "Catppuccin Mocha", }, + "icon_theme": { + "mode": "system", + "light": "Catppuccin Frappé", + "dark": "Catppuccin Mocha" + }, + "auto_install_extensions": { + "catppuccin": true, + "catppuccin-icons": true, + "org-mode": true, + "lua": true, + "sql": true + }, "ui_font_size": 16, "buffer_font_size": 15, "theme": { - "mode": "dark", - "light": "One Light", + "mode": "system", + "light": "Catppuccin Frappé", "dark": "Catppuccin Mocha", }, } diff --git a/Droidnix/generated/modules/traveldroid/apps/zeditor.nix b/Droidnix/generated/modules/traveldroid/apps/zeditor.nix new file mode 100644 index 000000000..e2b5befb7 --- /dev/null +++ b/Droidnix/generated/modules/traveldroid/apps/zeditor.nix @@ -0,0 +1,48 @@ +# --- This file has been auto-generated. For permanent changes alter the appropriate block in the README.org. --- +# --- This file has been auto-generated. For permanent changes alter the appropriate block in the README.org. --- +{ lib, config, pkgs, flakeRoot, ... }: +let + username = config.defaultUser or "henrov"; + sysname = "zed"; + assetPath = "${flakeRoot}/generated/.config/${sysName}"; +in +{ + environment.systemPackages = [ pkgs.zed-editor ]; + + environment.sessionVariables = { + EDITOR = "zeditor"; + VISUAL = "zeditor"; + }; + + xdg.mime.defaultApplications = { + "text/plain" = "dev.zed.Zed.desktop"; + "text/x-lua" = "dev.zed.Zed.desktop"; + "text/x-sql" = "dev.zed.Zed.desktop"; + "text/x-org" = "dev.zed.Zed.desktop"; + "text/x-script.python" = "dev.zed.Zed.desktop"; + "text/x-shellscript" = "dev.zed.Zed.desktop"; + "text/x-csrc" = "dev.zed.Zed.desktop"; + "text/x-chdr" = "dev.zed.Zed.desktop"; + "text/x-rust" = "dev.zed.Zed.desktop"; + "text/x-toml" = "dev.zed.Zed.desktop"; + "text/x-yaml" = "dev.zed.Zed.desktop"; + "text/x-json" = "dev.zed.Zed.desktop"; + "application/json" = "dev.zed.Zed.desktop"; + "text/markdown" = "dev.zed.Zed.desktop"; + "text/x-nix" = "dev.zed.Zed.desktop"; + }; + + home-manager.users.${username} = { + home.activation.MakeZedMutable = { + after = [ "writeBoundary" ]; + before = []; + data = '' + rm -rf $HOME/.config/${sysName} + mkdir -p $HOME/.config/${sysName} + cp -r ${assetPath}/* $HOME/.config/${sysName}/ + chmod -R u+w $HOME/.config/${sysName}/ + find $HOME/.config/${sysName}/ -name "*.sh" -exec chmod +x {} \; + ''; + }; + }; +}