2019-02-26 13:44:40 +01:00
|
|
|
{
|
2023-09-11 20:23:04 +02:00
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
with lib; {
|
2019-03-20 02:57:59 +01:00
|
|
|
environment.etc = mkIf (elem "etcfiles" config.machine.conffiles) {
|
2023-09-11 20:23:04 +02:00
|
|
|
"rofi.rasi".source = import ./etc/rofi.rasi.nix {inherit pkgs;};
|
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) {
|
2024-02-21 21:24:01 +01:00
|
|
|
# Bat breaks manpages
|
|
|
|
# https://github.com/sharkdp/bat/issues/2563
|
|
|
|
MANROFFOPT = "-c";
|
2020-05-26 16:30:51 +02:00
|
|
|
LC_CTYPE = "zh_CN.UTF-8";
|
|
|
|
MANPAGER = "sh -c 'col -bx | bat -l man -p'";
|
2020-05-26 16:34:50 +02:00
|
|
|
MPV_HOME = "/etc/mpv";
|
2020-05-26 16:30:51 +02:00
|
|
|
NIXPKGS_ALLOW_UNFREE = "1";
|
|
|
|
WINEDLLOVERRIDES = "winemenubuilder.exe=d";
|
2019-06-05 02:18:46 +02:00
|
|
|
# This breaks a lot of applications
|
|
|
|
# QT_SCALE_FACTOR="0.7";
|
2019-02-26 13:44:40 +01:00
|
|
|
};
|
|
|
|
}
|