Skip to content

Instantly share code, notes, and snippets.

@4z3
Last active August 29, 2015 14:08
Show Gist options
  • Save 4z3/b0f0a87ee0744b9ea358 to your computer and use it in GitHub Desktop.
Save 4z3/b0f0a87ee0744b9ea358 to your computer and use it in GitHub Desktop.
enable cgserver on nixos

Following steps can be used to start the cgserver on NixOS:

  1. clone the "cgserver" branch of my nixpkgs repository, e.g.:

    git clone -b cgserver https://github.com/4z3/nixpkgs /tmp/cgserver-nixpkgs

  2. enable the cgserver in the /etc/nixos/configuration.nix by adding:

    services.cgserver.enable = true;

This will enable the cgserver using a dedicated user called cgserver, that listens to port 8001, and manages /sys/fs/cgroup.

  1. rebuild the system:

    sudo nixos-rebuild -I nixpkgs=/tmp/cgserver-nixpkgs switch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment