Move Nix files back to the root of the project
This commit is contained in:
parent
52044d9995
commit
087153a16d
223 changed files with 12 additions and 12 deletions
6
home/opdavies/modules/default.nix
Normal file
6
home/opdavies/modules/default.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
imports = [
|
||||
./node.nix
|
||||
./ranger.nix
|
||||
];
|
||||
}
|
||||
17
home/opdavies/modules/node.nix
Normal file
17
home/opdavies/modules/node.nix
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{ config, ... }:
|
||||
|
||||
let
|
||||
inherit (config.xdg) configHome dataHome stateHome;
|
||||
in
|
||||
{
|
||||
xdg.configFile."${config.home.sessionVariables.NPM_CONFIG_USERCONFIG}".text = ''
|
||||
cache=${configHome}/npm
|
||||
init-module=${configHome}/npm/config/npm-init.js
|
||||
logs-dir=${stateHome}/npm/logs
|
||||
prefix=${dataHome}/npm
|
||||
'';
|
||||
|
||||
home.sessionVariables = {
|
||||
NPM_CONFIG_USERCONFIG = "${configHome}/npm/npmrc";
|
||||
};
|
||||
}
|
||||
5
home/opdavies/modules/ranger.nix
Normal file
5
home/opdavies/modules/ranger.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
programs.ranger = {
|
||||
enable = true;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue