Skip to content

Instantly share code, notes, and snippets.

View peti's full-sized avatar

Peter Simons peti

View GitHub Profile
@peti
peti / disable-gdm-auto-suspend.nix
Created October 2, 2018 15:32
Disable GDM's auto-suspension of the machine when no user is logged in
{ config, pkgs, lib, ... }: # disable-gdm-auto-suspend.nix
{
assertions = [
{ assertion = config.services.xserver.displayManager.gdm.enable;
message = "dont't include disable-gdm-auto-suspend.nix unless GDM is enabled";
}
];
programs.dconf.enable = true;
@peti
peti / README.md
Last active January 29, 2024 00:21
Make NixOS provide version-specific LOCALE_ARCHIVE environment variables

This NixOS code ensures that the system provide version-specific $LOCALE_ARCHIVE environment variables to mitigate the effects of NixOS/nixpkgs#38991.

To deploy it, copy the file into your /etc/nixos folder using a file name like multi-glibc-locale-paths.nix. Then edit your configuration.nix file to contain the attribute:

imports = [ ./multi-glibc-locale-paths.nix ];