refactor: compose hosts and home-manager features explicitly
This commit is contained in:
@@ -1,3 +1,19 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
let
|
||||
homeModules = config.flake.modules.homeManager;
|
||||
baseSettings = import ./_noctalia-config.nix;
|
||||
portableSettings = lib.recursiveUpdate baseSettings {
|
||||
bar.widgets.right = baseSettings.bar.widgets.right ++ [
|
||||
{
|
||||
id = "Battery";
|
||||
}
|
||||
];
|
||||
};
|
||||
in
|
||||
{
|
||||
flake.modules.homeManager.noctalia =
|
||||
{
|
||||
@@ -17,7 +33,13 @@
|
||||
}
|
||||
);
|
||||
|
||||
settings = import ./_noctalia-config.nix;
|
||||
settings = baseSettings;
|
||||
};
|
||||
};
|
||||
|
||||
flake.modules.homeManager.noctalia-portable = {
|
||||
imports = [ homeModules.noctalia ];
|
||||
|
||||
programs.noctalia-shell.settings = lib.mkForce portableSettings;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user