Commit graph

152 commits

Author SHA1 Message Date
Harald Hoyer 0eacb615af feat: add m4nix VM
Signed-off-by: Harald Hoyer <harald@hoyer.xyz>
2025-01-10 16:46:16 +01:00
Harald Hoyer 9952dd74e3 feat(aarch64): add initial configuration for NixOS on ARM
Introduced hardware and system configurations for the aarch64 NixOS system. Includes hardware setup, base system packages, and enabling key services such as Docker and Podman. This establishes the foundation for managing ARM-based systems.
2025-01-10 15:34:54 +01:00
Harald Hoyer f45a366528 refactor(sgx): rename internal host to openwebui
Updated ACME and nginx configurations to replace "internal.hoyer.world" with "openwebui.hoyer.world". This ensures correct routing and certificate management for the updated domain.
2025-01-08 15:18:42 +01:00
Harald Hoyer 1ddc13cda3 add imagemagick
Signed-off-by: Harald Hoyer <harald@hoyer.xyz>
2024-12-14 09:09:02 +01:00
Harald Hoyer 96e09ef294 Enable Alacritty and iTerm2 in the configuration.
This commit adds Alacritty and iTerm2 to the system configuration for aarch64-darwin. These changes enhance terminal options, improving flexibility and usability for developers.
2024-12-13 09:20:29 +01:00
Harald Hoyer 47cf44ccfd refactor: improve formatting in Nextcloud and home config
Reformatted code blocks for better readability and consistency in Nextcloud and Darwin home configurations. No functional changes were made, ensuring existing behavior remains intact.
2024-12-13 09:19:09 +01:00
Harald Hoyer 3087b5360b feat(x1): add piper support and enable ratbagd service
Add the `piper` package to the build and enable the `ratbagd` service for managing gaming mice. This enhances device compatibility and configuration options.
2024-12-12 13:07:04 +01:00
Harald Hoyer b7ae1732f2 chore(x1): comment out kernel package override
Commented out the kernel package override to use the default kernel packages. This change might be necessary for testing or compatibility purposes.
2024-12-12 13:06:04 +01:00
Harald Hoyer 27d41ed91d feat(nextcloud): update service dependencies and apps
Include `config` in function parameters for better configurability. Removed unnecessary Nextcloud apps such as `files_texteditor`, `files_markdown`, `twofactor_backupcodes`, and `twofactor_totp` to streamline service setup.
2024-12-06 13:23:47 +01:00
Harald Hoyer aef4e331ae feat(nextcloud): add extra apps configuration
Enhance Nextcloud setup by enabling additional applications such as calendar, contacts, and notes. This change improves the service's functionality and usability by integrating essential productivity tools directly into the Nextcloud environment.
2024-12-06 13:20:39 +01:00
Harald Hoyer c9038f19e6 refactor: improve formatting in configuration files
Adjusted the parameter formatting in `acme.nix` and `nginx.nix` for better readability and consistency. The changes include standardizing the indentation and spacing for multiline declarations.
2024-12-06 13:20:31 +01:00
Harald Hoyer 1dde4c769e fix(network): add standard web ports to allowed TCP ports
Add ports 80 and 443 to the list of allowed TCP ports in the firewall configuration. This change ensures that HTTP and HTTPS traffic can pass through, which is essential for web services to operate correctly.
2024-12-06 10:46:36 +01:00
Harald Hoyer 95c68ccc7d fix(secrets): update sopsFile path for internetbs
Change the sopsFile path in acme.nix to point to the sgx directory instead of hetzner to ensure the correct configuration file is referenced. Added a new encrypted secrets file specific to the sgx directory to maintain security and confidentiality.
2024-12-06 09:50:56 +01:00
Harald Hoyer 818ae41e58 fix(nginx): correct proxyPass port conversion to string
Convert the port value to a string in nginx configuration to ensure correct proxyPass functionality. This change prevents potential runtime errors when using numeric port values directly in the proxyPass directive.
2024-12-06 09:45:52 +01:00
Harald Hoyer a4791bdb4f feat(nginx): add config argument to SGX NGINX module
Introduce the `config` argument to the SGX NGINX module to enhance configurability and integration. This change allows for more flexible usage of configurations that may rely on system-level settings. It prepares the NGINX module for more complex future modifications or integrations.
2024-12-06 09:40:11 +01:00
Harald Hoyer 26dd34a84d fix(openwebui): enable ssl for internal sgx
Signed-off-by: Harald Hoyer <harald@hoyer.xyz>
2024-12-06 09:39:25 +01:00
Harald Hoyer c65f89edf8 fix(openwebui): update OLLAMA_API_BASE_URL configuration
Update the OLLAMA_API_BASE_URL to ensure proper resolution with the full domain name `m4.fritz.box`. This change ensures that the API endpoint is correctly accessible within the network.
2024-12-06 09:12:27 +01:00
Harald Hoyer d188778574 feat(sgx): enable firewall opening for OpenWebUI
Added the `openFirewall` option set to true in the SGX OpenWebUI configuration. This change ensures that firewall rules are adjusted to allow access to the configured port. This enhances accessibility and simplifies setup for users.
2024-12-06 09:10:25 +01:00
Harald Hoyer d870cdf086 fix: correct typo in environment variable block
Corrected the spelling of "environment" from "enviroment" in the OpenWebUI configuration file. This change ensures the configuration is correctly interpreted, avoiding potential issues with environment variable settings.
2024-12-06 08:57:38 +01:00
Harald Hoyer 29ca755e06 feat: add OpenWebUI service configuration
Introduce a new NixOS configuration for the OpenWebUI service, enabling it by default on port 8080. The setup includes environment settings to disable telemetry and authentication, and it adds the openwebui.nix to the system modules.
2024-12-06 08:56:37 +01:00
Harald Hoyer b0f42bce29 fix(systemd): correct path for nixos-upgrade service
Change the working directory from `/root` to `/root/nixcfg` in the `nixos-upgrade` systemd service to ensure the correct configuration repository is used. This update prevents potential errors due to fetching and resetting in the wrong directory.
2024-11-29 17:07:52 +01:00
Harald Hoyer 1e5ceb6c73 feat(systemd): add git to nixos-upgrade service path
Include git in the `PATH` for the `nixos-upgrade` systemd service. This change ensures that the service can execute git commands during its operations. The path addition resolves issues related to unavailable git commands.
2024-11-29 17:06:07 +01:00
Harald Hoyer cd99b128d4 feat: add preStart hook for nixos-upgrade service
Introduce a preStart hook to the nixos-upgrade systemd service to ensure the local repository is updated before upgrades by fetching and resetting to the origin's HEAD. This enhances the reliability and consistency of the upgrade process. Also, maintain the commented out old flake path for backward traceability.
2024-11-29 17:04:24 +01:00
Harald Hoyer 82c7352bc2 set /root for mx
Signed-off-by: Harald Hoyer <harald@hoyer.xyz>
2024-11-29 16:57:32 +01:00
Harald Hoyer 4390f2ae09 chore: remove redundant git filter rot8000 config
Remove duplicate configurations for the rot8000 git filter from both mx and base modules. This change helps to streamline the code by ensuring that the unnecessary and redundant configurations are eliminated.
2024-11-29 13:36:00 +01:00
Harald Hoyer 0767577099 Fix rot8000 2024-11-29 12:58:21 +01:00
Harald Hoyer 0101bf1140 feat(nextcloud): add support for JXL previews
Enable JXL (JPEG XL) format previews in Nextcloud configuration. This addition allows users to view and manage JPEG XL images directly within Nextcloud, enhancing the user experience with modern image formats.
2024-11-29 08:55:50 +01:00
Harald Hoyer 91a3e0c400 feat(x86_64-linux): add IPU6 platform configuration
Introduce a new module, ipu.nix, enabling IPU6 platform support. This change aids in configuring specific hardware settings and includes the setup for future kernel package adjustments. The IPU6 module is prepared for integration but is currently commented out in the imports for further testing.
2024-11-28 12:08:24 +01:00
Harald Hoyer 3953362456 refactor: update configurations and fix inconsistent naming
Refactor various NixOS and home-manager configurations to improve consistency and readability. Correct naming inconsistencies, ensure proper indentation, and restructure Samba settings for better clarity and maintainability.
2024-11-28 10:01:53 +01:00
Harald Hoyer 23acb92b3b feat(flake.nix): update Nixpkgs and Home Manager to 24.11
Updated the Nixpkgs and Home Manager inputs from 24.05 to 24.11. Removed the attic module and its dependencies, added mnw to neovim-flake. Refined Neovim configuration by disabling nvimCodeActionMenu and optimizing other settings.
2024-11-28 08:53:56 +01:00
Harald Hoyer 4131d726d5 feat: enable direnv tool and disable ollama service
Enable direnv under the tools configuration with a commented-out git tool. Disable the ollama service, changing its enable flag from true to false.
2024-11-26 08:53:18 +01:00
Harald Hoyer 8629411382 Add onActivation settings to aarch64-darwin/m4
Introduce 'cleanup', 'autoUpdate', and 'upgrade' options under the onActivation section for improved manageability. Additionally, remove unused homebrew configuration from modules/darwin/nix/default.nix.
2024-11-25 16:34:59 +01:00
Harald Hoyer 3390c39901 Update masApps and add Homebrew shell initialization
Convert masApps from list to set for better structure consistency. Add initialization for Homebrew in the Fish shell to ensure the environment is correctly set up.
2024-11-25 16:00:27 +01:00
Harald Hoyer 18e641daf8 Add 'mas' to Homebrew configuration in aarch64-darwin
This commit updates the default Homebrew configuration to include 'mas' alongside 'libusb' for the aarch64-darwin system. It also introduces an empty 'masApps' array for potential future use.
2024-11-25 15:47:08 +01:00
Harald Hoyer a8acb0900b Enable Homebrew for aarch64-darwin
Added configuration to enable Homebrew on aarch64-darwin systems. Created a new module for managing Homebrew settings and added support for declarative tap management.
2024-11-25 15:41:54 +01:00
Harald Hoyer cbe03d1060 Rename and refactor Darwin-specific modules
Renamed several modules to better align with Darwin-specific configurations. Refactored configuration for Alacritty and removed it from system packages where not needed. Introduced Homebrew settings and cleaned up redundant entries in multiple Nix files.
2024-11-25 14:22:52 +01:00
Harald Hoyer f5670d2c0e Add Zsh shell to Darwin services and setup Harald's dev environment
Add Zsh to the list of available shells in the Darwin services module.
Introduce new Nix configurations for aarch64-darwin, including system packages and font settings.
Set up user-specific environment for Harald on aarch64-darwin system.
2024-11-25 12:42:21 +01:00
Harald Hoyer 4292f4c334 Format kernelModules array
Reformatted the boot.kernelModules array for better readability. This change enhances the clarity of the list and follows more consistent coding practices across the configuration file.
2024-11-25 12:31:48 +01:00
Harald Hoyer bad907bf04 feat: add amdgpu support and update DRI_PRIME config
Added `amdgpu` to the kernel modules to provide support for AMD GPUs. Updated the `DRI_PRIME` environment variable to specify the correct PCI device.
2024-11-22 09:47:27 +01:00
Harald Hoyer 08aae1a581 feat: add environment variables for ROCm and libva
Included HSA_OVERRIDE_GFX_VERSION for ROCm acceleration. Added LIBVA_DRIVER_NAME and commented NIXOS_OZONE_WL to environment.sessionVariables settings.
2024-11-19 12:30:03 +01:00
Harald Hoyer 900f95169f nix fmt
Signed-off-by: Harald Hoyer <harald@hoyer.xyz>
2024-11-19 10:31:29 +01:00
Harald Hoyer 0d5229036a add ollama 2024-11-19 10:28:30 +01:00
Harald Hoyer 6416f5b8db feat: set default shell to fish for user harald
Added configuration to set fish as the default shell for user harald. This improves user experience by providing a more friendly and powerful shell environment.
2024-11-19 08:26:05 +01:00
Harald Hoyer 7bb3d87ced feat(nextcloud): add maintenance window start setting
Introduces a new configuration for setting the maintenance window start in the Nextcloud settings. This ensures better scheduling and coordination for maintenance activities.
2024-11-13 09:40:54 +01:00
Harald Hoyer b71b46bdb0 feat(nextcloud): log_type = "file" 2024-11-13 09:28:00 +01:00
Harald Hoyer cc59bd6567 feat: increase NOFILE and MEMLOCK limits in sgx-nixos
Added systemd and PAM configuration to set NOFILE and MEMLOCK limits to 32768. This change enhances the system's capability to handle a larger number of open files and memory-locked segments.
2024-10-23 10:21:20 +02:00
Harald Hoyer 707550547e fix: update NOFILE limit in systemd and PAM configurations
Increased the file descriptor limit (NOFILE) from 32000 to 32768 in systemd and PAM settings. This adjustment aligns system limits with higher resource demands.
2024-10-23 10:20:38 +02:00
Harald Hoyer d2f9061752 feat(x86_64-linux): increase file descriptor and memory limits
Added configuration to increase the system-wide file descriptor limit and memory lock limit. This change involves updating systemd and PAM settings to enhance resource management.
2024-10-23 10:16:01 +02:00
Harald Hoyer 36cd114e72 feat(sgx): enable IPv4 and IPv6 support for Avahi
Updated Avahi service configuration to support both IPv4 and IPv6 addressing. This change includes enabling nssmdns4 and nssmdns6, along with setting ipv4 and ipv6 to true.
2024-10-16 14:43:36 +02:00
Harald Hoyer 82c476bd75 refactor: reorder nextcloud.nix configurations
Reorganized the configuration blocks for better readability. The `enabledPreviewProviders` list and `phpOptions` section now follow a more logical structure.
2024-10-16 14:43:00 +02:00