Re: [Nix-dev] [nix-dev] private NixOS modules

2015-11-19 Thread Rok Garbas
i think musnix is a nice example how to do this: https://github.com/musnix/musnix Quoting Sergey Mironov (2015-11-18 10:45:54) > Oh, Thanks. I really should re-read the manual :) > > Sergey > > 2015-11-18 12:16 GMT+03:00 Nicolas Pierron : > > Hi Sergey, > > >

Re: [Nix-dev] [nix-dev] private NixOS modules

2015-11-18 Thread Nicolas Pierron
Hi Sergey, We have a some documenation in the NixOS Manual [1] which explains how to do that. To make it short, your configuration.nix file should have an import attribute which is a list of additional modules that you want to include. So if you file configuration.nix looks something like (a),

Re: [Nix-dev] [nix-dev] private NixOS modules

2015-11-18 Thread Sergey Mironov
Oh, Thanks. I really should re-read the manual :) Sergey 2015-11-18 12:16 GMT+03:00 Nicolas Pierron : > Hi Sergey, > > We have a some documenation in the NixOS Manual [1] which explains how > to do that. To make it short, your configuration.nix file should have > an

Re: [Nix-dev] [nix-dev] private NixOS modules

2015-11-18 Thread Sergey Mironov
Nicolas, I didn't know about NIXOS_EXTRA_MODULE_PATH, thanks. Could you explain other possible solution in a bit more details? How can we include modified module list in configuration.nix? Regards, Sergey 2015-11-17 17:43 GMT+03:00 Nicolas Pierron : > Hi Sergey, > >

Re: [Nix-dev] [nix-dev] private NixOS modules

2015-11-17 Thread Nicolas Pierron
Hi Sergey, I think you can set the NIXOS_EXTRA_MODULE_PATH [1] environment variable to achieve that. Otherwise, you can change your configuration.nix file to always include your new module list, and to include your own real-config.nix [1]

[Nix-dev] [nix-dev] private NixOS modules

2015-11-17 Thread Sergey Mironov
Hi. I'd like to write a couple of NixOS modules which probably don't look meaningful for large audience. Normally, we keep modules in nixpkgs/nixos/modules directory and list them in module-list.nix file. In my case, I'd like to put module in a private place (which is my git repo which keeps