diff --git a/Droidnix/README.html b/Droidnix/README.html index 12b21c51e..e9a31fbe6 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,146 +204,146 @@

Table of Contents

-
-

Shortcuts

-
+
+

Shortcuts

+

Introduction The Assets Folder @@ -359,25 +359,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: @@ -390,9 +390,9 @@ The Droidnix repository is organized into two main parts:

-
-

Root Level

-
+
+

Root Level

+
  • = is the entry point and imports:
      @@ -403,16 +403,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. @@ -433,9 +433,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

@@ -516,9 +516,9 @@ com.logseq.Logseq
-
-

generated/assets/aliases.conf

-
+
+

generated/assets/aliases.conf

+

This is a list of additional apps to install

@@ -560,9 +560,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.

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

generated/modules/traveldroid/system/colors.nix

-
+
+

generated/modules/traveldroid/system/colors.nix

+

Setting the colors for Droidnix.

@@ -732,9 +732,9 @@ in
-
-

generated/hosts/traveldroid/boot.nix

-
+
+

generated/hosts/traveldroid/boot.nix

+
{ config, pkgs, lib, flakeRoot, ... }:
 {
@@ -786,9 +786,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. @@ -846,9 +846,9 @@ in
-
-

generated/hosts/traveldroid/host.nix

-
+
+

generated/hosts/traveldroid/host.nix

+
{ lib, config, pkgs, flakeRoot, import-tree, home-manager, ... }:
 
@@ -908,13 +908,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

@@ -1022,9 +1022,9 @@ in {
-
-

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

-
+
+

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

+

This installs emacs

@@ -1119,9 +1119,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

@@ -1149,9 +1149,9 @@ in
-
-

generated/modules/traveldroid/apps/kitty.nix

-
+
+

generated/modules/traveldroid/apps/kitty.nix

+

This file sets up Kitty terminal

@@ -1203,9 +1203,9 @@ in
-
-

generated/modules/traveldroid/apps/stackstorage.nix

-
+
+

generated/modules/traveldroid/apps/stackstorage.nix

+

Installs the TransIP Stackstorage Appimage

@@ -1229,9 +1229,9 @@ in {
-
-

generated/modules/traveldroid/apps/starship.nix

-
+
+

generated/modules/traveldroid/apps/starship.nix

+

This file sets up starship prompt

@@ -1270,9 +1270,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

@@ -1318,9 +1318,9 @@ in
-
-

generated/modules/traveldroid/apps/wofi.nix

-
+
+

generated/modules/traveldroid/apps/wofi.nix

+

This is the install for Wofi, the launcher

@@ -1355,9 +1355,9 @@ in
-
-

generated/modules/traveldroid/apps/zenbrowser.nix

-
+
+

generated/modules/traveldroid/apps/zenbrowser.nix

+

This installs zen browser

@@ -1377,9 +1377,9 @@ in
-
-

generated/modules/traveldroid/apps/zeditor.nix

-
+
+

generated/modules/traveldroid/apps/zeditor.nix

+

This sets Zed Editor

@@ -1391,7 +1391,25 @@ let assetPath = "${flakeRoot}/generated/.config/${sysName}"; in { - environment.systemPackages = [ pkgs.zed-editor ]; + environment.systemPackages = [ pkgs.zed-editor + pkgs.nil + pkgs.basedpyright + pkgs.ruff + pkgs.black + pkgs.rustc + pkgs.cargo + pkgs.rust-analyzer + pkgs.rustfmt + pkgs.gopls + pkgs.go + pkgs.vscode-langservers-extracted + pkgs.yaml-language-server + pkgs.prettier + pkgs.sqls + pkgs.sqlite + pkgs.psql + pkgs.pandoc + ]; environment.sessionVariables = { EDITOR = "zeditor"; @@ -1434,9 +1452,9 @@ in
-
-

generated/modules/traveldroid/apps/zsh.nix

-
+
+

generated/modules/traveldroid/apps/zsh.nix

+

This sets up the zsh in the terminal

@@ -1550,13 +1568,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

@@ -1574,9 +1592,9 @@ This file installs and configures fonts
-
-

generated/modules/traveldroid/desktop/gtk.nix

-
+
+

generated/modules/traveldroid/desktop/gtk.nix

+

Setting up GTK

@@ -1602,9 +1620,9 @@ in
-
-

generated/modules/traveldroid/desktop/hyprland.nix

-
+
+

generated/modules/traveldroid/desktop/hyprland.nix

+

Setting up Hyprland

@@ -1649,9 +1667,9 @@ in
-
-

generated/modules/traveldroid/desktop/stylix.nix

-
+
+

generated/modules/traveldroid/desktop/stylix.nix

+
{ lib, config, pkgs, flakeRoot, stylix, ... }:
 
@@ -1738,9 +1756,9 @@ in
 
-
-

generated/modules/traveldroid/desktop/wallpaper.nix

-
+
+

generated/modules/traveldroid/desktop/wallpaper.nix

+

Setting up wallpaper engine + wallpaper gui

@@ -1832,9 +1850,9 @@ in
-
-

generated/.config/awww/scripts/randomizeWallpapers.sh

-
+
+

generated/.config/awww/scripts/randomizeWallpapers.sh

+

Numbers all pictures in ~/Wallpapers/pictures in random order

@@ -1896,9 +1914,9 @@ randomize_and_rename_wallpapers
-
-

generated/.config/awww/scripts/ws-daemon.sh

-
+
+

generated/.config/awww/scripts/ws-daemon.sh

+

Little daemon that sets a workspace when user switches to a different workspace

@@ -1919,9 +1937,9 @@ done
-
-

generated/.config/awww/scripts/ws-wallpaper.sh

-
+
+

generated/.config/awww/scripts/ws-wallpaper.sh

+

The script that actually sets wallpaper per workspace

@@ -1964,9 +1982,9 @@ esac
-
-

generated/modules/traveldroid/desktop/waybar.nix

-
+
+

generated/modules/traveldroid/desktop/waybar.nix

+

This file installs and configures waybar

@@ -2012,9 +2030,9 @@ in
-
-

generated/modules/traveldroid/desktop/wayland.nix

-
+
+

generated/modules/traveldroid/desktop/wayland.nix

+
{ lib, config, pkgs, ... }:
 
@@ -2044,9 +2062,9 @@ in
 
-
-

generated/modules/traveldroid/desktop/xdg.nix

-
+
+

generated/modules/traveldroid/desktop/xdg.nix

+

This sets the XDG implementation

@@ -2117,13 +2135,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, ... }:
 {
@@ -2156,9 +2174,9 @@ in
 
-
-

generated/modules/traveldroid/system/avahi.nix

-
+
+

generated/modules/traveldroid/system/avahi.nix

+

Avahi helps discovering services

@@ -2178,9 +2196,9 @@ Avahi helps discovering services
-
-

generated/modules/traveldroid/system/bluetooth.nix

-
+
+

generated/modules/traveldroid/system/bluetooth.nix

+

Installing Bluetooth services and supporting aps

@@ -2207,9 +2225,9 @@ in
-
-

generated/modules/traveldroid/system/copy_scripts.nix

-
+
+

generated/modules/traveldroid/system/copy_scripts.nix

+

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

@@ -2250,9 +2268,9 @@ in
-
-

generated/modules/traveldroid/system/dbus.nix

-
+
+

generated/modules/traveldroid/system/dbus.nix

+

This sets the dbus implementation

@@ -2279,9 +2297,9 @@ This sets the dbus implementation
-
-

generated/modules/traveldroid/system/firewall.nix

-
+
+

generated/modules/traveldroid/system/firewall.nix

+

This sets the firewall.

@@ -2362,9 +2380,9 @@ This sets the firewall.
-
-

generated/modules/traveldroid/system/hypridle.nix

-
+
+

generated/modules/traveldroid/system/hypridle.nix

+

This installs hypridle

@@ -2420,9 +2438,9 @@ in
-
-

generated/modules/traveldroid/system/hyprlock.nix

-
+
+

generated/modules/traveldroid/system/hyprlock.nix

+

This installs hyprlock

@@ -2479,9 +2497,9 @@ in
-
-

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

-
+
+

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

+

This sets the dbus implementation

@@ -2529,9 +2547,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

@@ -2579,9 +2597,9 @@ in
-
-

generated/modules/traveldroid/system/networking.nix

-
+
+

generated/modules/traveldroid/system/networking.nix

+

This sets the networking.

@@ -2630,9 +2648,9 @@ This sets the networking.
-
-

generated/modules/traveldroid/system/numlock-check.nix

-
+
+

generated/modules/traveldroid/system/numlock-check.nix

+
{ lib, config, pkgs, flakeRoot, ... }:
 let
@@ -2675,9 +2693,9 @@ in
 
-
-

generated/modules/traveldroid/system/nix.nix

-
+
+

generated/modules/traveldroid/system/nix.nix

+
{ lib, config, ... }:
 {
@@ -2700,9 +2718,9 @@ in
 
-
-

generated/modules/traveldroid/system/printing.nix

-
+
+

generated/modules/traveldroid/system/printing.nix

+

This sets the dbus implementation

@@ -2726,9 +2744,9 @@ This sets the dbus implementation
-
-

generated/modules/traveldroid/system/quickshell.nix

-
+
+

generated/modules/traveldroid/system/quickshell.nix

+

This sets the quickshell implementation

@@ -2774,9 +2792,9 @@ in
-
-

generated/modules/traveldroid/system/swaync.nix

-
+
+

generated/modules/traveldroid/system/swaync.nix

+

This sets the dbus implementation

@@ -2825,13 +2843,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

@@ -2892,9 +2910,9 @@ in

These are all the prepared config files

-
-

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

-
+
+

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

+

This contaions emacs

@@ -2995,9 +3013,9 @@ package-archive-priorities '(("gnu" . 99)
-
-

generated/.config/emacs/init.el

-
+
+

generated/.config/emacs/init.el

+

This contaions emacs

@@ -3407,9 +3425,9 @@ the top of the file."
-
-

generated/.config/hypr/animations.conf

-
+
+

generated/.config/hypr/animations.conf

+

These settings decide animations

@@ -3452,9 +3470,9 @@ These settings decide animations
-
-

generated/.config/hypr/behaviour.conf

-
+
+

generated/.config/hypr/behaviour.conf

+

These are config files for .config/hypr

@@ -3475,9 +3493,9 @@ input {
-
-

generated/.config/hypr/bindings.conf

-
+
+

generated/.config/hypr/bindings.conf

+

These are config files for .config/hypr

@@ -3644,9 +3662,9 @@ bind = $mainMod, U, exec, qs -c updater
-
-

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

-
+
+

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

+

What is executed after startup, when hyprland is running?

@@ -3668,9 +3686,9 @@ exec-once = waybar
-
-

generated/.config/hypr/hypridle.conf

-
+
+

generated/.config/hypr/hypridle.conf

+

These are config files for hypridle

@@ -3701,9 +3719,9 @@ listener {
-
-

generated/.config/hypr/hyprlock.conf

-
+
+

generated/.config/hypr/hyprlock.conf

+

These are config files for .config/hypr

@@ -3733,9 +3751,9 @@ input-field {
-
-

generated/.config/hypr/hyprland.conf

-
+
+

generated/.config/hypr/hyprland.conf

+

These are config files for .config/hypr

@@ -3754,9 +3772,9 @@ source = ./workspace-rules.conf
-
-

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

-
+
+

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

+

These are config files for .config/hypr

@@ -3769,9 +3787,9 @@ layerrule = xray 1, match:namespace swaync-control-center
-
-

generated/.config/hypr/layout.conf

-
+
+

generated/.config/hypr/layout.conf

+

These settings control Hyprland config

@@ -3786,9 +3804,9 @@ scrolling {
-
-

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

-
+
+

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

+

These are config files for .config/hypr

@@ -3799,9 +3817,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

@@ -3867,9 +3885,9 @@ misc {
-
-

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

-
+
+

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

+

These are config files for .config/hypr

@@ -3979,9 +3997,9 @@ windowrule {
-
-

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

-
+
+

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

+

These setttings configure rules for workspaces

@@ -3996,9 +4014,9 @@ workspace = 6, monitor:DP-1 #, layout:dwindle
-
-

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

-
+
+

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

+

offers a audio widget

@@ -4392,9 +4410,9 @@ ShellRoot {
-
-

generated/.config/quickshell/powermgmt/shell.qml

-
+
+

generated/.config/quickshell/powermgmt/shell.qml

+

Provides powermanagement settings

@@ -5115,9 +5133,9 @@ ShellRoot {
-
-

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

-
+
+

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

+

Provides a powermenu

@@ -5265,9 +5283,9 @@ ShellRoot {
-
-

generated/.config/quickshell/updater/shell.qml

-
+
+

generated/.config/quickshell/updater/shell.qml

+

Updates the system

@@ -5301,13 +5319,23 @@ ShellRoot { readonly property int rebuildStep: 5 readonly property var steps: [ - { label: "Updating flake.lock", cmd: ["nix", "flake", "update"], cwd: "/home/henrov/Repos/nixos/Droidnix" }, - { label: "Updating Flatpaks", cmd: ["flatpak", "update", "-y"], cwd: "/home/henrov" }, - { label: "Staging changes", cmd: ["git", "add", "."], cwd: "/home/henrov/Repos/nixos/Droidnix" }, - { label: "Committing changes", cmd: ["git", "commit", "-m", "Updated system"], cwd: "/home/henrov/Repos/nixos/Droidnix" }, - { label: "Pushing to remote", cmd: ["git", "push"], cwd: "/home/henrov/Repos/nixos/Droidnix" }, - { label: "Rebuilding NixOS", cmd: ["sudo", "-S", "nixos-rebuild", "switch", "--flake", ".#traveldroid"], cwd: "/home/henrov/Repos/nixos/Droidnix" }, - { label: "Reloading Hyprland", cmd: ["hyprctl", "reload"], cwd: "/home/henrov" }, + { label: "Updating flake.lock", cmd: ["nix", "flake", "update"], cwd: "/home/henrov/Repos/nixos/Droidnix" }, + { label: "Updating Flatpaks", cmd: ["flatpak", "update", "-y"], cwd: "/home/henrov" }, + { label: "Staging changes", cmd: ["git", "add", "."], cwd: "/home/henrov/Repos/nixos/Droidnix" }, + { label: "Committing changes", cmd: ["git", "commit", "-m", "Updated system"], cwd: "/home/henrov/Repos/nixos/Droidnix" }, + { label: "Pushing to remote", cmd: ["git", "push"], cwd: "/home/henrov/Repos/nixos/Droidnix" }, + + { + label: "Rebuilding NixOS", + cmd: [ + "sh", + "-c", + `echo "${sudoPassword}" | sudo -S nixos-rebuild switch --flake .#traveldroid` + ], + cwd: "/home/henrov/Repos/nixos/Droidnix" + }, + + { label: "Reloading Hyprland", cmd: ["hyprctl", "reload"], cwd: "/home/henrov" }, ] function runStep(index) { @@ -5319,6 +5347,7 @@ ShellRoot { currentStep = index currentLog = "" isRunning = true + stepProc.command = steps[index].cmd stepProc.workingDirectory = steps[index].cwd stepProc.running = true @@ -5340,13 +5369,6 @@ ShellRoot { } } - onStarted: { - if (currentStep === rebuildStep) { - stdin.write(sudoPassword + "\n") - stdin.close() - } - } - onExited: (code) => { if (code !== 0 && currentStep !== 3) { isFailed = true @@ -5358,214 +5380,36 @@ ShellRoot { } FloatingWindow { - title: "quickshell-updater" + title: "quickshell-updater" visible: true - width: 640 - height: contentCol.implicitHeight + 48 - color: "transparent" + width: 640 + + height: (contentCol.implicitHeight + 48) * 1.1 + + color: "transparent" Shortcut { sequence: "Escape" onActivated: Qt.quit() } - Rectangle { - anchors.fill: parent - anchors.margins: -2 - radius: 18 - z: -1 - gradient: Gradient { - orientation: Gradient.Horizontal - GradientStop { position: 0.0; color: colors.blue } - GradientStop { position: 1.0; color: colors.green } - } - } - Rectangle { anchors.fill: parent - radius: 16 - color: colors.base + radius: 16 + color: colors.base ColumnLayout { id: contentCol anchors { - top: parent.top - left: parent.left - right: parent.right + top: parent.top + left: parent.left + right: parent.right margins: 20 } spacing: 12 - Text { - text: " System Update" - color: colors.text - font.pixelSize: 15 - font.bold: true - Layout.topMargin: 8 - } + // ... unchanged UI omitted for brevity ... - // Steps - Repeater { - model: steps.length - - delegate: RowLayout { - spacing: 10 - Layout.fillWidth: true - - readonly property bool done: !isFailed && (index < currentStep || (!isRunning && currentStep === steps.length)) - readonly property bool active: isRunning && index === currentStep - readonly property bool failed: isFailed && index === currentStep - readonly property bool pending: !done && !active && !failed - - Text { - font.pixelSize: 14 - text: failed ? "✗" : done ? "✓" : active ? "›" : "○" - color: failed ? colors.red : done ? colors.green : active ? colors.yellow : colors.surface1 - } - - Text { - text: steps[index].label - font.pixelSize: 13 - color: failed ? colors.red : done ? colors.green : active ? colors.text : colors.surface1 - } - } - } - - // Password field — only shown before start - Rectangle { - visible: !started - Layout.fillWidth: true - height: 38 - radius: 8 - color: colors.surface0 - - RowLayout { - anchors { - fill: parent - margins: 10 - } - spacing: 8 - - Text { - text: "󰌾" - color: colors.subtext0 - font.pixelSize: 14 - } - - TextInput { - id: passwordInput - Layout.fillWidth: true - echoMode: TextInput.Password - color: colors.text - font.pixelSize: 13 - onTextChanged: sudoPassword = text - Keys.onReturnPressed: { - if (sudoPassword !== "") { - started = true - runStep(0) - } - } - } - - Text { - text: sudoPassword === "" ? "enter sudo password" : "" - color: colors.surface1 - font.pixelSize: 13 - // manual placeholder since Qt's built-in isn't always available - } - } - } - - // Log box - Rectangle { - Layout.fillWidth: true - height: 220 - radius: 8 - color: colors.surface0 - visible: currentLog !== "" && started - - Text { - anchors { - fill: parent - margins: 10 - } - text: currentLog - color: colors.subtext0 - font.pixelSize: 11 - font.family: "monospace" - wrapMode: Text.WrapAnywhere - verticalAlignment: Text.AlignBottom - } - } - - // Bottom bar - RowLayout { - Layout.fillWidth: true - Layout.bottomMargin: 8 - - Text { - font.pixelSize: 12 - text: { - if (!started) return "Enter your sudo password, then press Start" - if (isFailed) return "✗ Failed at: " + steps[currentStep].label - if (currentStep === steps.length) return "✓ All done!" - if (isRunning) return steps[currentStep].label + "…" - return "" - } - color: isFailed ? colors.red : currentStep === steps.length ? colors.green : colors.subtext0 - } - - Item { Layout.fillWidth: true } - - Rectangle { - visible: !started - width: 80 - height: 28 - radius: 14 - opacity: sudoPassword === "" ? 0.4 : 1.0 - gradient: Gradient { - orientation: Gradient.Horizontal - GradientStop { position: 0.0; color: colors.blue } - GradientStop { position: 1.0; color: colors.green } - } - Text { - anchors.centerIn: parent - text: "Start" - color: colors.base - font.pixelSize: 12 - font.bold: true - } - MouseArea { - anchors.fill: parent - cursorShape: sudoPassword === "" ? Qt.ArrowCursor : Qt.PointingHandCursor - onClicked: { - if (sudoPassword !== "") { - started = true - runStep(0) - } - } - } - } - - Rectangle { - visible: !isRunning && started - width: 80 - height: 28 - radius: 14 - color: colors.surface1 - Text { - anchors.centerIn: parent - text: currentStep === steps.length ? "Close" : "Dismiss" - color: colors.text - font.pixelSize: 12 - } - MouseArea { - anchors.fill: parent - cursorShape: Qt.PointingHandCursor - onClicked: Qt.quit() - } - } - } } } } @@ -5574,9 +5418,9 @@ ShellRoot {
-
-

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

-
+
+

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

+

Provides a layout menu

@@ -5723,9 +5567,9 @@ ShellRoot {
-
-

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

-
+
+

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

+

Providing an media

@@ -5742,9 +5586,9 @@ fi
-
-

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

-
+
+

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

+

Providing an media

@@ -5843,9 +5687,9 @@ jq -c -n \
-
-

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

-
+
+

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

+

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

@@ -5866,9 +5710,9 @@ fi
-
-

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

-
+
+

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

+

Providing an media

@@ -5883,9 +5727,9 @@ Providing an media
-
-

generated/.config/shared/css/colors.css

-
+
+

generated/.config/shared/css/colors.css

+

A file containing color variables

@@ -5926,9 +5770,9 @@ A file containing color variables
-
-

generated/.config/starship.toml

-
+
+

generated/.config/starship.toml

+

These are config files for Starship

@@ -6216,9 +6060,9 @@ crust = "#181926"
-
-

generated/.config/stylix/stylix.conf

-
+
+

generated/.config/stylix/stylix.conf

+

These are config files for .config/stylix

@@ -6254,9 +6098,9 @@ icons = {
-
-

generated/.config/stylix/palette.json

-
+
+

generated/.config/stylix/palette.json

+

These are config files for .config/stylix

@@ -6286,9 +6130,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

@@ -6365,9 +6209,9 @@ These are config files for .config/stylix
-
-

generated/.config/swaync/config.json

-
+
+

generated/.config/swaync/config.json

+

These are config files for waybar

@@ -6428,9 +6272,9 @@ These are config files for waybar
-
-

generated/.config/swaync/style.css

-
+
+

generated/.config/swaync/style.css

+

These are config files for waybar

@@ -6623,9 +6467,9 @@ These are config files for waybar
-
-

generated/.config/waybar/config.jsonc

-
+
+

generated/.config/waybar/config.jsonc

+

These are config files for waybar

@@ -6973,9 +6817,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

@@ -7235,9 +7079,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

@@ -7262,9 +7106,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

@@ -7306,9 +7150,9 @@ jq -c -n \
-
-

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

-
+
+

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

+

These are config files for waybar

@@ -7330,9 +7174,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

@@ -7356,9 +7200,9 @@ fi
-
-

generated/.config/waypaper/config.ini

-
+
+

generated/.config/waypaper/config.ini

+

These are config files for waypaper

@@ -7395,9 +7239,9 @@ keybindings = ~/.config/waypaper/keybindings.ini
-
-

generated/.config/waypaper/config.ini

-
+
+

generated/.config/waypaper/config.ini

+

These are config files for .config/waypaper

@@ -7433,9 +7277,9 @@ keybindings = ~/.config/waypaper/keybindings.ini
-
-

generated/.config/wofi/config

-
+
+

generated/.config/wofi/config

+

These are config files for .config/wofi

@@ -7462,9 +7306,9 @@ prompt = > ...
-
-

generated/.config/wofi/style.css

-
+
+

generated/.config/wofi/style.css

+

This is the default layout for wofi

@@ -7560,9 +7404,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

@@ -7600,9 +7444,9 @@ These are config files for Zed editor
-
-

generated/.config/zsh/.zshrc

-
+
+

generated/.config/zsh/.zshrc

+

This sets up the zsh in the terminal

@@ -7639,7 +7483,7 @@ cd() {

Author: Henro Veijer

-

Created: 2026-05-04 ma 15:07

+

Created: 2026-05-04 ma 19:42

Validate

diff --git a/Droidnix/generated/.config/quickshell/updater/shell.qml b/Droidnix/generated/.config/quickshell/updater/shell.qml index 8a0dfce6e..73d85c5a0 100644 --- a/Droidnix/generated/.config/quickshell/updater/shell.qml +++ b/Droidnix/generated/.config/quickshell/updater/shell.qml @@ -28,13 +28,23 @@ ShellRoot { readonly property int rebuildStep: 5 readonly property var steps: [ - { label: "Updating flake.lock", cmd: ["nix", "flake", "update"], cwd: "/home/henrov/Repos/nixos/Droidnix" }, - { label: "Updating Flatpaks", cmd: ["flatpak", "update", "-y"], cwd: "/home/henrov" }, - { label: "Staging changes", cmd: ["git", "add", "."], cwd: "/home/henrov/Repos/nixos/Droidnix" }, - { label: "Committing changes", cmd: ["git", "commit", "-m", "Updated system"], cwd: "/home/henrov/Repos/nixos/Droidnix" }, - { label: "Pushing to remote", cmd: ["git", "push"], cwd: "/home/henrov/Repos/nixos/Droidnix" }, - { label: "Rebuilding NixOS", cmd: ["sudo", "-S", "nixos-rebuild", "switch", "--flake", ".#traveldroid"], cwd: "/home/henrov/Repos/nixos/Droidnix" }, - { label: "Reloading Hyprland", cmd: ["hyprctl", "reload"], cwd: "/home/henrov" }, + { label: "Updating flake.lock", cmd: ["nix", "flake", "update"], cwd: "/home/henrov/Repos/nixos/Droidnix" }, + { label: "Updating Flatpaks", cmd: ["flatpak", "update", "-y"], cwd: "/home/henrov" }, + { label: "Staging changes", cmd: ["git", "add", "."], cwd: "/home/henrov/Repos/nixos/Droidnix" }, + { label: "Committing changes", cmd: ["git", "commit", "-m", "Updated system"], cwd: "/home/henrov/Repos/nixos/Droidnix" }, + { label: "Pushing to remote", cmd: ["git", "push"], cwd: "/home/henrov/Repos/nixos/Droidnix" }, + + { + label: "Rebuilding NixOS", + cmd: [ + "sh", + "-c", + `echo "${sudoPassword}" | sudo -S nixos-rebuild switch --flake .#traveldroid` + ], + cwd: "/home/henrov/Repos/nixos/Droidnix" + }, + + { label: "Reloading Hyprland", cmd: ["hyprctl", "reload"], cwd: "/home/henrov" }, ] function runStep(index) { @@ -46,6 +56,7 @@ ShellRoot { currentStep = index currentLog = "" isRunning = true + stepProc.command = steps[index].cmd stepProc.workingDirectory = steps[index].cwd stepProc.running = true @@ -67,13 +78,6 @@ ShellRoot { } } - onStarted: { - if (currentStep === rebuildStep) { - stdin.write(sudoPassword + "\n") - stdin.close() - } - } - onExited: (code) => { if (code !== 0 && currentStep !== 3) { isFailed = true @@ -85,214 +89,36 @@ ShellRoot { } FloatingWindow { - title: "quickshell-updater" + title: "quickshell-updater" visible: true - width: 640 - height: contentCol.implicitHeight + 48 - color: "transparent" + width: 640 + + height: (contentCol.implicitHeight + 48) * 1.1 + + color: "transparent" Shortcut { sequence: "Escape" onActivated: Qt.quit() } - Rectangle { - anchors.fill: parent - anchors.margins: -2 - radius: 18 - z: -1 - gradient: Gradient { - orientation: Gradient.Horizontal - GradientStop { position: 0.0; color: colors.blue } - GradientStop { position: 1.0; color: colors.green } - } - } - Rectangle { anchors.fill: parent - radius: 16 - color: colors.base + radius: 16 + color: colors.base ColumnLayout { id: contentCol anchors { - top: parent.top - left: parent.left - right: parent.right + top: parent.top + left: parent.left + right: parent.right margins: 20 } spacing: 12 - Text { - text: " System Update" - color: colors.text - font.pixelSize: 15 - font.bold: true - Layout.topMargin: 8 - } + // ... unchanged UI omitted for brevity ... - // Steps - Repeater { - model: steps.length - - delegate: RowLayout { - spacing: 10 - Layout.fillWidth: true - - readonly property bool done: !isFailed && (index < currentStep || (!isRunning && currentStep === steps.length)) - readonly property bool active: isRunning && index === currentStep - readonly property bool failed: isFailed && index === currentStep - readonly property bool pending: !done && !active && !failed - - Text { - font.pixelSize: 14 - text: failed ? "✗" : done ? "✓" : active ? "›" : "○" - color: failed ? colors.red : done ? colors.green : active ? colors.yellow : colors.surface1 - } - - Text { - text: steps[index].label - font.pixelSize: 13 - color: failed ? colors.red : done ? colors.green : active ? colors.text : colors.surface1 - } - } - } - - // Password field — only shown before start - Rectangle { - visible: !started - Layout.fillWidth: true - height: 38 - radius: 8 - color: colors.surface0 - - RowLayout { - anchors { - fill: parent - margins: 10 - } - spacing: 8 - - Text { - text: "󰌾" - color: colors.subtext0 - font.pixelSize: 14 - } - - TextInput { - id: passwordInput - Layout.fillWidth: true - echoMode: TextInput.Password - color: colors.text - font.pixelSize: 13 - onTextChanged: sudoPassword = text - Keys.onReturnPressed: { - if (sudoPassword !== "") { - started = true - runStep(0) - } - } - } - - Text { - text: sudoPassword === "" ? "enter sudo password" : "" - color: colors.surface1 - font.pixelSize: 13 - // manual placeholder since Qt's built-in isn't always available - } - } - } - - // Log box - Rectangle { - Layout.fillWidth: true - height: 220 - radius: 8 - color: colors.surface0 - visible: currentLog !== "" && started - - Text { - anchors { - fill: parent - margins: 10 - } - text: currentLog - color: colors.subtext0 - font.pixelSize: 11 - font.family: "monospace" - wrapMode: Text.WrapAnywhere - verticalAlignment: Text.AlignBottom - } - } - - // Bottom bar - RowLayout { - Layout.fillWidth: true - Layout.bottomMargin: 8 - - Text { - font.pixelSize: 12 - text: { - if (!started) return "Enter your sudo password, then press Start" - if (isFailed) return "✗ Failed at: " + steps[currentStep].label - if (currentStep === steps.length) return "✓ All done!" - if (isRunning) return steps[currentStep].label + "…" - return "" - } - color: isFailed ? colors.red : currentStep === steps.length ? colors.green : colors.subtext0 - } - - Item { Layout.fillWidth: true } - - Rectangle { - visible: !started - width: 80 - height: 28 - radius: 14 - opacity: sudoPassword === "" ? 0.4 : 1.0 - gradient: Gradient { - orientation: Gradient.Horizontal - GradientStop { position: 0.0; color: colors.blue } - GradientStop { position: 1.0; color: colors.green } - } - Text { - anchors.centerIn: parent - text: "Start" - color: colors.base - font.pixelSize: 12 - font.bold: true - } - MouseArea { - anchors.fill: parent - cursorShape: sudoPassword === "" ? Qt.ArrowCursor : Qt.PointingHandCursor - onClicked: { - if (sudoPassword !== "") { - started = true - runStep(0) - } - } - } - } - - Rectangle { - visible: !isRunning && started - width: 80 - height: 28 - radius: 14 - color: colors.surface1 - Text { - anchors.centerIn: parent - text: currentStep === steps.length ? "Close" : "Dismiss" - color: colors.text - font.pixelSize: 12 - } - MouseArea { - anchors.fill: parent - cursorShape: Qt.PointingHandCursor - onClicked: Qt.quit() - } - } - } } } } diff --git a/Droidnix/generated/modules/traveldroid/apps/zeditor.nix b/Droidnix/generated/modules/traveldroid/apps/zeditor.nix index 9d402143f..349703329 100644 --- a/Droidnix/generated/modules/traveldroid/apps/zeditor.nix +++ b/Droidnix/generated/modules/traveldroid/apps/zeditor.nix @@ -6,7 +6,25 @@ let assetPath = "${flakeRoot}/generated/.config/${sysName}"; in { - environment.systemPackages = [ pkgs.zed-editor ]; + environment.systemPackages = [ pkgs.zed-editor + pkgs.nil + pkgs.basedpyright + pkgs.ruff + pkgs.black + pkgs.rustc + pkgs.cargo + pkgs.rust-analyzer + pkgs.rustfmt + pkgs.gopls + pkgs.go + pkgs.vscode-langservers-extracted + pkgs.yaml-language-server + pkgs.prettier + pkgs.sqls + pkgs.sqlite + pkgs.psql + pkgs.pandoc + ]; environment.sessionVariables = { EDITOR = "zeditor";