mirror of
https://github.com/ellmau/nixos.git
synced 2025-12-19 09:29:36 +01:00
* switch to sway * Add greetd pam integration, Add waybar base config * waybar (multiple modules do not behave as documented) * nm-applet * systemd-integration due to "normal" call via greetd configure mako adding base commands for nm-applet, blueman-applet * add kanshi * swayconfig keybindings for special multimedia keys * waybar base stylefile + basic modules * Add more portals to wayland/sway and fix fonts * Add nixosConfiguration-awareness to the homemanager module * Add alacritty.nix for home-manager configuration * Add formatter to flake * Format with alejandra style * Add apheleia to emacs * Add local configuration to use alejandra in this flake with emacs
40 lines
966 B
Nix
40 lines
966 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
with lib; {
|
|
options.elss.server = {
|
|
acme.staging = mkEnableOption "Whether to use the staging or the default server for acme";
|
|
enable = mkEnableOption "Enable Mail, Web, and DB";
|
|
nginx.enable = mkEnableOption "Set up nginx";
|
|
sql.enable = mkEnableOption "Set up sql (postresql)";
|
|
nextcloud.enable = mkEnableOption "Set up nextcloud";
|
|
smailserver.enable = mkEnableOption "Set up simple mail server";
|
|
unbound.enable = mkEnableOption "Set unbound dns up";
|
|
};
|
|
|
|
imports = [
|
|
./acme.nix
|
|
./nextcloud.nix
|
|
./nginx.nix
|
|
./smailserver.nix
|
|
./sql.nix
|
|
./unbound.nix
|
|
];
|
|
|
|
config = let
|
|
cfg = config.elss.server;
|
|
in
|
|
mkIf cfg.enable {
|
|
elss.server = {
|
|
nginx.enable = mkDefault true;
|
|
sql.enable = mkDefault true;
|
|
smailserver.enable = mkDefault true;
|
|
nextcloud.enable = mkDefault true;
|
|
unbound.enable = mkDefault true;
|
|
};
|
|
};
|
|
}
|