nix: add Thales Luna HSM client package and NixOS module - #327
Merged
Merged
Conversation
willyzha
force-pushed
the
nixos-luna-hsm-client
branch
7 times, most recently
from
September 17, 2026 19:27
76c647c to
7915498
Compare
willyzha
marked this pull request as ready for review
September 17, 2026 19:28
clundin25
reviewed
Sep 17, 2026
Comment on lines
+31
to
+35
| # Option B: Pre-seed the Nix store (for pure flake builds without `--impure`) | ||
| # Add the tarball directly to `/nix/store` once: | ||
| # nix-store --add-fixed sha256 610-000397-020_SW_Linux_Luna_Client_V10.9.4_RevA.tar | ||
| # After this, pure flake commands work without `--impure`: | ||
| # sudo nixos-rebuild switch --flake .#provisioning-appliance-luna |
clundin25
reviewed
Sep 17, 2026
Comment on lines
-244
to
+284
| nixosConfigurations.provisioning-appliance = nixpkgs.lib.nixosSystem { | ||
| nixosConfigurations.provisioning-appliance-softhsm = nixpkgs.lib.nixosSystem { | ||
| system = "x86_64-linux"; | ||
| modules = [ | ||
| self.nixosModules.provisioning-appliance-profile | ||
| self.nixosModules.softhsm-profile | ||
| self.nixosModules.ci-profile | ||
| ./nix/hardware-configuration.nix | ||
| ({ lib, ... }: { | ||
| networking.hostName = "provisioning-appliance"; | ||
| system.stateVersion = "24.11"; | ||
| boot.loader.systemd-boot.enable = lib.mkDefault true; | ||
| boot.loader.efi.canTouchEfiVariables = lib.mkDefault true; | ||
| fileSystems."/" = lib.mkDefault { | ||
| device = "/dev/disk/by-label/nixos"; | ||
| fsType = "ext4"; | ||
| }; | ||
| }) | ||
| ]; | ||
| }; | ||
|
|
||
| nixosConfigurations.provisioning-appliance-luna = nixpkgs.lib.nixosSystem { | ||
| system = "x86_64-linux"; | ||
| modules = [ | ||
| self.nixosModules.provisioning-appliance-profile | ||
| self.nixosModules.luna-hsm-profile | ||
| self.nixosModules.ci-profile | ||
| ./nix/hardware-configuration.nix | ||
| ({ lib, ... }: { | ||
| networking.hostName = "provisioning-appliance"; | ||
| system.stateVersion = "24.11"; | ||
| boot.loader.systemd-boot.enable = lib.mkDefault true; | ||
| boot.loader.efi.canTouchEfiVariables = lib.mkDefault true; | ||
| fileSystems."/" = lib.mkDefault { | ||
| device = "/dev/disk/by-label/nixos"; |
Collaborator
There was a problem hiding this comment.
Let's do a single system definition for now. I do think we will want to do this eventually, but we should get things working and have a plan for how we want to distribute the OS
Collaborator
Author
There was a problem hiding this comment.
so you mean include both softhsm and the luna hsm client in one system definition?
Collaborator
There was a problem hiding this comment.
Sorry I should've clarified. Let's do just the Luna HSM for now.
I am working on a way to run integration tests against SoftHSM, de-coupled from the provisioning appliance
Collaborator
Author
There was a problem hiding this comment.
please take a look if that's what you were looking for
willyzha
force-pushed
the
nixos-luna-hsm-client
branch
from
September 17, 2026 20:33
7915498 to
19dfe50
Compare
willyzha
force-pushed
the
nixos-luna-hsm-client
branch
from
September 17, 2026 20:36
19dfe50 to
c801ea2
Compare
clundin25
approved these changes
Sep 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.