NixOS: A purely functional Linux distribution
- 1 January 2010
- journal article
- research article
- Published by Cambridge University Press (CUP) in Journal of Functional Programming
- Vol. 20 (5-6) , 577-615
Abstract
Existing package and system configuration management tools suffer from an imperative model , where system administration actions such as package upgrades or changes to system configuration files are stateful: they destructively update the state of the system. This leads to many problems, such as the inability to roll back changes easily, to deploy multiple versions of a package side-by-side, to reproduce a configuration deterministically on another machine, or to reliably upgrade a system. In this paper we show that we can overcome these problems by moving to a purely functional system configuration model . This means that all static parts of a system (such as software packages, configuration files and system startup scripts) are built by pure functions and are immutable, stored in a way analogous to a heap in a purely functional language. We have implemented this model in NixOS , a non-trivial Linux distribution that uses the Nix package manager to build the entire system configuration from a modular, purely functional specification.Keywords
This publication has 8 references indexed in Scilit:
- Experience report2007
- Secure sharing between untrusted users in a transparent source/binary deployment model2005
- A principled approach to operating system construction in Haskell2005
- Imposing a memory management discipline on software deployment2004
- The Odin SystemLecture Notes in Computer Science, 1995
- Implementing lazy functional languages on stock hardware: the Spineless Tagless G-machineJournal of Functional Programming, 1992
- Conception, evolution, and application of functional programming languagesACM Computing Surveys, 1989
- Make — a program for maintaining computer programsSoftware: Practice and Experience, 1979