Move package installation to module (does not work)

This commit is contained in:
Gonne 2024-11-10 16:08:58 +01:00
parent 54f78f5e3e
commit c96b2471e8
2 changed files with 5 additions and 2 deletions

View file

@ -1,4 +1,4 @@
{flake-inputs, ...}: { {...}: {
imports = [ imports = [
./hardware-configuration.nix ./hardware-configuration.nix
../../modules/mail.nix ../../modules/mail.nix
@ -8,7 +8,7 @@
]; ];
# System configuration here # System configuration here
environment.systemPackages = [flake-inputs.alias-to-sieve.packages.x86_64-linux.default]; # environment.systemPackages = [flake-inputs.alias-to-sieve.packages.x86_64-linux.default];
services.mathebau-mail = { services.mathebau-mail = {
enable = true; enable = true;

View file

@ -2,6 +2,7 @@
config, config,
lib, lib,
pkgs, pkgs,
flake-inputs,
... ...
}: let }: let
inherit inherit
@ -30,6 +31,8 @@ in {
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
environment.systemPackages = [flake-inputs.alias-to-sieve.packages.x86_64-linux.default];
services = { services = {
stalwart-mail = { stalwart-mail = {
enable = true; enable = true;