Reformatted with nixfmt
This commit is contained in:
parent
f51256c3ae
commit
3f16537322
80 changed files with 1454 additions and 992 deletions
|
@ -1,10 +1,11 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
osConfig ? {},
|
||||
osConfig ? { },
|
||||
namespace,
|
||||
...
|
||||
}: {
|
||||
}:
|
||||
{
|
||||
options.${namespace} = {
|
||||
isHeadless = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
|
@ -20,15 +21,13 @@
|
|||
};
|
||||
|
||||
config = lib.mkMerge [
|
||||
(
|
||||
lib.mkIf (!config.${namespace}.isHeadless) {
|
||||
${namespace} = {
|
||||
programs.firefox.enable = true;
|
||||
programs.kitty.enable = true;
|
||||
windowManagers.sway.enable = true;
|
||||
};
|
||||
}
|
||||
)
|
||||
(lib.mkIf (!config.${namespace}.isHeadless) {
|
||||
${namespace} = {
|
||||
programs.firefox.enable = true;
|
||||
programs.kitty.enable = true;
|
||||
windowManagers.sway.enable = true;
|
||||
};
|
||||
})
|
||||
(lib.mkIf (config.${namespace}.installDefaults) {
|
||||
${namespace} = {
|
||||
apps = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue