nixos/config/etc.nix

21 lines
583 B
Nix
Raw Normal View History

2019-02-26 13:44:40 +01:00
{ config, lib, pkgs, ... }:
with lib;
2019-02-26 13:44:40 +01:00
{
environment.etc = mkIf (elem "etcfiles" config.machine.conffiles) {
2019-02-26 13:44:40 +01:00
"i3/config".source = ./etc/i3/config;
"i3/py3status".source = ./etc/i3/py3status;
"mpv/input.conf".source = ./etc/mpv/input.conf;
"mpv/mpv.conf".source = ./etc/mpv/mpv.conf;
"youtube-dl.conf".source = ./etc/youtube-dl.conf;
};
environment.variables = mkIf (elem "etcvars" config.machine.conffiles) {
2019-02-26 13:44:40 +01:00
EDITOR="emacsclient -ca nano";
NIXPKGS_ALLOW_UNFREE="1";
WINEDLLOVERRIDES="winemenubuilder.exe=d";
LC_CTYPE="zh_CN.UTF-8";
};
}