[Nix-dev] Modular config and lists

Mark Gardner mkg at vt.edu
Mon Apr 24 18:21:42 CEST 2017


I separated my configuration into different files by functionality. The
goal is to keep like things together and import them as needed to create
the final configuration.nix.

My virtualization.nix currently contains:

{ config, pkgs, ... }:
let
  groups = config.users.users.
​myuser>.
extraGroups;
in
{
  virtualisation = {
    libvirtd.enable = true;
  };
  users.users.
​myuser
.extraGroups = groups ++ [ "libvirtd" ];
}

​but nixos-rebuild gives "​infinite recursion encountered". How do I set
things up so that myuser's group membership will include not only what is
defined in extraGroup somewhere else but also "libvirtd"?

Mark
-- 
Mark Gardner
--
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.science.uu.nl/pipermail/nix-dev/attachments/20170424/4c809c67/attachment.html>


More information about the nix-dev mailing list