Commit graph

67 commits

Author SHA1 Message Date
Harald Hoyer a4805ea27c feat: Add nix image to runner images in forgejo.nix
This commit adds a new runner image for the Nix environment. The "nix:docker://backslashhh/nix:latest" line has been included in the Forgejo configuration, allowing Gitea to use the latest Nix image in the runner.
2024-06-27 13:52:19 +02:00
Harald Hoyer 83221b4587 feat: Update runner labels in forgejo.nix
This commit updates the runner labels in the forgejo.nix file. It changes the URL links for the runner images and specifies the version of Ubuntu to be used. The new labels reference the runner images from the gitea repository rather than Node.js images.
2024-06-27 13:16:19 +02:00
Harald Hoyer 2b559eb9ad fix: correct indentation in systemd service definitions
Corrects the indentation in the systemd service and timer definitions within the default.nix configuration file. This improves the readability and maintenance of the code.
2024-06-27 13:16:11 +02:00
Harald Hoyer 8cd5ce67a9 feat: Update hetzner runner token and modify its timestamp
The runner token in the Hetzner secrets configuration file has been updated. Additionally, the last modified timestamp has been changed to reflect the latest modifications.
2024-06-27 13:07:18 +02:00
Harald Hoyer 2dfd6d1d60 feat: add gitea-actions-runner configuration
This commit introduces the configuration for the gitea-actions-runner service in the forgejo.nix file. It also includes adding a new encrypted yaml file for the runner token. The configurations set up instances and labels for different versions of Ubuntu.
2024-06-27 13:00:32 +02:00
Harald Hoyer b50c8aee66 feat: Remove warp-svc auto-start from x86_64-linux configuration
The system's configuration for x86_64-linux architecture has been modified. Specifically, warp-svc will not be started automatically anymore, as its reference in the "wants" section of "multi-user" targets in systemd configuration has been removed.
2024-06-27 12:28:07 +02:00
Harald Hoyer 86c676062c feat: Comment out systemd.user.services in default.nix
The systemd.user.services block in the default.nix file has been commented out. This change is vital if the associated services are not meant to be used or activated, avoiding any potential conflicts or issues.
2024-06-25 11:13:50 +02:00
Harald Hoyer a6460fede4 feat: Require password for sudo wheel users
The default value for `wheelNeedsPassword` has been changed to `true` in `base/default.nix`. The redundant entry in `gui/default.nix` setting `wheelNeedsPassword` to `true` was removed as it is now enforced by the base module.
2024-06-25 11:03:16 +02:00
Harald Hoyer 1033d30619 fix: replace gc with nix.gc for mx 2024-06-25 10:39:55 +02:00
Harald Hoyer e9076baeee feat: Require password for sudo wheel group
This change updates the settings in the GUI module for the sudo wheel group. The security policy has been modified to require a password when a member of the wheel group attempts to use sudo.
2024-06-25 10:36:32 +02:00
Harald Hoyer 20cefaf839 feat: Update garbage collection options
Adjust default garbage collection intervals and retention periods. Set default GC to run weekly and retain 14 days on nixos module and to run daily and retain 7 days on the 64-linux module.

Signed-off-by: Harald Hoyer <harald@hoyer.xyz>
2024-06-25 10:10:33 +02:00
Harald Hoyer 58dd6f0e63 feat: Set default for sudo wheelNeedsPassword in base and gui services
The update modifies the default setting for the 'sudo wheelNeedsPassword' option in both the base and gui modules/services. Now, the base service has 'sudo wheelNeedsPassword' marked as a default option and disabled by default in the gui service.
2024-06-25 10:06:08 +02:00
Harald Hoyer 8ec7849a21 feat: add kubectx to x86_64-linux system packages 2024-06-24 17:27:30 +02:00
Harald Hoyer d0e539f23f feat: Add new system packages and update flake.lock
New system packages including azure-cli, cloudflare-warp, desktop-file-utils, and kubectl have been added to the environment. The systemd has been configured for cloudflare-warp. Additionally, version updates were made in flake.lock with revised hashes and revisions.
2024-06-24 16:13:56 +02:00
Harald Hoyer ff726a73c9 feat: refactor domain whitelist in rspamd.nix
This update introduces a more efficient way for managing whitelisted domains in rspamd.nix. Instead of repeating the list of domains across multiple configurations, the domains are now defined only once in a dedicated variable. This improves the maintainability and readability of the code.
2024-06-22 18:10:12 +02:00
Harald Hoyer 7b06c9446c feat: Refactor rspamd settings in x86_64-linux systems
This commit simplifies the configuration of rspamd settings in x86_64-linux systems. It primarily involves restructuring of settings for 'settings.conf', 'spf_whitelist', 'spf_dkim_whitelist', 'dmarc_whitelist', and 'greylist-whitelist-domains'.
2024-06-22 17:26:01 +02:00
Harald Hoyer 8bbed5e255 feat: Update rspamd configurations
This commit introduces new whitelisted domains for SPFs, DKIMs, DMARCs and Greylists in the Rspamd configurations. It also adds new rules for incoming emails from bogensport-jugend@gmx.de, including disabling greylisting and specifying actions to apply.
2024-06-22 15:37:37 +02:00
Harald Hoyer 9f1bb163e1 feat: Update rspamd configurations
This commit introduces new whitelisted domains for SPFs, DKIMs, DMARCs and Greylists in the Rspamd configurations. It also adds new rules for incoming emails from bogensport-jugend@gmx.de, including disabling greylisting and specifying actions to apply.
2024-06-22 15:35:22 +02:00
Harald Hoyer 423ef6941d feat: Update rspamd configurations
This commit introduces new whitelisted domains for SPFs, DKIMs, DMARCs and Greylists in the Rspamd configurations. It also adds new rules for incoming emails from bogensport-jugend@gmx.de, including disabling greylisting and specifying actions to apply.
2024-06-22 15:13:08 +02:00
Harald Hoyer 6d4be557f8 style: fix indentation and spacing issues
This commit corrects the code's formatting in two parts:
1) It normalizes the indentation in the BindPaths block under aesmd_dcap/default.nix.
2) It also removes the extra space before "DE" in the default_phone_region setting in nextcloud.nix.
2024-06-22 15:12:57 +02:00
Harald Hoyer dc2b6a41a5 Update flake.lock and enable trezord service in default.nix
The flake.lock file has been updated with the latest modifications, including changes to the lastModified, narHash, and rev values for several Github repositories. Furthermore, the trezord service has been enabled in the default.nix file for the x1 system.
2024-06-17 15:14:54 +02:00
Harald Hoyer 6b9d04bb59 feat: remove "--refresh" flag from autoUpgrade
This commit removes the "--refresh" flag from the system.autoUpgrade field in the default.nix file. The update function will now rely on the remaining flags only.
2024-06-12 10:54:13 +02:00
Harald Hoyer 5c07871808 feat: Enable Git program in base services
The primary change in this commit enables the Git program in the base/default service module. This marks a configuration alteration at the systems level, transferring the 'programs.git.enable' declaration from 'systems/x86_64-linux/mx/default.nix' to 'modules/nixos/services/base/default.nix'. We've undertaken this change for better structuring of our service configuration.
2024-06-12 10:52:58 +02:00
Harald Hoyer 7020c4acbc feat: Enable git program in mx
The configuration file for the mx system has been updated to enable the git program.
2024-06-12 10:49:49 +02:00
Harald Hoyer bd8d27e40e feat: update nextcloud settings in nix configuration
Move 'default_phone_region' setting to the proper place. The previous erroneous location of the following setting `default_phone_region` was fixed and moved under `settings` where the rest of the options reside. The configuration now aligns with the expected structure.
2024-06-12 10:44:55 +02:00
Harald Hoyer e664773fe3 feat: Update nixpkgs and sops-nix revisions in flake.lock
This commit updates the existing "nixpkgs_4" and "locked" packages in flake.lock file. The revisions for "nixpkgs_4" and "locked" packages are updated along with associated "lastModified" and "narHash".

Signed-off-by: Harald Hoyer <harald@hoyer.xyz>
2024-06-12 10:43:18 +02:00
Harald Hoyer 1cd78fe21b feat: Add git safe directory to system config
This commit adds a git safe directory to the system config. This is to ensure that the git configurations are securely stored in "/var/lib/gitea/repositories/harald/nixcfg.git".
2024-06-12 10:41:52 +02:00
Harald Hoyer 712f3aaeb7 feat(nixos-services): add refresh option to autoUpgrade
This commit adds a new "--refresh" flag to the system.autoUpgrade in the NixOS services base module.
2024-06-12 10:31:24 +02:00
Harald Hoyer 5c863a8fa0 feat: Remove specific email addresses from mailserver config
This commit removes specific email addresses related to "meike-knutz.de" and "gerlinde-hoyer.de" in the mailserver configuration. It affects aliases, postmaster, and abuse sections of the configuration.
2024-06-11 10:36:21 +02:00
Harald Hoyer 5b768bee9a feat: update defaultPhoneRegion config in nextcloud.nix
This commit removes the defaultPhoneRegion from the config section and sets it in the settings section in nextcloud.nix file. This reorganization improves the structure and readability of the configuration.
2024-06-11 10:35:11 +02:00
Harald Hoyer dd6bdf3c3f feat: upgrade Nextcloud package to version 29
The Nextcloud package in the x86_64-linux system has been upgraded from version 28 to version 29. This update introduces the latest features, improvements, and security fixes from the Nextcloud project.
2024-06-11 10:28:46 +02:00
Harald Hoyer 2096f688db chore: nix flake lock update
Signed-off-by: Harald Hoyer <harald@hoyer.xyz>
2024-06-11 10:18:58 +02:00
Harald Hoyer 0a57bf37ef feat: 24.05 for everyone
Signed-off-by: Harald Hoyer <harald@hoyer.xyz>
2024-06-11 10:15:15 +02:00
Harald Hoyer a7484b3891 feat: Move kernel package override to specific system configs
This commit moves the kernel package version override from the base nixos service to specific system configurations. Now, the latest linux packages will be used only in the system configurations where the override has been explicitly added. This approach gives us more flexibility to handle different kernel package versions for different systems.
2024-06-03 13:21:50 +02:00
Harald Hoyer 9c50d1379a feat: all besides mx to 24.05 2024-06-03 11:41:14 +02:00
Harald Hoyer 6331eb6277 feat: sgx-nixos to 24.05 2024-06-03 11:14:24 +02:00
Harald Hoyer 40ee6ff1f2 feat: nixos 24.05
Signed-off-by: Harald Hoyer <harald@hoyer.xyz>
2024-06-03 11:06:26 +02:00
Harald Hoyer 1cd941d447 fix: update pccs_url in sgx_default_qcnl.conf
An extra comma is added to the pccs_url in the sgx_default_qcnl.conf file to correct a possible syntax error. This fix ensures the correct parsing of the JSON object.
2024-05-21 15:44:20 +02:00
Harald Hoyer db296ef226 feat: add BindPaths to systemd services in aesmd_dcap
This commit updates systemd services configuration of aesmd_dcap by adding a new directory to BindPaths. The file "/dev/log" has been added to ensure proper logging.
2024-05-21 15:44:00 +02:00
Harald Hoyer 27fc4658e1 feat: update input 'nixsgx-flake' instead of 'nixsgx' 2024-05-21 15:22:43 +02:00
Harald Hoyer 2994566928 feat: update nixsgx input in autoUpgrade 2024-05-21 15:18:32 +02:00
Harald Hoyer b253dd4e58 feat: Add gnome.cheese and pstree to gui default services
This commit includes gnome.cheese and pstree to the list of default services in the gui module. Users will now have these services available by default in the graphical user interface.
2024-05-21 11:28:43 +02:00
Harald Hoyer 86b3ff2cb0 feat(systemd): add check_root service and timer
A new systemd service, `check_root`, has been added which checks disk usage of the root directory. If usage exceeds 85%, an email alert is sent. In addition to this service, a corresponding systemd timer is added to trigger this check daily.
2024-05-17 16:58:44 +02:00
Harald Hoyer 0032016cfa feat: Update encrypted data and metadata in .secrets file 2024-05-17 16:40:54 +02:00
Harald Hoyer 16e744e39e feat: Add systemd service to monitor boot disk space
This commit introduces a new systemd service that runs daily to check the disk usage of the /boot partition. If utilization exceeds a set threshold, it triggers a warning email. This will ensure prompt alerts on critically low boot disk space, helping in maintaining a stable system.
2024-05-17 16:29:30 +02:00
Harald Hoyer bd2e13a215 feat: Add lidSwitch configuration to ignore in logind service
This commit includes a new lid switch configuration for the logind service within the SGX default configuration file. The lid switch has been set to "ignore", enhancing control over system behaviors upon lid actions.
2024-04-12 08:38:02 +02:00
Harald Hoyer 88dd896bc2 feat: Remove hd-idle systemd service in hardware configuration
The section specifying the systemd services for hd-idle has been removed in the hardware configuration file.
2024-04-11 16:28:20 +02:00
Harald Hoyer 86e5539c2f feat: Add 'docker' to user.extraGroups
In systems/x86_64-linux/x1/default.nix, 'docker' has been added to user.extraGroups. This allows the current user to manage Docker without needing root access.
2024-04-11 10:50:52 +02:00
Harald Hoyer c0991dbdd1 feat: add virtualization config to x86_64-linux system
This commit introduces virtualization configurations for docker and libvirtd in the x86_64-linux system. It also sets the podman.dockerCompat to false to avoid compatibility issues.
2024-04-11 10:48:50 +02:00
Harald Hoyer f9d045b883 Update SGX hardware configuration
This commit updates the hardware configuration for SGX systems. We have configured the available kernel modules list to include TPM-related modules. Also, unnecessary TPM2 security settings have been removed to clean up the configuration file.
2024-04-10 22:18:56 +02:00