Modularized configuration now kind of works. (still need to do some refactoring)
This commit is contained in:
parent
a0f361425a
commit
14332b2c7b
24 changed files with 144 additions and 85 deletions
|
@ -1,7 +1,9 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
{
|
||||
environment.etc = {
|
||||
environment.etc = mkIf (elem "etcfiles" config.machine.conffiles) {
|
||||
"i3/config".source = ./etc/i3/config;
|
||||
"i3/py3status".source = ./etc/i3/py3status;
|
||||
"mpv/input.conf".source = ./etc/mpv/input.conf;
|
||||
|
@ -9,7 +11,7 @@
|
|||
"youtube-dl.conf".source = ./etc/youtube-dl.conf;
|
||||
};
|
||||
|
||||
environment.variables = {
|
||||
environment.variables = mkIf (elem "etcvars" config.machine.conffiles) {
|
||||
EDITOR="emacsclient -ca nano";
|
||||
NIXPKGS_ALLOW_UNFREE="1";
|
||||
WINEDLLOVERRIDES="winemenubuilder.exe=d";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue