mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-03 15:41:02 +01:00
aerospace: rename userSettings → settings
This commit is contained in:
parent
23f2ba7ae0
commit
f302550865
1 changed files with 9 additions and 2 deletions
|
|
@ -39,6 +39,13 @@ in
|
||||||
{
|
{
|
||||||
meta.maintainers = with lib.maintainers; [ damidoug ];
|
meta.maintainers = with lib.maintainers; [ damidoug ];
|
||||||
|
|
||||||
|
imports = [
|
||||||
|
(lib.mkRenamedOptionModule
|
||||||
|
[ "programs" "aerospace" "userSettings" ]
|
||||||
|
[ "programs" "aerospace" "settings" ]
|
||||||
|
)
|
||||||
|
];
|
||||||
|
|
||||||
options.programs.aerospace = {
|
options.programs.aerospace = {
|
||||||
enable = lib.mkEnableOption "AeroSpace window manager";
|
enable = lib.mkEnableOption "AeroSpace window manager";
|
||||||
|
|
||||||
|
|
@ -98,7 +105,7 @@ in
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
userSettings = mkOption {
|
settings = mkOption {
|
||||||
inherit (tomlFormat) type;
|
inherit (tomlFormat) type;
|
||||||
default = { };
|
default = { };
|
||||||
example = lib.literalExpression ''
|
example = lib.literalExpression ''
|
||||||
|
|
@ -137,7 +144,7 @@ in
|
||||||
let
|
let
|
||||||
generatedConfig = tomlFormat.generate "aerospace" (
|
generatedConfig = tomlFormat.generate "aerospace" (
|
||||||
filterNulls (
|
filterNulls (
|
||||||
cfg.userSettings
|
cfg.settings
|
||||||
// lib.optionalAttrs cfg.launchd.enable {
|
// lib.optionalAttrs cfg.launchd.enable {
|
||||||
# Override these to avoid launchd conflicts
|
# Override these to avoid launchd conflicts
|
||||||
start-at-login = false;
|
start-at-login = false;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue