diff options
author | Simon Parri <simonparri@ganzeria.com> | 2025-06-02 16:32:31 -0500 |
---|---|---|
committer | Simon Parri <simonparri@ganzeria.com> | 2025-06-02 17:03:57 -0500 |
commit | 29a18f5a8fb6915fc1dccc5ddd26356f19b17dfa (patch) | |
tree | 05b978c1c2b0d9ac1123f2a2f39b4cee39ddf01d /modules/main.nix | |
parent | 55c399261c007a7d36e8d93d8f34667803d5e9bf (diff) | |
download | nixos-config-29a18f5a8fb6915fc1dccc5ddd26356f19b17dfa.tar.gz nixos-config-29a18f5a8fb6915fc1dccc5ddd26356f19b17dfa.zip |
Add "main" module and refactor hosts to use it
Diffstat (limited to 'modules/main.nix')
-rw-r--r-- | modules/main.nix | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/modules/main.nix b/modules/main.nix new file mode 100644 index 0000000..b5f6f74 --- /dev/null +++ b/modules/main.nix @@ -0,0 +1,23 @@ +{ lib, config, ... }: + +let cfg = config.this.main; +in +{ + options = { + this.main.enable = lib.mkEnableOption "Main-PC setup"; + }; + + config = lib.mkIf cfg.enable { + this.pc.enable = true; + this.gui.enable = true; + + this.overlays.emacs.enable = true; + + fonts.fontconfig.defaultFonts = { + serif = []; + sansSerif = []; + monospace = []; + emoji = []; + }; + }; +} |