2024-03-12 00:24:28 +01:00
|
|
|
{ options, config, pkgs, lib, ... }:
|
|
|
|
|
|
|
|
with lib;
|
2024-03-20 08:58:05 +01:00
|
|
|
with lib.metacfg;
|
|
|
|
let cfg = config.metacfg.system.interface;
|
2024-03-12 00:24:28 +01:00
|
|
|
in
|
|
|
|
{
|
2024-03-20 08:58:05 +01:00
|
|
|
options.metacfg.system.interface = with types; {
|
2024-03-12 00:24:28 +01:00
|
|
|
enable = mkEnableOption "macOS interface";
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
system.defaults = {
|
|
|
|
dock.autohide = true;
|
|
|
|
|
|
|
|
finder = {
|
|
|
|
AppleShowAllExtensions = true;
|
|
|
|
FXEnableExtensionChangeWarning = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
NSGlobalDomain = {
|
|
|
|
_HIHideMenuBar = true;
|
|
|
|
AppleShowScrollBars = "Always";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-03-20 08:58:05 +01:00
|
|
|
metacfg.home.file.".hushlogin".text = "";
|
2024-03-12 00:24:28 +01:00
|
|
|
};
|
|
|
|
}
|