about summary refs log tree commit diff stats
path: root/modules/by-name/ms/msr/module.nix
blob: 521b3a401843b613e6f7883df0a854aef6371fdf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{
  config,
  lib,
  ...
}: let
  cfg = config.soispha.msr;
in {
  options.soispha.msr = {
    enable = (lib.mkEnableOption "msr") // {default = config.hardware.cpu.x86.msr.enable;};
  };

  config = lib.mkIf cfg.enable {
    users = {
      groups.msr.gid = config.soispha.constants.ids.gids.msr;
    };
  };
}