Skip to content

Instantly share code, notes, and snippets.

@hugosenari
Last active February 24, 2023 06:50
Show Gist options
  • Save hugosenari/fec10af94a84cea1b73edcf1cadb9bd1 to your computer and use it in GitHub Desktop.
Save hugosenari/fec10af94a84cea1b73edcf1cadb9bd1 to your computer and use it in GitHub Desktop.
NixOS depracated options
{
services = [ "beegfs" "bird" "bird6" "beegfsEnable" "buildkite-agent" "cgmanager" "chronos" "couchpotato" "cryptpad" "dd-agent" "deepin"
"dnscrypt-proxy" "flashpolicyd" "fourStore" "fourStoreEndpoint" "fprot" "frab" "geoip-updater" "gogoclient" "kippo"
"mailpile" "marathon" "mathics" "meguca" "mesos" "moinmoin" "mwlib" "openfire" "openvpn" "osquery" "prey" "quagga" "racoon"
"railcar" "redis" "riak" "rmilter" "seeks" "shellinabox" "ssmtp" "venus" "virtuoso" "wakeonlan" "winstone"];
programs = ["bash" "oblogout" "qt5ct" "tilp2" "way-cooler"];
security = ["hideProcessInformation" "klogd" "rngd" "setuidOwners" "setuidPrograms"];
systemd = ["generator-packages"];
}
@hugosenari
Copy link
Author

because, looking at https://unix.stackexchange.com/questions/523454/nixos-use-services-on-non-nixos-os-eventually-with-only-user-rights
I was wondering what services I have enabled.

in nix repl

eval = import <nixpkgs/nixos> { configuration = ./configuration.nix; }
names = bl: builtins.filter (n: (! (builtins.elem n bl)) && eval.config.services.${n}.enable or eval.config.services.${n}.enabled or false) (builtins.attrNames eval.config.services)

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