From 29a18f5a8fb6915fc1dccc5ddd26356f19b17dfa Mon Sep 17 00:00:00 2001 From: Simon Parri Date: Mon, 2 Jun 2025 16:32:31 -0500 Subject: Add "main" module and refactor hosts to use it --- modules/main.nix | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 modules/main.nix (limited to 'modules/main.nix') 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 = []; + }; + }; +} -- cgit v1.2.3