From 1274d0e1f0cef368a2522bb6528b7080d6de0b2b Mon Sep 17 00:00:00 2001 From: "info@data-pro.nu" Date: Sat, 14 Mar 2026 12:29:41 +0100 Subject: [PATCH] Adding networking --- Droidnix/README.html | 794 +++++++++--------- Droidnix/README.org | 46 +- .../flake/machines/traveldroid/networking.nix | 7 - .../hyprland/animations_effects/top.nix | 7 - .../generated.12/hyprland/decorations/top.nix | 7 - Droidnix/generated.12/hyprland/hyprland.nix | 42 - .../hyprland/keyboard_binds/top.nix | 20 - .../hyprland/notifications/top.nix | 7 - .../hyprland/statusbar_tray/top.nix | 7 - .../hyprland/task_launcher/top.nix | 7 - .../hyprland/task_launcher/wofi.nix | 35 - .../task_window_workspace_switcher/top.nix | 7 - Droidnix/generated.12/hyprland/top.nix | 14 - .../hyprland/window_rules/top.nix | 7 - .../mangowc/animations_effects/top.nix | 7 - .../generated.12/mangowc/decorations/top.nix | 7 - .../mangowc/keyboard_binds/top.nix | 24 - .../mangowc/notifications/top.nix | 7 - .../mangowc/statusbar_tray/top.nix | 7 - .../mangowc/task_launcher/top.nix | 7 - .../mangowc/task_launcher/wofi.nix | 4 - .../task_window_workspace_switcher/top.nix | 7 - Droidnix/generated.12/mangowc/top.nix | 14 - .../generated.12/mangowc/window_rules/top.nix | 7 - .../system/applications/accessibility/top.nix | 7 - .../applications/file_management/top.nix | 7 - .../system/applications/gaming/top.nix | 7 - .../media_playback_editing/top.nix | 7 - .../applications/office_productivity/top.nix | 7 - .../applications/terminal_shell/kitty.nix | 59 -- .../applications/terminal_shell/starship.nix | 27 - .../applications/terminal_shell/top.nix | 9 - .../applications/terminal_shell/zsh.nix | 61 -- .../generated.12/system/applications/top.nix | 12 - .../system/core/login-tuigreeter.nix | 14 - Droidnix/generated.12/system/core/top.nix | 9 - Droidnix/generated.12/system/core/wayland.nix | 35 - .../system/development/databases/top.nix | 7 - .../system/development/devops_ci_cd/top.nix | 7 - .../development/programming_languages/top.nix | 7 - .../generated.12/system/development/top.nix | 11 - .../system/development/virtualization/top.nix | 7 - .../development/web_development/top.nix | 7 - .../system/system_management/audio/top.nix | 7 - .../system/system_management/backups/top.nix | 7 - .../system_management/bluetooth/top.nix | 7 - .../system_management/disk_management/top.nix | 7 - .../hardware_sensors/top.nix | 7 - .../logging_monitoring/top.nix | 7 - .../system_management/login_manager/top.nix | 7 - .../system_management/monitor_setup/top.nix | 7 - .../system_management/networking/top.nix | 7 - .../power_management/top.nix | 7 - .../printers_scanners/top.nix | 7 - .../system/system_management/security/top.nix | 7 - .../system_management/system_updates/top.nix | 7 - .../system/system_management/top.nix | 19 - Droidnix/generated.12/system/top.nix | 10 - Droidnix/generated.12/top.nix | 8 - Droidnix/generated/hyprland/hyprland.nix | 16 +- .../generated/hyprland/keyboard_binds/top.nix | 2 +- .../generated/mangowc/keyboard_binds/top.nix | 25 +- .../applications/terminal_shell/kitty.nix | 52 +- .../applications/terminal_shell/starship.nix | 37 +- .../applications/terminal_shell/zsh.nix | 122 ++- .../generated/system/applications/top.nix | 4 +- Droidnix/generated/system/core/top.nix | 4 +- Droidnix/generated/system/core/wayland.nix | 23 - 68 files changed, 556 insertions(+), 1262 deletions(-) delete mode 100644 Droidnix/generated.12/hyprland/animations_effects/top.nix delete mode 100644 Droidnix/generated.12/hyprland/decorations/top.nix delete mode 100644 Droidnix/generated.12/hyprland/hyprland.nix delete mode 100644 Droidnix/generated.12/hyprland/keyboard_binds/top.nix delete mode 100644 Droidnix/generated.12/hyprland/notifications/top.nix delete mode 100644 Droidnix/generated.12/hyprland/statusbar_tray/top.nix delete mode 100644 Droidnix/generated.12/hyprland/task_launcher/top.nix delete mode 100644 Droidnix/generated.12/hyprland/task_launcher/wofi.nix delete mode 100644 Droidnix/generated.12/hyprland/task_window_workspace_switcher/top.nix delete mode 100644 Droidnix/generated.12/hyprland/top.nix delete mode 100644 Droidnix/generated.12/hyprland/window_rules/top.nix delete mode 100644 Droidnix/generated.12/mangowc/animations_effects/top.nix delete mode 100644 Droidnix/generated.12/mangowc/decorations/top.nix delete mode 100644 Droidnix/generated.12/mangowc/keyboard_binds/top.nix delete mode 100644 Droidnix/generated.12/mangowc/notifications/top.nix delete mode 100644 Droidnix/generated.12/mangowc/statusbar_tray/top.nix delete mode 100644 Droidnix/generated.12/mangowc/task_launcher/top.nix delete mode 100644 Droidnix/generated.12/mangowc/task_launcher/wofi.nix delete mode 100644 Droidnix/generated.12/mangowc/task_window_workspace_switcher/top.nix delete mode 100644 Droidnix/generated.12/mangowc/top.nix delete mode 100644 Droidnix/generated.12/mangowc/window_rules/top.nix delete mode 100644 Droidnix/generated.12/system/applications/accessibility/top.nix delete mode 100644 Droidnix/generated.12/system/applications/file_management/top.nix delete mode 100644 Droidnix/generated.12/system/applications/gaming/top.nix delete mode 100644 Droidnix/generated.12/system/applications/media_playback_editing/top.nix delete mode 100644 Droidnix/generated.12/system/applications/office_productivity/top.nix delete mode 100644 Droidnix/generated.12/system/applications/terminal_shell/kitty.nix delete mode 100644 Droidnix/generated.12/system/applications/terminal_shell/starship.nix delete mode 100644 Droidnix/generated.12/system/applications/terminal_shell/top.nix delete mode 100644 Droidnix/generated.12/system/applications/terminal_shell/zsh.nix delete mode 100644 Droidnix/generated.12/system/applications/top.nix delete mode 100644 Droidnix/generated.12/system/core/login-tuigreeter.nix delete mode 100644 Droidnix/generated.12/system/core/top.nix delete mode 100644 Droidnix/generated.12/system/core/wayland.nix delete mode 100644 Droidnix/generated.12/system/development/databases/top.nix delete mode 100644 Droidnix/generated.12/system/development/devops_ci_cd/top.nix delete mode 100644 Droidnix/generated.12/system/development/programming_languages/top.nix delete mode 100644 Droidnix/generated.12/system/development/top.nix delete mode 100644 Droidnix/generated.12/system/development/virtualization/top.nix delete mode 100644 Droidnix/generated.12/system/development/web_development/top.nix delete mode 100644 Droidnix/generated.12/system/system_management/audio/top.nix delete mode 100644 Droidnix/generated.12/system/system_management/backups/top.nix delete mode 100644 Droidnix/generated.12/system/system_management/bluetooth/top.nix delete mode 100644 Droidnix/generated.12/system/system_management/disk_management/top.nix delete mode 100644 Droidnix/generated.12/system/system_management/hardware_sensors/top.nix delete mode 100644 Droidnix/generated.12/system/system_management/logging_monitoring/top.nix delete mode 100644 Droidnix/generated.12/system/system_management/login_manager/top.nix delete mode 100644 Droidnix/generated.12/system/system_management/monitor_setup/top.nix delete mode 100644 Droidnix/generated.12/system/system_management/networking/top.nix delete mode 100644 Droidnix/generated.12/system/system_management/power_management/top.nix delete mode 100644 Droidnix/generated.12/system/system_management/printers_scanners/top.nix delete mode 100644 Droidnix/generated.12/system/system_management/security/top.nix delete mode 100644 Droidnix/generated.12/system/system_management/system_updates/top.nix delete mode 100644 Droidnix/generated.12/system/system_management/top.nix delete mode 100644 Droidnix/generated.12/system/top.nix delete mode 100644 Droidnix/generated.12/top.nix diff --git a/Droidnix/README.html b/Droidnix/README.html index 26f528396..82d869c18 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,131 +204,131 @@

Table of Contents

-
-

Shortcuts

-
+
+

Shortcuts

+

Introduction The Assets Folder @@ -344,26 +344,26 @@

Introduction   intro

-
-

What is Droidnix

-
+
+

What is Droidnix

+

Droidnix is a modular, declarative NixOS + Home Manager configuration system. It allows users to choose between Hyprland and Mangowc as their window manager, with shared and WM-specific 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
  • -
  • Mangowc
  • +
  • Core
  • +
  • Hyprland
  • +
  • Mangowc
-
-

Goals, project Structure, import hierarchy

-
+
+

Goals, project Structure, import hierarchy

+

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

-
-

Root Level

-
+
+

Root Level

+
  • flake.nix is the entry point and imports:
      @@ -390,23 +390,23 @@ 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.

-
-

System (generated/system/)

-
+
+

System (generated/system/)

+

This directory contains system-wide configurations that are independent of the window manager.

-
-

Applications (applications/)

-
+
+

Applications (applications/)

+
  • file_management/: Configurations for file managers and storage solutions.
  • gaming/: Settings for gaming-related software.
  • @@ -416,9 +416,9 @@ This directory contains system-wide configurations that are independent of the w
-
-

Development (development/)

-
+
+

Development (development/)

+
  • databases/: Settings for local databases.
  • devops_ci_cd/: Configurations for DevOps tools.
  • @@ -428,9 +428,9 @@ This directory contains system-wide configurations that are independent of the w
-
-

System Management (system_management/)

-
+
+

System Management (system_management/)

+
  • backups/: Settings for backup software.
  • bluetooth/: Configurations for Bluetooth devices and services.
  • @@ -449,9 +449,9 @@ This directory contains system-wide configurations that are independent of the w
-
-

Hyprland (generated/hyprland/)

-
+
+

Hyprland (generated/hyprland/)

+

This directory contains configurations specific to Hyprland.

@@ -468,9 +468,9 @@ This directory contains configurations specific to Hyprland.
-
-

MangoWC (generated/mangowc/)

-
+
+

MangoWC (generated/mangowc/)

+

This directory contains configurations specific to MangoWC.

@@ -504,7 +504,7 @@ This directory contains configurations specific to MangoWC.
  • Scalability: Easy to add new machines or configurations.
  • -
    +
     .
     ├── assets
     │   ├── system
    @@ -686,9 +686,9 @@ This directory contains configurations specific to MangoWC.
     
    -
    -

    First Setup

    -
    +
    +

    First Setup

    +
    1. Clone this repository.
    2. Run the setup script: ./setup_droidnix.sh.
    3. @@ -710,9 +710,9 @@ This directory contains configurations specific to MangoWC. The .assets/ folder contains all static files, such as configs, scripts, and themes. These files are not generated and can be edited directly.

    -
    -

    .assets/system/

    -
    +
    +

    .assets/system/

    +

    This folder contains files shared across both window managers, such as wallpapers, shell configs, and system scripts.

    @@ -723,9 +723,9 @@ This folder contains files shared across both window managers, such as wallpaper
    -
    -

    .assets/hyprland/

    -
    +
    +

    .assets/hyprland/

    +

    Hyprland-specific assets, including configs, themes, and scripts.

    @@ -737,9 +737,9 @@ Hyprland-specific assets, including configs, themes, and scripts.
    -
    -

    .assets/mangowc/

    -
    +
    +

    .assets/mangowc/

    +

    Mangowc-specific assets, including configs, themes, and scripts.

    @@ -751,9 +751,9 @@ Mangowc-specific assets, including configs, themes, and scripts.
    -
    -

    .assets/machines/

    -
    +
    +

    .assets/machines/

    +

    Machine-specific NixOS configurations (e.g., configuration.nix for maindroid and traveldroid).

    @@ -771,9 +771,9 @@ Machine-specific NixOS configurations (e.g., configuration.nix for This section contains the Org blocks for tangling Nix code into the generated folders.

    -
    -

    flake.nix

    -
    +
    +

    flake.nix

    +

    The Nix flake definition for Droidnix.

    @@ -869,13 +869,13 @@ The Nix flake definition for Droidnix.
    -
    -

    First the nix-files that flake really needs and that do not fit wel in the hierarchical structure

    -
    +
    +

    First the nix-files that flake really needs and that do not fit wel in the hierarchical structure

    +
    -
    -

    assets/flake/users/top.nix

    -
    +
    +

    assets/flake/users/top.nix

    +

    The ./generated/top.nix file acts as an anchor or entry point for the entire chain of imports in the pyramid structure.

    @@ -890,9 +890,9 @@ The ./generated/top.nix file acts as an anchor or entry point for the entire cha
    -
    -

    assets/flake/users/user.nix

    -
    +
    +

    assets/flake/users/user.nix

    +

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

    @@ -918,14 +918,18 @@ in git-extras ]; }; + + # Ensure the user is in the necessary groups + users.users.${config.users.users.${user.username}.username} = { + extraGroups = [ "networkmanager" ]; }
    -
    -

    assets/flake/users/henrov.nix

    -
    +
    +

    assets/flake/users/henrov.nix

    +

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

    @@ -941,9 +945,9 @@ This is the default user, just search and replace henrov another name if you wan
    -
    -

    assets/flake/terminal_shell/devshell.nix

    -
    +
    +

    assets/flake/terminal_shell/devshell.nix

    +

    This code defines a Nix shell environment (also called a "devShell") that you can enter using the nix develop command. When you enter this shell, Nix will provide the tools and dependencies listed in buildInputs.

    @@ -959,9 +963,9 @@ mkShell {
    -
    -

    assets/flake/machines/traveldroid/top.nix

    -
    +
    +

    assets/flake/machines/traveldroid/top.nix

    +

    This is the top of the machine hierarchy

    @@ -993,9 +997,9 @@ This is the top of the machine hierarchy
    -
    -

    assets/flake/machines/traveldroid/boot.nix

    -
    +
    +

    assets/flake/machines/traveldroid/boot.nix

    +

    This file has most of the settings the control how the computer boots up.

    @@ -1029,9 +1033,9 @@ This file has most of the settings the control how the computer boots up.
    -
    -

    assets/flake/machines/traveldroid/machine.nix

    -
    +
    +

    assets/flake/machines/traveldroid/machine.nix

    +

    This is the top if the machine hierarchy

    @@ -1078,9 +1082,9 @@ This is the top if the machine hierarchy
    -
    -

    assets/flake/machines/traveldroid/dbus.nix

    -
    +
    +

    assets/flake/machines/traveldroid/dbus.nix

    +

    This sets the dbus implementation

    @@ -1102,20 +1106,43 @@ This sets the dbus implementation
    -
    -

    assets/flake/machines/traveldroid/networking.nix

    -
    +
    +

    assets/flake/machines/traveldroid/networking.nix

    +

    This sets the dbus implementation

    -
    { config, pkgs, ... }:
    +
    {
    +  config,
    +  pkgs,
    +  lib,
    +  ...
    +}:
     
     {
    -  # Enable NetworkManager
    -  services.NetworkManager = {
    -    enable = true;
    -    dhcpcd.enable = false; # Ensure dhcpcd is disabled to avoid conflicts
    +  networking = {
    +    useDHCP = lib.mkDefault true;
    +    networkmanager.enable = true;
    +    networkmanager.wifi.backend = "iwd";
    +    wireless.iwd.enable = true;
    +    wireless.userControlled.enable = true;
    +    firewall = {
    +      enable = true;
    +      # KDE Connect: discovery + encrypted connections
    +      allowedTCPPortRanges = [
    +        {
    +          from = 1714;
    +          to = 1764;
    +        }
    +      ];
    +      allowedUDPPortRanges = [
    +        {
    +          from = 1714;
    +          to = 1764;
    +        }
    +      ];
    +    };
       };
     
       # Install NetworkManager and wofi
    @@ -1123,21 +1150,16 @@ This sets the dbus implementation
         networkmanager
         wofi
       ];
    -
    -  # Ensure the user is in the necessary groups
    -  users.users.${config.users.users."henrov".username} = {
    -    extraGroups = [ "networkmanager" ];
    -  };
     }
     
    -
    -

    assets/flake/machines/traveldroid/session.nix

    -
    +
    +

    assets/flake/machines/traveldroid/session.nix

    +

    -This sets the dbus implementation +This sets the session variables

    { config, pkgs, user, ... }:
    @@ -1153,9 +1175,9 @@ This sets the dbus implementation
     
    -
    -

    assets/flake/machines/traveldroid/bluetooth.nix

    -
    +
    +

    assets/flake/machines/traveldroid/bluetooth.nix

    +

    This sets the bluetooth implementation

    @@ -1192,9 +1214,9 @@ This sets the bluetooth implementation
    -
    -

    assets/flake/machines/traveldroid/audio.nix

    -
    +
    +

    assets/flake/machines/traveldroid/audio.nix

    +

    This sets audiosystem for this machine

    @@ -1215,9 +1237,9 @@ This sets audiosystem for this machine
    -
    -

    assets/flake/machines/traveldroid/xdg.nix

    -
    +
    +

    assets/flake/machines/traveldroid/xdg.nix

    +

    This sets the XDG implementation

    @@ -1235,13 +1257,13 @@ This sets the XDG implementation
    -
    -

    Now we reach the top of the hierarchy which will call all other imports

    -
    +
    +

    Now we reach the top of the hierarchy which will call all other imports

    +
    -
    -

    generated/top.nix

    -
    +
    +

    generated/top.nix

    +

    The ./generated/top.nix file acts as an anchor or entry point for the entire chain of imports in the pyramid structure.

    @@ -1280,9 +1302,9 @@ This is top file of this level which contains just an import statement for all r
    -
    -

    generated/hyprland/hyprland.nix

    -
    +
    +

    generated/hyprland/hyprland.nix

    +

    The ./generated/top.nix file acts as an anchor or entry point for the entire chain of imports in the pyramid structure.

    @@ -1298,7 +1320,7 @@ The ./generated/top.nix file acts as an anchor or entry point for the entire cha let hyprlandConfigDir = "${config.home-manager.users.${user.username}.xdg.configHome}/hypr"; - # Dynamically read all files in assets/hyprland/conf/ + # Dynamically read all files in assets/hyprland/conf/hypr hyprlandConfs = lib.genAttrs (builtins.attrNames (builtins.readDir "${flakeRoot}/assets/hyprland/conf/hypr")) (name: { @@ -1335,9 +1357,9 @@ in
    -
    -

    generated/mangowc/top.nix

    -
    +
    +

    generated/mangowc/top.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

    @@ -1360,9 +1382,9 @@ This is top file of this level which contains just an import statement for all r
    -
    -

    generated/system/top.nix

    -
    +
    +

    generated/system/top.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

    @@ -1381,9 +1403,9 @@ This is top file of this level which contains just an import statement for all r
    -
    -

    generated/system/applications/top.nix

    -
    +
    +

    generated/system/applications/top.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

    @@ -1406,9 +1428,9 @@ This is top file of this level which contains just an import statement for all r
    -
    -

    generated/system/applications/packages.nix

    -
    +
    +

    generated/system/applications/packages.nix

    +

    This will import all packages listed in ./assets/system/apps/packlages.conf

    @@ -1461,9 +1483,9 @@ in
    -
    -

    generated/system/applications/flatpaks.nix

    -
    +
    +

    generated/system/applications/flatpaks.nix

    +

    This will import all packages listed in ./assets/system/apps/flatpaks.conf

    @@ -1584,9 +1606,9 @@ in
    -
    -

    generated/system/core/top.nix

    -
    +
    +

    generated/system/core/top.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

    @@ -1606,9 +1628,9 @@ This is top file of this level which contains just an import statement for all r
    -
    -

    generated/system/core/fonts.nix

    -
    +
    +

    generated/system/core/fonts.nix

    +

    This file installs and configures eww

    @@ -1623,9 +1645,9 @@ This file installs and configures eww
    -
    -

    generated/system/core/eww.nix

    -
    +
    +

    generated/system/core/eww.nix

    +

    This file installs and configures eww

    @@ -1669,9 +1691,9 @@ in
    -
    -

    generated/system/core/waybar.nix

    -
    +
    +

    generated/system/core/waybar.nix

    +

    This file installs and configures waybar

    @@ -1711,9 +1733,9 @@ in
    -
    -

    generated/system/core/login-tuigreeter.nix

    -
    +
    +

    generated/system/core/login-tuigreeter.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

    @@ -1736,9 +1758,9 @@ settings = {
    -
    -

    generated/system/core/wayland.nix

    -
    +
    +

    generated/system/core/wayland.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

    @@ -1759,9 +1781,9 @@ This is top file of this level which contains just an import statement for all r
    -
    -

    generated/system/development/top.nix

    -
    +
    +

    generated/system/development/top.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

    @@ -1781,9 +1803,9 @@ This is top file of this level which contains just an import statement for all r
    -
    -

    generated/system/system_management/top.nix

    -
    +
    +

    generated/system/system_management/top.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

    @@ -1811,9 +1833,9 @@ This is top file of this level which contains just an import statement for all r
    -
    -

    generated/hyprland/animations_effects/top.nix

    -
    +
    +

    generated/hyprland/animations_effects/top.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

    @@ -1829,9 +1851,9 @@ This is top file of this level which contains just an import statement for all r
    -
    -

    generated/hyprland/decorations/top.nix

    -
    +
    +

    generated/hyprland/decorations/top.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

    @@ -1847,9 +1869,9 @@ This is top file of this level which contains just an import statement for all r
    -
    -

    generated/hyprland/keyboard_binds/top.nix

    -
    +
    +

    generated/hyprland/keyboard_binds/top.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

    @@ -1878,9 +1900,9 @@ in
    -
    -

    generated/hyprland/notifications/top.nix

    -
    +
    +

    generated/hyprland/notifications/top.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

    @@ -1896,9 +1918,9 @@ This is top file of this level which contains just an import statement for all r
    -
    -

    generated/hyprland/statusbar_tray/top.nix

    -
    +
    +

    generated/hyprland/statusbar_tray/top.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

    @@ -1914,9 +1936,9 @@ This is top file of this level which contains just an import statement for all r
    -
    -

    generated/hyprland/task_launcher/top.nix

    -
    +
    +

    generated/hyprland/task_launcher/top.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

    @@ -1932,9 +1954,9 @@ This is top file of this level which contains just an import statement for all r
    -
    -

    generated/system/task_launcher/wofi.nix

    -
    +
    +

    generated/system/task_launcher/wofi.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

    @@ -1979,9 +2001,9 @@ in
    -
    -

    generated/hyprland/task_window_workspace_switcher/top.nix

    -
    +
    +

    generated/hyprland/task_window_workspace_switcher/top.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

    @@ -1997,9 +2019,9 @@ This is top file of this level which contains just an import statement for all r
    -
    -

    generated/hyprland/window_rules/top.nix

    -
    +
    +

    generated/hyprland/window_rules/top.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

    @@ -2015,9 +2037,9 @@ This is top file of this level which contains just an import statement for all r
    -
    -

    generated/mangowc/animations_effects/top.nix

    -
    +
    +

    generated/mangowc/animations_effects/top.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

    @@ -2033,9 +2055,9 @@ This is top file of this level which contains just an import statement for all r
    -
    -

    generated/mangowc/decorations/top.nix

    -
    +
    +

    generated/mangowc/decorations/top.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

    @@ -2051,9 +2073,9 @@ This is top file of this level which contains just an import statement for all r
    -
    -

    generated/mangowc/keyboard_binds/top.nix

    -
    +
    +

    generated/mangowc/keyboard_binds/top.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

    @@ -2063,9 +2085,9 @@ This is top file of this level which contains just an import statement for all r
    -
    -

    generated/mangowc/notifications/top.nix

    -
    +
    +

    generated/mangowc/notifications/top.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

    @@ -2081,9 +2103,9 @@ This is top file of this level which contains just an import statement for all r
    -
    -

    generated/mangowc/statusbar_tray/top.nix

    -
    +
    +

    generated/mangowc/statusbar_tray/top.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

    @@ -2099,9 +2121,9 @@ This is top file of this level which contains just an import statement for all r
    -
    -

    generated/mangowc/task_launcher/top.nix

    -
    +
    +

    generated/mangowc/task_launcher/top.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

    @@ -2117,9 +2139,9 @@ This is top file of this level which contains just an import statement for all r
    -
    -

    generated/mangowc/task_window_workspace_switcher/top.nix

    -
    +
    +

    generated/mangowc/task_window_workspace_switcher/top.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

    @@ -2135,9 +2157,9 @@ This is top file of this level which contains just an import statement for all r
    -
    -

    generated/mangowc/window_rules/top.nix

    -
    +
    +

    generated/mangowc/window_rules/top.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

    @@ -2153,9 +2175,9 @@ This is top file of this level which contains just an import statement for all r
    -
    -

    generated/system/applications/accessibility/top.nix

    -
    +
    +

    generated/system/applications/accessibility/top.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

    @@ -2171,9 +2193,9 @@ This is top file of this level which contains just an import statement for all r
    -
    -

    generated/system/applications/file_management/top.nix

    -
    +
    +

    generated/system/applications/file_management/top.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

    @@ -2189,9 +2211,9 @@ This is top file of this level which contains just an import statement for all r
    -
    -

    generated/system/applications/gaming/top.nix

    -
    +
    +

    generated/system/applications/gaming/top.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

    @@ -2207,9 +2229,9 @@ This is top file of this level which contains just an import statement for all r
    -
    -

    generated/system/applications/media_playback_editing/top.nix

    -
    +
    +

    generated/system/applications/media_playback_editing/top.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

    @@ -2225,9 +2247,9 @@ This is top file of this level which contains just an import statement for all r
    -
    -

    generated/system/applications/office_productivity/top.nix

    -
    +
    +

    generated/system/applications/office_productivity/top.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

    @@ -2243,9 +2265,9 @@ This is top file of this level which contains just an import statement for all r
    -
    -

    generated/system/applications/terminal_shell/top.nix

    -
    +
    +

    generated/system/applications/terminal_shell/top.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

    @@ -2263,9 +2285,9 @@ This is top file of this level which contains just an import statement for all r
    -
    -

    generated/system/applications/terminal_shell/kitty.nix

    -
    +
    +

    generated/system/applications/terminal_shell/kitty.nix

    +

    This file sets up Kitty terminal

    @@ -2293,9 +2315,9 @@ in
    -
    -

    generated/system/applications/terminal_shell/starship.nix

    -
    +
    +

    generated/system/applications/terminal_shell/starship.nix

    +

    This file sets up starship prompt

    @@ -2320,9 +2342,9 @@ in
    -
    -

    generated/system/applications/terminal_shell/zsh.nix

    -
    +
    +

    generated/system/applications/terminal_shell/zsh.nix

    +

    This sets up the zsh terminal

    @@ -2427,9 +2449,9 @@ This sets up the zsh terminal
    -
    -

    generated/system/development/databases/top.nix

    -
    +
    +

    generated/system/development/databases/top.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

    @@ -2445,9 +2467,9 @@ This is top file of this level which contains just an import statement for all r
    -
    -

    generated/system/development/devops_ci_cd/top.nix

    -
    +
    +

    generated/system/development/devops_ci_cd/top.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

    @@ -2463,9 +2485,9 @@ This is top file of this level which contains just an import statement for all r
    -
    -

    generated/system/development/programming_languages/top.nix

    -
    +
    +

    generated/system/development/programming_languages/top.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

    @@ -2481,9 +2503,9 @@ This is top file of this level which contains just an import statement for all r
    -
    -

    generated/system/development/virtualization/top.nix

    -
    +
    +

    generated/system/development/virtualization/top.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

    @@ -2499,9 +2521,9 @@ This is top file of this level which contains just an import statement for all r
    -
    -

    generated/system/development/web_development/top.nix

    -
    +
    +

    generated/system/development/web_development/top.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

    @@ -2517,9 +2539,9 @@ This is top file of this level which contains just an import statement for all r
    -
    -

    generated/system/system_management/audio/top.nix

    -
    +
    +

    generated/system/system_management/audio/top.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

    @@ -2535,9 +2557,9 @@ This is top file of this level which contains just an import statement for all r
    -
    -

    generated/system/system_management/backups/top.nix

    -
    +
    +

    generated/system/system_management/backups/top.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

    @@ -2553,9 +2575,9 @@ This is top file of this level which contains just an import statement for all r
    -
    -

    generated/system/system_management/bluetooth/top.nix

    -
    +
    +

    generated/system/system_management/bluetooth/top.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

    @@ -2571,9 +2593,9 @@ This is top file of this level which contains just an import statement for all r
    -
    -

    generated/system/system_management/disk_management/top.nix

    -
    +
    +

    generated/system/system_management/disk_management/top.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

    @@ -2589,9 +2611,9 @@ This is top file of this level which contains just an import statement for all r
    -
    -

    generated/system/system_management/hardware_sensors/top.nix

    -
    +
    +

    generated/system/system_management/hardware_sensors/top.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

    @@ -2607,9 +2629,9 @@ This is top file of this level which contains just an import statement for all r
    -
    -

    generated/system/system_management/logging_monitoring/top.nix

    -
    +
    +

    generated/system/system_management/logging_monitoring/top.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

    @@ -2625,9 +2647,9 @@ This is top file of this level which contains just an import statement for all r
    -
    -

    generated/system/system_management/login_manager/top.nix

    -
    +
    +

    generated/system/system_management/login_manager/top.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

    @@ -2643,9 +2665,9 @@ This is top file of this level which contains just an import statement for all r
    -
    -

    generated/system/system_management/monitor_setup/top.nix

    -
    +
    +

    generated/system/system_management/monitor_setup/top.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

    @@ -2661,9 +2683,9 @@ This is top file of this level which contains just an import statement for all r
    -
    -

    generated/system/system_management/networking/top.nix

    -
    +
    +

    generated/system/system_management/networking/top.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

    @@ -2679,9 +2701,9 @@ This is top file of this level which contains just an import statement for all r
    -
    -

    generated/system/system_management/power_management/top.nix

    -
    +
    +

    generated/system/system_management/power_management/top.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

    @@ -2697,9 +2719,9 @@ This is top file of this level which contains just an import statement for all r
    -
    -

    generated/system/system_management/printers_scanners/top.nix

    -
    +
    +

    generated/system/system_management/printers_scanners/top.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

    @@ -2715,9 +2737,9 @@ This is top file of this level which contains just an import statement for all r
    -
    -

    generated/system/system_management/security/top.nix

    -
    +
    +

    generated/system/system_management/security/top.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

    @@ -2733,9 +2755,9 @@ This is top file of this level which contains just an import statement for all r
    -
    -

    generated/system/system_management/system_updates/top.nix

    -
    +
    +

    generated/system/system_management/system_updates/top.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

    @@ -2755,7 +2777,7 @@ This is top file of this level which contains just an import statement for all r

    Author: Henro Veijer

    -

    Created: 2026-03-13 vr 23:51

    +

    Created: 2026-03-14 za 12:29

    Validate

    diff --git a/Droidnix/README.org b/Droidnix/README.org index 6aafa0c11..91d8ea87f 100644 --- a/Droidnix/README.org +++ b/Droidnix/README.org @@ -465,6 +465,10 @@ in git-extras ]; }; + + # Ensure the user is in the necessary groups + users.users.${config.users.users.${user.username}.username} = { + extraGroups = [ "networkmanager" ]; } #+END_SRC @@ -615,13 +619,36 @@ This sets the dbus implementation ** =assets/flake/machines/traveldroid/networking.nix= This sets the dbus implementation #+BEGIN_SRC nix :tangle assets/flake/machines/traveldroid/networking.nix :noweb tangle :mkdirp yes :eval never-html -{ config, pkgs, ... }: +{ + config, + pkgs, + lib, + ... +}: { - # Enable NetworkManager - services.NetworkManager = { - enable = true; - dhcpcd.enable = false; # Ensure dhcpcd is disabled to avoid conflicts + networking = { + useDHCP = lib.mkDefault true; + networkmanager.enable = true; + networkmanager.wifi.backend = "iwd"; + wireless.iwd.enable = true; + wireless.userControlled.enable = true; + firewall = { + enable = true; + # KDE Connect: discovery + encrypted connections + allowedTCPPortRanges = [ + { + from = 1714; + to = 1764; + } + ]; + allowedUDPPortRanges = [ + { + from = 1714; + to = 1764; + } + ]; + }; }; # Install NetworkManager and wofi @@ -629,16 +656,11 @@ This sets the dbus implementation networkmanager wofi ]; - - # Ensure the user is in the necessary groups - users.users.${config.users.users."henrov".username} = { - extraGroups = [ "networkmanager" ]; - }; } #+END_SRC ** =assets/flake/machines/traveldroid/session.nix= -This sets the dbus implementation +This sets the session variables #+BEGIN_SRC nix :tangle assets/flake/machines/traveldroid/session.nix :noweb tangle :mkdirp yes :eval never-html { config, pkgs, user, ... }: { @@ -762,7 +784,7 @@ The ./generated/top.nix file acts as an anchor or entry point for the entire cha let hyprlandConfigDir = "${config.home-manager.users.${user.username}.xdg.configHome}/hypr"; - # Dynamically read all files in assets/hyprland/conf/ + # Dynamically read all files in assets/hyprland/conf/hypr hyprlandConfs = lib.genAttrs (builtins.attrNames (builtins.readDir "${flakeRoot}/assets/hyprland/conf/hypr")) (name: { diff --git a/Droidnix/assets/flake/machines/traveldroid/networking.nix b/Droidnix/assets/flake/machines/traveldroid/networking.nix index cdb36ae60..95d838197 100644 --- a/Droidnix/assets/flake/machines/traveldroid/networking.nix +++ b/Droidnix/assets/flake/machines/traveldroid/networking.nix @@ -35,11 +35,4 @@ networkmanager wofi ]; - - /* - # Ensure the user is in the necessary groups - users.users.${config.users.users."henrov".username} = { - extraGroups = [ "networkmanager" ]; - }; - */ } diff --git a/Droidnix/generated.12/hyprland/animations_effects/top.nix b/Droidnix/generated.12/hyprland/animations_effects/top.nix deleted file mode 100644 index c7da173ce..000000000 --- a/Droidnix/generated.12/hyprland/animations_effects/top.nix +++ /dev/null @@ -1,7 +0,0 @@ -{ config, pkgs, lib, user, inputs, flakeRoot,... }: -{ - imports = [ - # No subfolders to import - ]; - # .. put any code here -} diff --git a/Droidnix/generated.12/hyprland/decorations/top.nix b/Droidnix/generated.12/hyprland/decorations/top.nix deleted file mode 100644 index c7da173ce..000000000 --- a/Droidnix/generated.12/hyprland/decorations/top.nix +++ /dev/null @@ -1,7 +0,0 @@ -{ config, pkgs, lib, user, inputs, flakeRoot,... }: -{ - imports = [ - # No subfolders to import - ]; - # .. put any code here -} diff --git a/Droidnix/generated.12/hyprland/hyprland.nix b/Droidnix/generated.12/hyprland/hyprland.nix deleted file mode 100644 index a836e3c47..000000000 --- a/Droidnix/generated.12/hyprland/hyprland.nix +++ /dev/null @@ -1,42 +0,0 @@ -{ - config, - pkgs, - lib, - user, - flakeRoot, - ... -}: -let - hyprlandConfigDir = "${config.home-manager.users.${user.username}.xdg.configHome}/hypr"; - # Dynamically read all files in assets/hyprland/conf/ - hyprlandConfs = - lib.genAttrs (builtins.attrNames (builtins.readDir "${flakeRoot}/assets/hyprland/conf")) - (name: { - text = builtins.readFile "${flakeRoot}/assets/hyprland/conf/${name}"; - }); -in -{ - # NixOS: Enable Hyprland (optional) - programs.hyprland = { - enable = true; - }; - - # Home Manager: Hyprland-specific configurations - home-manager.users.${user.username} = { - # Use config.home-manager.users.${user.username} instead of userConfig - home.stateVersion = config.home-manager.users.${user.username}.stateVersion or "23.11"; # Default fallback - home.username = user.username; # Use the 'user' argument - home.homeDirectory = - config.home-manager.users.${user.username}.homeDirectory or "/home/${user.username}"; - - wayland.windowManager.hyprland = { - enable = true; - }; - - # Merge dynamic Hyprland configs with existing xdg.configFile - xdg.configFile = { - # Your existing manual configs (if any) - } - // hyprlandConfs; - }; -} diff --git a/Droidnix/generated.12/hyprland/keyboard_binds/top.nix b/Droidnix/generated.12/hyprland/keyboard_binds/top.nix deleted file mode 100644 index ac1af118b..000000000 --- a/Droidnix/generated.12/hyprland/keyboard_binds/top.nix +++ /dev/null @@ -1,20 +0,0 @@ -{ - config, - pkgs, - lib, - user, - inputs, - flakeRoot, - ... -}: -let - bindingsContent = builtins.readFile (flakeRoot + "/assets/hyprland/conf/bindings.conf"); -in -{ - home-manager.users.${user.username} = { - wayland.windowManager.hyprland = { - enable = true; - extraConfig = bindingsContent; - }; - }; -} diff --git a/Droidnix/generated.12/hyprland/notifications/top.nix b/Droidnix/generated.12/hyprland/notifications/top.nix deleted file mode 100644 index c7da173ce..000000000 --- a/Droidnix/generated.12/hyprland/notifications/top.nix +++ /dev/null @@ -1,7 +0,0 @@ -{ config, pkgs, lib, user, inputs, flakeRoot,... }: -{ - imports = [ - # No subfolders to import - ]; - # .. put any code here -} diff --git a/Droidnix/generated.12/hyprland/statusbar_tray/top.nix b/Droidnix/generated.12/hyprland/statusbar_tray/top.nix deleted file mode 100644 index c7da173ce..000000000 --- a/Droidnix/generated.12/hyprland/statusbar_tray/top.nix +++ /dev/null @@ -1,7 +0,0 @@ -{ config, pkgs, lib, user, inputs, flakeRoot,... }: -{ - imports = [ - # No subfolders to import - ]; - # .. put any code here -} diff --git a/Droidnix/generated.12/hyprland/task_launcher/top.nix b/Droidnix/generated.12/hyprland/task_launcher/top.nix deleted file mode 100644 index f60e4fb46..000000000 --- a/Droidnix/generated.12/hyprland/task_launcher/top.nix +++ /dev/null @@ -1,7 +0,0 @@ -{ config, pkgs, lib, user, inputs, flakeRoot,... }: -{ - imports = [ - ./wofi.nix - ]; - # .. put any code here -} diff --git a/Droidnix/generated.12/hyprland/task_launcher/wofi.nix b/Droidnix/generated.12/hyprland/task_launcher/wofi.nix deleted file mode 100644 index 3f6c36d41..000000000 --- a/Droidnix/generated.12/hyprland/task_launcher/wofi.nix +++ /dev/null @@ -1,35 +0,0 @@ -{ config, pkgs, lib, user, flakeRoot, ... }: -let - xdgDataHome = config.home-manager.users.${user.username}.xdg.dataHome; -in -{ - # NixOS: Install Wofi system-wide (optional) - environment.systemPackages = with pkgs; [ wofi ]; - - # Home Manager: User-specific Wofi config - home-manager.users.${user.username} = { - # Install Wofi for the user - home.packages = with pkgs; [ wofi ]; - - # Wofi configuration - xdg.configFile."wofi/config".text = '' - dark - width=500 - height=800 - lines=10 - columns=1 - cache_dir=${xdgDataHome}/wofi - allow_images=true - allow_markup=true - show_drun=true - ''; - - # Catppuccin Mocha theme for Wofi - xdg.configFile."wofi/style.css".text = builtins.readFile "${pkgs.fetchFromGitHub { - owner = "catppuccin"; - repo = "wofi"; - rev = "a0c34a8e9d3a1f71b1b2a8e3b5b8e3e8b1b3b8e3"; # Replace with the correct SHA256 hash - sha256 = "0000000000000000000000000000000000000000000000000000"; # Replace with the correct SHA256 hash - }}/style-mocha.css"; - }; -} diff --git a/Droidnix/generated.12/hyprland/task_window_workspace_switcher/top.nix b/Droidnix/generated.12/hyprland/task_window_workspace_switcher/top.nix deleted file mode 100644 index c7da173ce..000000000 --- a/Droidnix/generated.12/hyprland/task_window_workspace_switcher/top.nix +++ /dev/null @@ -1,7 +0,0 @@ -{ config, pkgs, lib, user, inputs, flakeRoot,... }: -{ - imports = [ - # No subfolders to import - ]; - # .. put any code here -} diff --git a/Droidnix/generated.12/hyprland/top.nix b/Droidnix/generated.12/hyprland/top.nix deleted file mode 100644 index ad0d96f3f..000000000 --- a/Droidnix/generated.12/hyprland/top.nix +++ /dev/null @@ -1,14 +0,0 @@ -{ config, pkgs, lib, user, inputs, flakeRoot,... }: -{ - imports = [ - ./hyprland.nix - ./animations_effects/top.nix - ./decorations/top.nix - ./keyboard_binds/top.nix - ./notifications/top.nix - ./statusbar_tray/top.nix - ./task_launcher/top.nix - ./task_window_workspace_switcher/top.nix - ./window_rules/top.nix - ]; -} diff --git a/Droidnix/generated.12/hyprland/window_rules/top.nix b/Droidnix/generated.12/hyprland/window_rules/top.nix deleted file mode 100644 index c7da173ce..000000000 --- a/Droidnix/generated.12/hyprland/window_rules/top.nix +++ /dev/null @@ -1,7 +0,0 @@ -{ config, pkgs, lib, user, inputs, flakeRoot,... }: -{ - imports = [ - # No subfolders to import - ]; - # .. put any code here -} diff --git a/Droidnix/generated.12/mangowc/animations_effects/top.nix b/Droidnix/generated.12/mangowc/animations_effects/top.nix deleted file mode 100644 index c7da173ce..000000000 --- a/Droidnix/generated.12/mangowc/animations_effects/top.nix +++ /dev/null @@ -1,7 +0,0 @@ -{ config, pkgs, lib, user, inputs, flakeRoot,... }: -{ - imports = [ - # No subfolders to import - ]; - # .. put any code here -} diff --git a/Droidnix/generated.12/mangowc/decorations/top.nix b/Droidnix/generated.12/mangowc/decorations/top.nix deleted file mode 100644 index c7da173ce..000000000 --- a/Droidnix/generated.12/mangowc/decorations/top.nix +++ /dev/null @@ -1,7 +0,0 @@ -{ config, pkgs, lib, user, inputs, flakeRoot,... }: -{ - imports = [ - # No subfolders to import - ]; - # .. put any code here -} diff --git a/Droidnix/generated.12/mangowc/keyboard_binds/top.nix b/Droidnix/generated.12/mangowc/keyboard_binds/top.nix deleted file mode 100644 index 4e88b2781..000000000 --- a/Droidnix/generated.12/mangowc/keyboard_binds/top.nix +++ /dev/null @@ -1,24 +0,0 @@ -{ - config, - pkgs, - lib, - user, - inputs, - flakeRoot, - ... -}: -let - bindingsContent = builtins.readFile (flakeRoot + "/assets/hyprland/conf/bindings.conf"); - userConfig = import (flakeRoot + "/assets/flake/users/henrov.nix"); -in -{ - home-manager.users.${user.username} = { - home.stateVersion = userConfig.stateVersion; - home.username = userConfig.username; - home.homeDirectory = userConfig.homeDirectory; - wayland.windowManager.hyprland = { - enable = true; - extraConfig = bindingsContent; - }; - }; -} diff --git a/Droidnix/generated.12/mangowc/notifications/top.nix b/Droidnix/generated.12/mangowc/notifications/top.nix deleted file mode 100644 index c7da173ce..000000000 --- a/Droidnix/generated.12/mangowc/notifications/top.nix +++ /dev/null @@ -1,7 +0,0 @@ -{ config, pkgs, lib, user, inputs, flakeRoot,... }: -{ - imports = [ - # No subfolders to import - ]; - # .. put any code here -} diff --git a/Droidnix/generated.12/mangowc/statusbar_tray/top.nix b/Droidnix/generated.12/mangowc/statusbar_tray/top.nix deleted file mode 100644 index c7da173ce..000000000 --- a/Droidnix/generated.12/mangowc/statusbar_tray/top.nix +++ /dev/null @@ -1,7 +0,0 @@ -{ config, pkgs, lib, user, inputs, flakeRoot,... }: -{ - imports = [ - # No subfolders to import - ]; - # .. put any code here -} diff --git a/Droidnix/generated.12/mangowc/task_launcher/top.nix b/Droidnix/generated.12/mangowc/task_launcher/top.nix deleted file mode 100644 index c7da173ce..000000000 --- a/Droidnix/generated.12/mangowc/task_launcher/top.nix +++ /dev/null @@ -1,7 +0,0 @@ -{ config, pkgs, lib, user, inputs, flakeRoot,... }: -{ - imports = [ - # No subfolders to import - ]; - # .. put any code here -} diff --git a/Droidnix/generated.12/mangowc/task_launcher/wofi.nix b/Droidnix/generated.12/mangowc/task_launcher/wofi.nix deleted file mode 100644 index c957c7008..000000000 --- a/Droidnix/generated.12/mangowc/task_launcher/wofi.nix +++ /dev/null @@ -1,4 +0,0 @@ -{ config, pkgs, lib, user, inputs, flakeRoot,... }: -{ - # .. put any code here -} diff --git a/Droidnix/generated.12/mangowc/task_window_workspace_switcher/top.nix b/Droidnix/generated.12/mangowc/task_window_workspace_switcher/top.nix deleted file mode 100644 index c7da173ce..000000000 --- a/Droidnix/generated.12/mangowc/task_window_workspace_switcher/top.nix +++ /dev/null @@ -1,7 +0,0 @@ -{ config, pkgs, lib, user, inputs, flakeRoot,... }: -{ - imports = [ - # No subfolders to import - ]; - # .. put any code here -} diff --git a/Droidnix/generated.12/mangowc/top.nix b/Droidnix/generated.12/mangowc/top.nix deleted file mode 100644 index 13b2ff435..000000000 --- a/Droidnix/generated.12/mangowc/top.nix +++ /dev/null @@ -1,14 +0,0 @@ -{ config, pkgs, lib, user, inputs, flakeRoot,... }: -{ - imports = [ - ./animations_effects/top.nix - ./decorations/top.nix - ./keyboard_binds/top.nix - ./notifications/top.nix - ./statusbar_tray/top.nix - ./task_launcher/top.nix - ./task_window_workspace_switcher/top.nix - ./window_rules/top.nix - ]; - # .. put any code here -} diff --git a/Droidnix/generated.12/mangowc/window_rules/top.nix b/Droidnix/generated.12/mangowc/window_rules/top.nix deleted file mode 100644 index c7da173ce..000000000 --- a/Droidnix/generated.12/mangowc/window_rules/top.nix +++ /dev/null @@ -1,7 +0,0 @@ -{ config, pkgs, lib, user, inputs, flakeRoot,... }: -{ - imports = [ - # No subfolders to import - ]; - # .. put any code here -} diff --git a/Droidnix/generated.12/system/applications/accessibility/top.nix b/Droidnix/generated.12/system/applications/accessibility/top.nix deleted file mode 100644 index c7da173ce..000000000 --- a/Droidnix/generated.12/system/applications/accessibility/top.nix +++ /dev/null @@ -1,7 +0,0 @@ -{ config, pkgs, lib, user, inputs, flakeRoot,... }: -{ - imports = [ - # No subfolders to import - ]; - # .. put any code here -} diff --git a/Droidnix/generated.12/system/applications/file_management/top.nix b/Droidnix/generated.12/system/applications/file_management/top.nix deleted file mode 100644 index c7da173ce..000000000 --- a/Droidnix/generated.12/system/applications/file_management/top.nix +++ /dev/null @@ -1,7 +0,0 @@ -{ config, pkgs, lib, user, inputs, flakeRoot,... }: -{ - imports = [ - # No subfolders to import - ]; - # .. put any code here -} diff --git a/Droidnix/generated.12/system/applications/gaming/top.nix b/Droidnix/generated.12/system/applications/gaming/top.nix deleted file mode 100644 index c7da173ce..000000000 --- a/Droidnix/generated.12/system/applications/gaming/top.nix +++ /dev/null @@ -1,7 +0,0 @@ -{ config, pkgs, lib, user, inputs, flakeRoot,... }: -{ - imports = [ - # No subfolders to import - ]; - # .. put any code here -} diff --git a/Droidnix/generated.12/system/applications/media_playback_editing/top.nix b/Droidnix/generated.12/system/applications/media_playback_editing/top.nix deleted file mode 100644 index c7da173ce..000000000 --- a/Droidnix/generated.12/system/applications/media_playback_editing/top.nix +++ /dev/null @@ -1,7 +0,0 @@ -{ config, pkgs, lib, user, inputs, flakeRoot,... }: -{ - imports = [ - # No subfolders to import - ]; - # .. put any code here -} diff --git a/Droidnix/generated.12/system/applications/office_productivity/top.nix b/Droidnix/generated.12/system/applications/office_productivity/top.nix deleted file mode 100644 index c7da173ce..000000000 --- a/Droidnix/generated.12/system/applications/office_productivity/top.nix +++ /dev/null @@ -1,7 +0,0 @@ -{ config, pkgs, lib, user, inputs, flakeRoot,... }: -{ - imports = [ - # No subfolders to import - ]; - # .. put any code here -} diff --git a/Droidnix/generated.12/system/applications/terminal_shell/kitty.nix b/Droidnix/generated.12/system/applications/terminal_shell/kitty.nix deleted file mode 100644 index 6e66131e7..000000000 --- a/Droidnix/generated.12/system/applications/terminal_shell/kitty.nix +++ /dev/null @@ -1,59 +0,0 @@ -{ config, pkgs, lib, user, ... }: -let - kittyConfigDir = "${config.home-manager.users.${user.username}.xdg.configHome}/kitty"; -in -{ - home-manager.users.${user.username} = { - programs.kitty = { - enable = true; - settings = { - font_family = "JetBrainsMono Nerd Font"; - font_size = 12.0; - cursor = "Beam"; - cursor_blink_interval = -1; - shell = "${pkgs.zsh}/bin/zsh"; - }; - }; - - # Catppuccin Mocha theme for Kitty (embedded) - xdg.configFile."kitty/kitty.conf".text = lib.concatStringsSep "\n" [ - "# Catppuccin Mocha theme" - "background #1e1e2e" - "foreground #cdd6f4" - "selection_background #f5e0dc" - "selection_foreground #1e1e2e" - "url_color #f5e0dc" - "cursor #f5e0dc" - "cursor_text_color #1e1e2e" - - "color0 #45475a" - "color8 #585b70" - - "color1 #f38ba8" - "color9 #f38ba8" - - "color2 #a6e3a1" - "color10 #a6e3a1" - - "color3 #f9e2af" - "color11 #f9e2af" - - "color4 #89b4fa" - "color12 #89b4fa" - - "color5 #f5c2e7" - "color13 #f5c2e7" - - "color6 #94e2d5" - "color14 #94e2d5" - - "color7 #bac2de" - "color15 #bac2de" - - "# Window settings" - "background_opacity 0.9" - "font_size 12.0" - "cursor_shape Beam" - ]; - }; -} diff --git a/Droidnix/generated.12/system/applications/terminal_shell/starship.nix b/Droidnix/generated.12/system/applications/terminal_shell/starship.nix deleted file mode 100644 index d6b4be8c3..000000000 --- a/Droidnix/generated.12/system/applications/terminal_shell/starship.nix +++ /dev/null @@ -1,27 +0,0 @@ -{ config, pkgs, lib, user, ... }: -{ - home-manager.users.${user.username} = { - programs.starship = { - enable = true; - }; - - # Catppuccin Mocha theme for Starship - xdg.configFile."starship.toml".text = '' - format = "$all" - - [character] - success_symbol = "[❯](bold green)" - error_symbol = "[❯](bold red)" - - [directory] - style = "bold lavender" - - [git_branch] - symbol = " " - style = "bold maroon" - - [package] - disabled = true - ''; - }; -} diff --git a/Droidnix/generated.12/system/applications/terminal_shell/top.nix b/Droidnix/generated.12/system/applications/terminal_shell/top.nix deleted file mode 100644 index d24f14948..000000000 --- a/Droidnix/generated.12/system/applications/terminal_shell/top.nix +++ /dev/null @@ -1,9 +0,0 @@ -{ config, pkgs, lib, user, inputs, flakeRoot,... }: -{ - imports = [ - ./kitty.nix - ./starship.nix - ./zsh.nix - ]; - # .. put any code here -} diff --git a/Droidnix/generated.12/system/applications/terminal_shell/zsh.nix b/Droidnix/generated.12/system/applications/terminal_shell/zsh.nix deleted file mode 100644 index 968bac466..000000000 --- a/Droidnix/generated.12/system/applications/terminal_shell/zsh.nix +++ /dev/null @@ -1,61 +0,0 @@ -{ config, pkgs, lib, user, ... }: -let - zshConfigDir = "${config.home-manager.users.${user.username}.xdg.configHome}/zsh"; -in -{ - home-manager.users.${user.username} = { - programs.zsh = { - enable = true; - enableCompletion = true; - autosuggestion.enable = true; - syntaxHighlighting.enable = true; - oh-my-zsh = { - enable = true; - theme = "agnoster"; - plugins = [ - "git" - "zsh-autosuggestions" - "zsh-syntax-highlighting" - "docker" - "kubectl" - "history" - "command-not-found" - "extract" - ]; - }; - shellAliases = { - ls = "exa --icons -a --group-directories-first"; - ll = "exa --icons -la --group-directories-first"; - }; - }; - - # Consolidated .zshrc - xdg.configFile."zsh/.zshrc".text = lib.concatStringsSep "\n" [ - "# Oh-My-Zsh" - "export ZSH=\"${zshConfigDir}\"" - "source \"${pkgs.zsh}/share/zsh/functions/Newuser/zsh-newuser-install\"" - "source \"${zshConfigDir}/oh-my-zsh.sh\"" - "" - "# Zsh options" - "setopt AUTO_CD" - "setopt CORRECT" - "setopt INTERACTIVE_COMMENTS" - "" - "# Starship" - "eval \"$(starship init zsh)\"" - "" - "# fzf" - "source \"${pkgs.fzf}/shell/key-bindings.zsh\"" - "source \"${pkgs.fzf}/shell/completion.zsh\"" - "" - "# User customizations" - "source \"${zshConfigDir}/custom.zsh\" 2>/dev/null" - ]; - - # User customizations - xdg.configFile."zsh/custom.zsh".text = '' - export EDITOR="nvim" - export PATH="$HOME/.local/bin:$PATH" - ''; - }; -} diff --git a/Droidnix/generated.12/system/applications/top.nix b/Droidnix/generated.12/system/applications/top.nix deleted file mode 100644 index eb7db4f5e..000000000 --- a/Droidnix/generated.12/system/applications/top.nix +++ /dev/null @@ -1,12 +0,0 @@ -{ config, pkgs, lib, user, inputs, flakeRoot,... }: -{ - imports = [ - ./accessibility/top.nix - ./file_management/top.nix - ./gaming/top.nix - ./media_playback_editing/top.nix - ./office_productivity/top.nix - ./terminal_shell/top.nix - ]; - # .. put any code here -} diff --git a/Droidnix/generated.12/system/core/login-tuigreeter.nix b/Droidnix/generated.12/system/core/login-tuigreeter.nix deleted file mode 100644 index f2b8d6ff6..000000000 --- a/Droidnix/generated.12/system/core/login-tuigreeter.nix +++ /dev/null @@ -1,14 +0,0 @@ -{ pkgs, user, ... } : -{ -environment.systemPackages = with pkgs; [ -tuigreet -]; -services.greetd = { -enable = true; -settings = { - default_session = { - command = pkgs.lib.mkForce "${pkgs.tuigreet}/bin/tuigreet --remember --time --time-format '%I:%M %p | %a • %h | %F'"; - }; -}; -}; -} diff --git a/Droidnix/generated.12/system/core/top.nix b/Droidnix/generated.12/system/core/top.nix deleted file mode 100644 index cbd37c08c..000000000 --- a/Droidnix/generated.12/system/core/top.nix +++ /dev/null @@ -1,9 +0,0 @@ -{ config, pkgs, lib, user, inputs, flakeRoot,... }: -{ - imports = [ - ./wayland.nix - ./login-tuigreeter.nix - # ./login-lightdm.nix - ]; - # .. put any code here -} diff --git a/Droidnix/generated.12/system/core/wayland.nix b/Droidnix/generated.12/system/core/wayland.nix deleted file mode 100644 index f81f3aa13..000000000 --- a/Droidnix/generated.12/system/core/wayland.nix +++ /dev/null @@ -1,35 +0,0 @@ -{ config, pkgs, lib, user, ... }: -{ - # Enable essential services for a Wayland session - services.dbus.enable = true; - services.pipewire = { - enable = true; - alsa.enable = true; - pulse.enable = true; - wireplumber.enable = true; - }; - - # XDG Desktop Portal settings for better application integration - xdg.portal = { - enable = true; - config.common.default = [ "hyprland" "gtk" ]; - }; - - # Environment variables for a Wayland session - environment.sessionVariables = { - XDG_SESSION_TYPE = "wayland"; - XDG_CURRENT_DESKTOP = "Hyprland"; - XCURSOR_SIZE = "24"; - }; - - # Home Manager Wayland configurations - home-manager.users.${user.username} = { - xdg.portal = { - enable = true; - extraPortals = with pkgs; [ xdg-desktop-portal-hyprland ]; - config.hyprland = { - "org.freedesktop.impl.portal.Screencast" = [ "hyprland" ]; - }; - }; - }; -} diff --git a/Droidnix/generated.12/system/development/databases/top.nix b/Droidnix/generated.12/system/development/databases/top.nix deleted file mode 100644 index c7da173ce..000000000 --- a/Droidnix/generated.12/system/development/databases/top.nix +++ /dev/null @@ -1,7 +0,0 @@ -{ config, pkgs, lib, user, inputs, flakeRoot,... }: -{ - imports = [ - # No subfolders to import - ]; - # .. put any code here -} diff --git a/Droidnix/generated.12/system/development/devops_ci_cd/top.nix b/Droidnix/generated.12/system/development/devops_ci_cd/top.nix deleted file mode 100644 index c7da173ce..000000000 --- a/Droidnix/generated.12/system/development/devops_ci_cd/top.nix +++ /dev/null @@ -1,7 +0,0 @@ -{ config, pkgs, lib, user, inputs, flakeRoot,... }: -{ - imports = [ - # No subfolders to import - ]; - # .. put any code here -} diff --git a/Droidnix/generated.12/system/development/programming_languages/top.nix b/Droidnix/generated.12/system/development/programming_languages/top.nix deleted file mode 100644 index c7da173ce..000000000 --- a/Droidnix/generated.12/system/development/programming_languages/top.nix +++ /dev/null @@ -1,7 +0,0 @@ -{ config, pkgs, lib, user, inputs, flakeRoot,... }: -{ - imports = [ - # No subfolders to import - ]; - # .. put any code here -} diff --git a/Droidnix/generated.12/system/development/top.nix b/Droidnix/generated.12/system/development/top.nix deleted file mode 100644 index 877d65e34..000000000 --- a/Droidnix/generated.12/system/development/top.nix +++ /dev/null @@ -1,11 +0,0 @@ -{ config, pkgs, lib, user, inputs, flakeRoot,... }: -{ - imports = [ - ./databases/top.nix - ./devops_ci_cd/top.nix - ./programming_languages/top.nix - ./virtualization/top.nix - ./web_development/top.nix - ]; - # .. put any code here -} diff --git a/Droidnix/generated.12/system/development/virtualization/top.nix b/Droidnix/generated.12/system/development/virtualization/top.nix deleted file mode 100644 index c7da173ce..000000000 --- a/Droidnix/generated.12/system/development/virtualization/top.nix +++ /dev/null @@ -1,7 +0,0 @@ -{ config, pkgs, lib, user, inputs, flakeRoot,... }: -{ - imports = [ - # No subfolders to import - ]; - # .. put any code here -} diff --git a/Droidnix/generated.12/system/development/web_development/top.nix b/Droidnix/generated.12/system/development/web_development/top.nix deleted file mode 100644 index c7da173ce..000000000 --- a/Droidnix/generated.12/system/development/web_development/top.nix +++ /dev/null @@ -1,7 +0,0 @@ -{ config, pkgs, lib, user, inputs, flakeRoot,... }: -{ - imports = [ - # No subfolders to import - ]; - # .. put any code here -} diff --git a/Droidnix/generated.12/system/system_management/audio/top.nix b/Droidnix/generated.12/system/system_management/audio/top.nix deleted file mode 100644 index c7da173ce..000000000 --- a/Droidnix/generated.12/system/system_management/audio/top.nix +++ /dev/null @@ -1,7 +0,0 @@ -{ config, pkgs, lib, user, inputs, flakeRoot,... }: -{ - imports = [ - # No subfolders to import - ]; - # .. put any code here -} diff --git a/Droidnix/generated.12/system/system_management/backups/top.nix b/Droidnix/generated.12/system/system_management/backups/top.nix deleted file mode 100644 index c7da173ce..000000000 --- a/Droidnix/generated.12/system/system_management/backups/top.nix +++ /dev/null @@ -1,7 +0,0 @@ -{ config, pkgs, lib, user, inputs, flakeRoot,... }: -{ - imports = [ - # No subfolders to import - ]; - # .. put any code here -} diff --git a/Droidnix/generated.12/system/system_management/bluetooth/top.nix b/Droidnix/generated.12/system/system_management/bluetooth/top.nix deleted file mode 100644 index c7da173ce..000000000 --- a/Droidnix/generated.12/system/system_management/bluetooth/top.nix +++ /dev/null @@ -1,7 +0,0 @@ -{ config, pkgs, lib, user, inputs, flakeRoot,... }: -{ - imports = [ - # No subfolders to import - ]; - # .. put any code here -} diff --git a/Droidnix/generated.12/system/system_management/disk_management/top.nix b/Droidnix/generated.12/system/system_management/disk_management/top.nix deleted file mode 100644 index c7da173ce..000000000 --- a/Droidnix/generated.12/system/system_management/disk_management/top.nix +++ /dev/null @@ -1,7 +0,0 @@ -{ config, pkgs, lib, user, inputs, flakeRoot,... }: -{ - imports = [ - # No subfolders to import - ]; - # .. put any code here -} diff --git a/Droidnix/generated.12/system/system_management/hardware_sensors/top.nix b/Droidnix/generated.12/system/system_management/hardware_sensors/top.nix deleted file mode 100644 index c7da173ce..000000000 --- a/Droidnix/generated.12/system/system_management/hardware_sensors/top.nix +++ /dev/null @@ -1,7 +0,0 @@ -{ config, pkgs, lib, user, inputs, flakeRoot,... }: -{ - imports = [ - # No subfolders to import - ]; - # .. put any code here -} diff --git a/Droidnix/generated.12/system/system_management/logging_monitoring/top.nix b/Droidnix/generated.12/system/system_management/logging_monitoring/top.nix deleted file mode 100644 index c7da173ce..000000000 --- a/Droidnix/generated.12/system/system_management/logging_monitoring/top.nix +++ /dev/null @@ -1,7 +0,0 @@ -{ config, pkgs, lib, user, inputs, flakeRoot,... }: -{ - imports = [ - # No subfolders to import - ]; - # .. put any code here -} diff --git a/Droidnix/generated.12/system/system_management/login_manager/top.nix b/Droidnix/generated.12/system/system_management/login_manager/top.nix deleted file mode 100644 index c7da173ce..000000000 --- a/Droidnix/generated.12/system/system_management/login_manager/top.nix +++ /dev/null @@ -1,7 +0,0 @@ -{ config, pkgs, lib, user, inputs, flakeRoot,... }: -{ - imports = [ - # No subfolders to import - ]; - # .. put any code here -} diff --git a/Droidnix/generated.12/system/system_management/monitor_setup/top.nix b/Droidnix/generated.12/system/system_management/monitor_setup/top.nix deleted file mode 100644 index c7da173ce..000000000 --- a/Droidnix/generated.12/system/system_management/monitor_setup/top.nix +++ /dev/null @@ -1,7 +0,0 @@ -{ config, pkgs, lib, user, inputs, flakeRoot,... }: -{ - imports = [ - # No subfolders to import - ]; - # .. put any code here -} diff --git a/Droidnix/generated.12/system/system_management/networking/top.nix b/Droidnix/generated.12/system/system_management/networking/top.nix deleted file mode 100644 index c7da173ce..000000000 --- a/Droidnix/generated.12/system/system_management/networking/top.nix +++ /dev/null @@ -1,7 +0,0 @@ -{ config, pkgs, lib, user, inputs, flakeRoot,... }: -{ - imports = [ - # No subfolders to import - ]; - # .. put any code here -} diff --git a/Droidnix/generated.12/system/system_management/power_management/top.nix b/Droidnix/generated.12/system/system_management/power_management/top.nix deleted file mode 100644 index c7da173ce..000000000 --- a/Droidnix/generated.12/system/system_management/power_management/top.nix +++ /dev/null @@ -1,7 +0,0 @@ -{ config, pkgs, lib, user, inputs, flakeRoot,... }: -{ - imports = [ - # No subfolders to import - ]; - # .. put any code here -} diff --git a/Droidnix/generated.12/system/system_management/printers_scanners/top.nix b/Droidnix/generated.12/system/system_management/printers_scanners/top.nix deleted file mode 100644 index c7da173ce..000000000 --- a/Droidnix/generated.12/system/system_management/printers_scanners/top.nix +++ /dev/null @@ -1,7 +0,0 @@ -{ config, pkgs, lib, user, inputs, flakeRoot,... }: -{ - imports = [ - # No subfolders to import - ]; - # .. put any code here -} diff --git a/Droidnix/generated.12/system/system_management/security/top.nix b/Droidnix/generated.12/system/system_management/security/top.nix deleted file mode 100644 index c7da173ce..000000000 --- a/Droidnix/generated.12/system/system_management/security/top.nix +++ /dev/null @@ -1,7 +0,0 @@ -{ config, pkgs, lib, user, inputs, flakeRoot,... }: -{ - imports = [ - # No subfolders to import - ]; - # .. put any code here -} diff --git a/Droidnix/generated.12/system/system_management/system_updates/top.nix b/Droidnix/generated.12/system/system_management/system_updates/top.nix deleted file mode 100644 index c7da173ce..000000000 --- a/Droidnix/generated.12/system/system_management/system_updates/top.nix +++ /dev/null @@ -1,7 +0,0 @@ -{ config, pkgs, lib, user, inputs, flakeRoot,... }: -{ - imports = [ - # No subfolders to import - ]; - # .. put any code here -} diff --git a/Droidnix/generated.12/system/system_management/top.nix b/Droidnix/generated.12/system/system_management/top.nix deleted file mode 100644 index c7602dac8..000000000 --- a/Droidnix/generated.12/system/system_management/top.nix +++ /dev/null @@ -1,19 +0,0 @@ -{ config, pkgs, lib, user, inputs, flakeRoot,... }: -{ - imports = [ - ./audio/top.nix - ./backups/top.nix - ./bluetooth/top.nix - ./disk_management/top.nix - ./hardware_sensors/top.nix - ./logging_monitoring/top.nix - ./login_manager/top.nix - ./monitor_setup/top.nix - ./networking/top.nix - ./power_management/top.nix - ./printers_scanners/top.nix - ./security/top.nix - ./system_updates/top.nix - ]; - # .. put any code here -} diff --git a/Droidnix/generated.12/system/top.nix b/Droidnix/generated.12/system/top.nix deleted file mode 100644 index c1a1bec75..000000000 --- a/Droidnix/generated.12/system/top.nix +++ /dev/null @@ -1,10 +0,0 @@ -{ config, pkgs, lib, user, inputs, flakeRoot,... }: -{ - imports = [ - ./applications/top.nix - ./core/top.nix - ./development/top.nix - ./system_management/top.nix - ]; - # .. put any code here -} diff --git a/Droidnix/generated.12/top.nix b/Droidnix/generated.12/top.nix deleted file mode 100644 index e418ef7a2..000000000 --- a/Droidnix/generated.12/top.nix +++ /dev/null @@ -1,8 +0,0 @@ -{ config, pkgs, lib, ... }: -{ - imports = [ - ./system/top.nix - ./hyprland/top.nix - # ./mangowc/top.nix - ]; -} diff --git a/Droidnix/generated/hyprland/hyprland.nix b/Droidnix/generated/hyprland/hyprland.nix index a836e3c47..487c5a991 100644 --- a/Droidnix/generated/hyprland/hyprland.nix +++ b/Droidnix/generated/hyprland/hyprland.nix @@ -6,13 +6,14 @@ flakeRoot, ... }: + let hyprlandConfigDir = "${config.home-manager.users.${user.username}.xdg.configHome}/hypr"; - # Dynamically read all files in assets/hyprland/conf/ + # Dynamically read all files in assets/hyprland/conf/hypr hyprlandConfs = - lib.genAttrs (builtins.attrNames (builtins.readDir "${flakeRoot}/assets/hyprland/conf")) + lib.genAttrs (builtins.attrNames (builtins.readDir "${flakeRoot}/assets/hyprland/conf/hypr")) (name: { - text = builtins.readFile "${flakeRoot}/assets/hyprland/conf/${name}"; + text = builtins.readFile "${flakeRoot}/assets/hyprland/conf/hypr/${name}"; }); in { @@ -33,10 +34,11 @@ in enable = true; }; - # Merge dynamic Hyprland configs with existing xdg.configFile + # Ensure the Hyprland config directory exists xdg.configFile = { - # Your existing manual configs (if any) - } - // hyprlandConfs; + "hypr/.keep" = { + text = ""; + }; + } // hyprlandConfs; }; } diff --git a/Droidnix/generated/hyprland/keyboard_binds/top.nix b/Droidnix/generated/hyprland/keyboard_binds/top.nix index ac1af118b..96067f4db 100644 --- a/Droidnix/generated/hyprland/keyboard_binds/top.nix +++ b/Droidnix/generated/hyprland/keyboard_binds/top.nix @@ -8,7 +8,7 @@ ... }: let - bindingsContent = builtins.readFile (flakeRoot + "/assets/hyprland/conf/bindings.conf"); + bindingsContent = builtins.readFile (flakeRoot + "/assets/hyprland/conf/hypr/bindings.conf"); in { home-manager.users.${user.username} = { diff --git a/Droidnix/generated/mangowc/keyboard_binds/top.nix b/Droidnix/generated/mangowc/keyboard_binds/top.nix index 4e88b2781..3d59efd14 100644 --- a/Droidnix/generated/mangowc/keyboard_binds/top.nix +++ b/Droidnix/generated/mangowc/keyboard_binds/top.nix @@ -1,24 +1 @@ -{ - config, - pkgs, - lib, - user, - inputs, - flakeRoot, - ... -}: -let - bindingsContent = builtins.readFile (flakeRoot + "/assets/hyprland/conf/bindings.conf"); - userConfig = import (flakeRoot + "/assets/flake/users/henrov.nix"); -in -{ - home-manager.users.${user.username} = { - home.stateVersion = userConfig.stateVersion; - home.username = userConfig.username; - home.homeDirectory = userConfig.homeDirectory; - wayland.windowManager.hyprland = { - enable = true; - extraConfig = bindingsContent; - }; - }; -} +# Your code here... diff --git a/Droidnix/generated/system/applications/terminal_shell/kitty.nix b/Droidnix/generated/system/applications/terminal_shell/kitty.nix index 6e66131e7..6a3731900 100644 --- a/Droidnix/generated/system/applications/terminal_shell/kitty.nix +++ b/Droidnix/generated/system/applications/terminal_shell/kitty.nix @@ -1,4 +1,4 @@ -{ config, pkgs, lib, user, ... }: +{ config, pkgs, lib, user, flakeRoot, ... }: let kittyConfigDir = "${config.home-manager.users.${user.username}.xdg.configHome}/kitty"; in @@ -6,54 +6,14 @@ in home-manager.users.${user.username} = { programs.kitty = { enable = true; - settings = { - font_family = "JetBrainsMono Nerd Font"; - font_size = 12.0; - cursor = "Beam"; - cursor_blink_interval = -1; - shell = "${pkgs.zsh}/bin/zsh"; - }; }; - # Catppuccin Mocha theme for Kitty (embedded) + # Copy the actual kitty.conf (not a symlink) xdg.configFile."kitty/kitty.conf".text = lib.concatStringsSep "\n" [ - "# Catppuccin Mocha theme" - "background #1e1e2e" - "foreground #cdd6f4" - "selection_background #f5e0dc" - "selection_foreground #1e1e2e" - "url_color #f5e0dc" - "cursor #f5e0dc" - "cursor_text_color #1e1e2e" - - "color0 #45475a" - "color8 #585b70" - - "color1 #f38ba8" - "color9 #f38ba8" - - "color2 #a6e3a1" - "color10 #a6e3a1" - - "color3 #f9e2af" - "color11 #f9e2af" - - "color4 #89b4fa" - "color12 #89b4fa" - - "color5 #f5c2e7" - "color13 #f5c2e7" - - "color6 #94e2d5" - "color14 #94e2d5" - - "color7 #bac2de" - "color15 #bac2de" - - "# Window settings" - "background_opacity 0.9" - "font_size 12.0" - "cursor_shape Beam" + (builtins.readFile "${flakeRoot}/assets/system/conf/kitty/kitty.conf") ]; + + # Copy the theme file + xdg.configFile."kitty/Catppuccin-Mocha.conf".source = "${flakeRoot}/assets/system/conf/kitty/Catppuccin-Mocha.conf"; }; } diff --git a/Droidnix/generated/system/applications/terminal_shell/starship.nix b/Droidnix/generated/system/applications/terminal_shell/starship.nix index d6b4be8c3..06f1e5725 100644 --- a/Droidnix/generated/system/applications/terminal_shell/starship.nix +++ b/Droidnix/generated/system/applications/terminal_shell/starship.nix @@ -1,27 +1,16 @@ -{ config, pkgs, lib, user, ... }: { - home-manager.users.${user.username} = { - programs.starship = { - enable = true; - }; - - # Catppuccin Mocha theme for Starship - xdg.configFile."starship.toml".text = '' - format = "$all" - - [character] - success_symbol = "[❯](bold green)" - error_symbol = "[❯](bold red)" - - [directory] - style = "bold lavender" - - [git_branch] - symbol = " " - style = "bold maroon" - - [package] - disabled = true - ''; + lib, + config, + pkgs, + flakeRoot, + ... +}: +let + starshipConfig = lib.importTOML (flakeRoot + "/assets/system/conf/starship.toml"); +in +{ + programs.starship = { + enable = true; + settings = starshipConfig; }; } diff --git a/Droidnix/generated/system/applications/terminal_shell/zsh.nix b/Droidnix/generated/system/applications/terminal_shell/zsh.nix index 968bac466..034bfb243 100644 --- a/Droidnix/generated/system/applications/terminal_shell/zsh.nix +++ b/Droidnix/generated/system/applications/terminal_shell/zsh.nix @@ -1,61 +1,95 @@ -{ config, pkgs, lib, user, ... }: -let - zshConfigDir = "${config.home-manager.users.${user.username}.xdg.configHome}/zsh"; -in { - home-manager.users.${user.username} = { + lib, + config, + pkgs, + ... +}: + +{ + # --- NixOS Configuration --- + environment.systemPackages = with pkgs; [ + zsh + git + docker + ]; + + # --- Home Manager Configuration --- + home-manager.users.henrov = { programs.zsh = { enable = true; enableCompletion = true; - autosuggestion.enable = true; - syntaxHighlighting.enable = true; + + # Enable oh-my-zsh and use its plugins oh-my-zsh = { enable = true; - theme = "agnoster"; plugins = [ "git" + "docker" + "direnv" "zsh-autosuggestions" "zsh-syntax-highlighting" - "docker" - "kubectl" - "history" - "command-not-found" - "extract" + "zsh-completions" + "zsh-history-substring-search" ]; + theme = "agnoster"; # Fallback, overridden below }; - shellAliases = { - ls = "exa --icons -a --group-directories-first"; - ll = "exa --icons -la --group-directories-first"; - }; + + # Source Nixpkgs-provided plugins explicitly + initContent = '' + # Source plugins installed by Nix + source ${pkgs.zsh-autosuggestions}/share/zsh-autosuggestions/zsh-autosuggestions.zsh + source ${pkgs.zsh-syntax-highlighting}/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh + source ${pkgs.zsh-history-substring-search}/share/zsh-history-substring-search/zsh-history-substring-search.zsh + + # Catppuccin Mocha theme for oh-my-zsh + local mocha_base="#1E1E2E" + local mocha_surface0="#313244" + local mocha_text="#CDD6F4" + local mocha_lavender="#B4BEFE" + local mocha_blue="#89B4FA" + local mocha_sapphire="#74C7EC" + local mocha_teal="#94E2D5" + local mocha_green="#A6E3A1" + local mocha_yellow="#F9E2AF" + local mocha_peach="#FAB387" + local mocha_maroon="#EBA0AC" + local mocha_red="#F38BA8" + local mocha_mauve="#CBA6F7" + local mocha_pink="#F5C2E7" + local mocha_flamingo="#F2CDCD" + local mocha_rosewater="#F5E0DC" + + # Prompt + PROMPT='%{$fg[$mocha_blue]%}%n%{$reset_color%}@%{$fg[$mocha_peach]%}%m%{$reset_color%} %{$fg[$mocha_lavender]%}%~%{$reset_color%} %{$fg[$mocha_red]%}$%{$reset_color%} ' + RPROMPT='%{$fg[$mocha_green]%}%T%{$reset_color%}' + + # Git prompt + ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[$mocha_yellow]%}(%{$reset_color%}" + ZSH_THEME_GIT_PROMPT_SUFFIX="%{$fg[$mocha_yellow]%})%{$reset_color%}" + ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[$mocha_red]%}✗%{$reset_color%}" + ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[$mocha_green]%}✓%{$reset_color%}" + ZSH_THEME_GIT_PROMPT_AHEAD="%{$fg[$mocha_blue]%}⇡%{$reset_color%}" + ZSH_THEME_GIT_PROMPT_BEHIND="%{$fg[$mocha_blue]%}⇣%{$reset_color%}" + ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg[$mocha_pink]%}?%{$reset_color%}" + ZSH_THEME_GIT_PROMPT_STAGED="%{$fg[$mocha_sapphire]%}+%{$reset_color%}" + ZSH_THEME_GIT_PROMPT_UNSTAGED="%{$fg[$mocha_red]%}!%{$reset_color%}" + + # Virtualenv/pyenv + ZSH_THEME_VIRTUAL_ENV_PREFIX="(%{$fg[$mocha_teal]%}" + ZSH_THEME_VIRTUAL_ENV_SUFFIX="%{$reset_color%})" + + # Right prompt with Git status + RPROMPT='$(git_prompt_info) %{$fg[$mocha_green]%}%T%{$reset_color%}' + + # Set the custom theme + ZSH_THEME="catppuccin-mocha" + ''; }; - # Consolidated .zshrc - xdg.configFile."zsh/.zshrc".text = lib.concatStringsSep "\n" [ - "# Oh-My-Zsh" - "export ZSH=\"${zshConfigDir}\"" - "source \"${pkgs.zsh}/share/zsh/functions/Newuser/zsh-newuser-install\"" - "source \"${zshConfigDir}/oh-my-zsh.sh\"" - "" - "# Zsh options" - "setopt AUTO_CD" - "setopt CORRECT" - "setopt INTERACTIVE_COMMENTS" - "" - "# Starship" - "eval \"$(starship init zsh)\"" - "" - "# fzf" - "source \"${pkgs.fzf}/shell/key-bindings.zsh\"" - "source \"${pkgs.fzf}/shell/completion.zsh\"" - "" - "# User customizations" - "source \"${zshConfigDir}/custom.zsh\" 2>/dev/null" + # Home Manager packages (optional) + home.packages = with pkgs; [ + direnv + git-extras ]; - - # User customizations - xdg.configFile."zsh/custom.zsh".text = '' - export EDITOR="nvim" - export PATH="$HOME/.local/bin:$PATH" - ''; }; } diff --git a/Droidnix/generated/system/applications/top.nix b/Droidnix/generated/system/applications/top.nix index eb7db4f5e..287cde4b2 100644 --- a/Droidnix/generated/system/applications/top.nix +++ b/Droidnix/generated/system/applications/top.nix @@ -1,6 +1,8 @@ { config, pkgs, lib, user, inputs, flakeRoot,... }: { imports = [ + ./packages.nix + ./flatpaks.nix ./accessibility/top.nix ./file_management/top.nix ./gaming/top.nix @@ -8,5 +10,5 @@ ./office_productivity/top.nix ./terminal_shell/top.nix ]; - # .. put any code here + nixpkgs.config.allowUnfree = true; } diff --git a/Droidnix/generated/system/core/top.nix b/Droidnix/generated/system/core/top.nix index cbd37c08c..68dcdc894 100644 --- a/Droidnix/generated/system/core/top.nix +++ b/Droidnix/generated/system/core/top.nix @@ -2,8 +2,10 @@ { imports = [ ./wayland.nix + ./eww.nix + ./waybar.nix ./login-tuigreeter.nix - # ./login-lightdm.nix + #./login-lightdm.nix ]; # .. put any code here } diff --git a/Droidnix/generated/system/core/wayland.nix b/Droidnix/generated/system/core/wayland.nix index f81f3aa13..9d7e5e81d 100644 --- a/Droidnix/generated/system/core/wayland.nix +++ b/Droidnix/generated/system/core/wayland.nix @@ -1,28 +1,5 @@ { config, pkgs, lib, user, ... }: { - # Enable essential services for a Wayland session - services.dbus.enable = true; - services.pipewire = { - enable = true; - alsa.enable = true; - pulse.enable = true; - wireplumber.enable = true; - }; - - # XDG Desktop Portal settings for better application integration - xdg.portal = { - enable = true; - config.common.default = [ "hyprland" "gtk" ]; - }; - - # Environment variables for a Wayland session - environment.sessionVariables = { - XDG_SESSION_TYPE = "wayland"; - XDG_CURRENT_DESKTOP = "Hyprland"; - XCURSOR_SIZE = "24"; - }; - - # Home Manager Wayland configurations home-manager.users.${user.username} = { xdg.portal = { enable = true;