In Home Manager, why use a module instead of a package and config file?

This page summarizes the projects mentioned and recommended in the original post on /r/NixOS

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • Home Manager using Nix

    Manage a user environment using Nix [maintainer=@rycee]

  • With Home Manager, I can do the same as I would on Arch, but I can also instead use a module: https://github.com/nix-community/home-manager/blob/master/modules/programs/kitty.nix

  • nixpkgs

    Nix Packages collection & NixOS

  • However, Nix modules are designed to integrate a package with the entire system. For example, in that Kitty home-manager module, it defines xdg.configFile."kitty/kitty.conf", which manages the file ~/.config/kitty/kitty.conf in a declarative way. The Kitty Nix module allows you to manage all of the parts of Kitty scattered around the system (such as its configuration file) in a declarative way, with all of the benefits that declarative and immutable configuration files bring (rollbacks, easy saving in git, easy provisioning on new machines, ...). In this specific case of Kitty, that doesn't sound that helpful. However, for complicated services such as Nextcloud with many options, the Nextcloud NixOS module allows you to easily declaratively specify Nextcloud settings without having to mess with random configuration files.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • An Overview of Nix in Practice

    9 projects | news.ycombinator.com | 12 Nov 2023
  • Trouble with sxhkd (bspwm)

    4 projects | /r/NixOS | 6 Feb 2023
  • [Question] unable to install packages after computer crash

    2 projects | /r/NixOS | 30 Jan 2023
  • Getting "undefined variable 'raw' " message

    2 projects | /r/NixOS | 16 Jun 2022
  • Clarify my understanding of Modules?

    2 projects | /r/NixOS | 10 Apr 2022