Transition to 24.11
This commit is contained in:
parent
f8e3204979
commit
ce614b455b
8 changed files with 9 additions and 568 deletions
36
base.nix
36
base.nix
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue