NixOS: Flake input
Serpantinum provides flake outputs, a NixOS module for system dependencies, and a Home Manager module for user configuration and service management. This page covers the flake and the system module; see Home Manager for the user configuration.
Add the flake input
Add Serpantinum to your flake.nix:
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
serpantinum.url = "github:ilyamiro/serpantinum";
};
outputs = { self, nixpkgs, serpantinum, ... }: {
nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = { inherit serpantinum; };
modules = [
./configuration.nix
serpantinum.nixosModules.default
];
};
};
}
Enable the system module
Enable the NixOS module to configure system prerequisites:
{
programs.serpantinum.enable = true;
}
If you prefer installing the package directly without the system module:
{ pkgs, serpantinum, ... }:
{
environment.systemPackages = [
serpantinum.packages.${pkgs.stdenv.hostPlatform.system}.default
serpantinum.packages.${pkgs.stdenv.hostPlatform.system}.ski
];
}
This installs Ski without the system module. Setting it as the default file manager and the open / save dialog needs the system module.
Updating
Update the flake lockfile and rebuild your system:
nix flake update serpantinum
sudo nixos-rebuild switch --flake .