From c96b2471e8278649c124adb80629d0ff9338c40f Mon Sep 17 00:00:00 2001 From: Gonne Date: Sun, 10 Nov 2024 16:08:58 +0100 Subject: [PATCH] Move package installation to module (does not work) --- nixos/machines/kaalut/configuration.nix | 4 ++-- nixos/modules/mail.nix | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/nixos/machines/kaalut/configuration.nix b/nixos/machines/kaalut/configuration.nix index 845a8c4..3af66cf 100644 --- a/nixos/machines/kaalut/configuration.nix +++ b/nixos/machines/kaalut/configuration.nix @@ -1,4 +1,4 @@ -{flake-inputs, ...}: { +{...}: { imports = [ ./hardware-configuration.nix ../../modules/mail.nix @@ -8,7 +8,7 @@ ]; # 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 = { enable = true; diff --git a/nixos/modules/mail.nix b/nixos/modules/mail.nix index bf04c4d..cda21a0 100644 --- a/nixos/modules/mail.nix +++ b/nixos/modules/mail.nix @@ -2,6 +2,7 @@ config, lib, pkgs, + flake-inputs, ... }: let inherit @@ -30,6 +31,8 @@ in { }; config = mkIf cfg.enable { + environment.systemPackages = [flake-inputs.alias-to-sieve.packages.x86_64-linux.default]; + services = { stalwart-mail = { enable = true;