nix/os/devices/srv0.home-ch.stefanjunker.de: bump nixos 21.11 -> 22.05

This commit is contained in:
steveej 2022-10-30 16:11:21 +01:00
parent 46ef6bd0a6
commit dc761a5271
8 changed files with 32 additions and 22 deletions

View file

@ -7,9 +7,12 @@
let
passwords = import ../../variables/passwords.crypt.nix;
in {
in
{
config = { pkgs, ... }: {
system.stateVersion = "21.11"; # Did you read the comment?
imports = [
../profiles/containers/configuration.nix
../profiles/common/user.nix
@ -70,7 +73,7 @@ in {
serviceConfig.RestartSec = 600;
serviceConfig.Restart = "always";
description = "Getmail service";
path = [ ];
path = [ pkgs.getmail6 ];
script = let
rc = pkgs.writeText "mailATstefanjunker.de.getmail.rc" ''
[options]
@ -91,7 +94,7 @@ in {
path = ${pkgs.dovecot}/libexec/dovecot/dovecot-lda
'';
in ''
${pkgs.getmail}/bin/getmail --rcfile=${rc} --idle=INBOX
getmail --rcfile=${rc} --idle=INBOX
'';
};
@ -101,7 +104,7 @@ in {
serviceConfig.User = "steveej";
serviceConfig.Group = "dovecot2";
description = "Getmail service";
path = [ pkgs.getmail ];
path = [ pkgs.getmail6 ];
serviceConfig.RestartSec = 1000;
serviceConfig.Restart = "always";
script = let