Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nixos/godns: init module #348290

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

michaelvanstraten
Copy link

@michaelvanstraten michaelvanstraten commented Oct 13, 2024

Added a new NixOS module for the GoDNS service, which allows users to enable and configure the GoDNS service on their NixOS system.

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@github-actions github-actions bot added 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` 8.has: maintainer-list (update) This PR changes `maintainers/maintainer-list.nix` labels Oct 13, 2024
@NixOSInfra NixOSInfra added the 12. first-time contribution This PR is the author's first one; please be gentle! label Oct 13, 2024
@github-actions github-actions bot added 8.has: documentation This PR adds or changes documentation 8.has: changelog labels Oct 13, 2024
@ofborg ofborg bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 1-10 labels Oct 13, 2024
@h7x4 h7x4 added the 8.has: module (new) This PR adds a module in `nixos/` label Oct 14, 2024
@michaelvanstraten michaelvanstraten marked this pull request as ready for review October 18, 2024 10:02
@michaelvanstraten michaelvanstraten force-pushed the add-godns-service branch 4 times, most recently from bd611bc to 54f25d0 Compare November 23, 2024 21:54
@michaelvanstraten michaelvanstraten force-pushed the add-godns-service branch 2 times, most recently from 5059144 to 9b368a5 Compare December 16, 2024 17:47
Copy link
Contributor

@misuzu misuzu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've added a couple suggestions

nixos/doc/manual/release-notes/rl-2411.section.md Outdated Show resolved Hide resolved
nixos/modules/services/networking/godns.nix Outdated Show resolved Hide resolved
nixos/modules/services/networking/godns.nix Outdated Show resolved Hide resolved
nixos/modules/services/networking/godns.nix Show resolved Hide resolved
nixos/modules/services/networking/godns.nix Outdated Show resolved Hide resolved
nixos/modules/services/networking/godns.nix Outdated Show resolved Hide resolved
nixos/modules/services/networking/godns.nix Outdated Show resolved Hide resolved
nixos/modules/services/networking/godns.nix Outdated Show resolved Hide resolved
type = types.nullOr types.path;
};

additionalRestartTriggers = mkOption {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The systemd service will restart when the value of cfg.configFile changes. Is this really needed?

Copy link
Author

@michaelvanstraten michaelvanstraten Dec 16, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When using something like sops-nix templates, the answer is sadly yes. Because the path of the generated template does not change even if the secret changes.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because the path of the generated template does not change even if the secret changes.

How does this option help then?

nixos/modules/services/networking/godns.nix Outdated Show resolved Hide resolved
Initial implementation of the GoDNS service module. This module allows users to enable and configure the GoDNS service on their NixOS system. It includes options for specifying the GoDNS package and the path to the configuration file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: changelog 8.has: documentation This PR adds or changes documentation 8.has: maintainer-list (update) This PR changes `maintainers/maintainer-list.nix` 8.has: module (new) This PR adds a module in `nixos/` 8.has: module (update) This PR changes an existing module in `nixos/` 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 1-10 12. first-time contribution This PR is the author's first one; please be gentle!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants