Pure Nix Configuration

note

If you completed setup with flake-parts' flakeModule, you can skip this section and jump to nixos module setup

The option is identical to flakeModule, but different way to perform nix app producing.

vaultix = inputs.vaultix.configure { localFlake = self; # different from flakeModule way # identical nodes = self.nixosConfigurations; identity = self + "/age-yubikey-identity-deadbeef.txt.pub"; extraRecipients = [ ]; cache = "./secret/.cache"; };

In this way your flake will looks like:

{ description = "An Example"; inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; vaultix.url = "github:milieuim/vaultix"; }; outputs = { self, nixpkgs, vaultix, ... }@inputs: { nixosConfigurations.my-nixos = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; specialArgs = { inherit self; }; modules = [ inputs.vaultix.nixosModules.default ./configuration.nix ]; # ... }; vaultix = vaultix.configure { localFlake = self; # different from flakeModule way # identical with flakeModule way nodes = self.nixosConfigurations; identity = self + "/age-yubikey-identity-deadbeef.txt.pub"; extraRecipients = [ ]; cache = "./secret/.cache"; }; }; }