Following steps can be used to start the cgserver on NixOS:
-
clone the "cgserver" branch of my nixpkgs repository, e.g.:
git clone -b cgserver https://github.com/4z3/nixpkgs /tmp/cgserver-nixpkgs
-
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
.
-
rebuild the system:
sudo nixos-rebuild -I nixpkgs=/tmp/cgserver-nixpkgs switch