Skip to content

smallstep/nur

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Smallstep Nix User Repositories

A collection of Smallstep software packaged for NixOS/nixpkgs

Setup for NixOS

Flakes is the suggested way to install the packages available on this repository, following are quick instructions to get it working.

  1. Ensure flakes and experimental features are enabled in /etc/nixos/configuration.nix:
nix.settings.experimental-features = [ "nix-command" "flakes" ];
  1. Ensure Git is installed: Flakes require git to clone dependencies:
environment.systemPackages = with pkgs; [
  git
];
  1. Rebuild: Run the following command to apply the changes:
sudo nixos-rebuild switch
  1. Initialize flakes:
cd /etc/nixos
sudo nix flake init
  1. Add smallstep repository to flake.nix, this example also installs the latest step-agent-plugin.

Important:

  • Update <host> to match your NixOS configured host name, as listed in networking.hostName in configuration.nix.
  • Update "x86_64-linux" to your CPU architecture, e.g. "aarch64-linux". It will autodetect by default if builtins are available.
{
	inputs = {
		# Or change to your preferred NixOS channel
		nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
		smallstep = {
			url = "github:smallstep/nur";
			inputs.nixpkgs.follows = "nixpkgs";
		};
	};

	outputs = { self, nixpkgs, smallstep, ... }: 
		let
		system = if builtins ? currentSystem
			then builtins.currentSystem
			else "x86_64-linux";
		in
		{
		    nixosConfigurations.<host> = nixpkgs.lib.nixosSystem {
			inherit system;
			modules = [ ./configuration.nix 
				({ pkgs, ... }: {
					programs.nix-ld.enable = true;
					environment.systemPackages = with pkgs; [
						smallstep.packages.${pkgs.system}.step-agent-plugin
					];
				})
			];
		    };
		};
}
  1. Update flakes and install packages:
sudo nix flake update
sudo nixos-rebuild switch

Build and populate cache

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •