Transition to 24.11

This commit is contained in:
Vili Sinervä 2024-12-01 18:42:45 +02:00
parent f8e3204979
commit ce614b455b
No known key found for this signature in database
GPG key ID: DF8FEAF54EFAC996
8 changed files with 9 additions and 568 deletions

View file

@ -157,33 +157,6 @@
};
};
# Define systemd template unit for reporting status via ntfy
systemd.services =
let
services = [ "nixos-upgrade" ];
in
{
"notify-push@" = {
environment.SERVICE_ID = "%i";
path = [
"/run/wrappers"
"/run/current-system/sw"
];
script = ''
curl \
-H "Title:$(hostname) $SERVICE_ID $(systemctl show --property=Result $SERVICE_ID)" \
-d "$(journalctl --output cat -n 2 -u $SERVICE_ID)" \
https://ntfy.vsinerva.fi/service-notifs
'';
};
# Merge attributes for all monitored services
}
// (pkgs.lib.attrsets.genAttrs services (name: {
onFailure = pkgs.lib.mkBefore [ "notify-push@%i.service" ];
onSuccess = pkgs.lib.mkBefore [ "notify-push@%i.service" ];
}));
######################################## Misc. ##################################################
nixpkgs.config.allowUnfree = true;
@ -192,15 +165,6 @@
users.mutableUsers = false; # Force all user management to happen throught nix-files
security.pam.loginLimits = [
{
domain = "*";
type = "soft";
item = "nofile";
value = "8192";
}
];
boot.loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;