home

My NixOS systems configurations.
Log | Files | Refs | LICENSE

server.nix (276B)


      1 { config, lib, pkgs, ... }:
      2 let
      3   inherit (lib) mkEnableOption mkIf mkOption types;
      4   cfg = config.modules.hardware.server;
      5 in
      6 {
      7   options = {
      8     modules.hardware.server = {
      9       enable = mkEnableOption "Enable server profile";
     10     };
     11   };
     12   config = mkIf cfg.enable { };
     13 }