2019-05-09 18:28:40 +02:00
|
|
|
{ config, lib, ... }:
|
2019-02-26 13:44:40 +01:00
|
|
|
|
2019-03-20 02:57:59 +01:00
|
|
|
with lib;
|
|
|
|
|
2019-02-26 13:44:40 +01:00
|
|
|
{
|
2019-03-20 02:57:59 +01:00
|
|
|
environment.etc = mkIf (elem "etcfiles" config.machine.conffiles) {
|
2019-02-26 13:44:40 +01:00
|
|
|
"i3/py3status".source = ./etc/i3/py3status;
|
2019-05-04 13:47:21 +02:00
|
|
|
"sway/config".source = mkDefault ./etc/sway/config;
|
2019-02-26 13:44:40 +01:00
|
|
|
"mpv/input.conf".source = ./etc/mpv/input.conf;
|
|
|
|
"mpv/mpv.conf".source = ./etc/mpv/mpv.conf;
|
|
|
|
"youtube-dl.conf".source = ./etc/youtube-dl.conf;
|
|
|
|
};
|
|
|
|
|
2019-03-20 02:57:59 +01:00
|
|
|
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";
|
2019-05-19 06:33:32 +02:00
|
|
|
QT_SCALE_FACTOR="0.7";
|
2019-02-26 13:44:40 +01:00
|
|
|
};
|
|
|
|
}
|