mirror of
https://github.com/nix-community/home-manager.git
synced 2025-03-31 04:04:32 +00:00
nixos: add QT_QPA_PLATFORM environment variable
This commit is contained in:
parent
9fabb92d8e
commit
db02790945
1 changed files with 7 additions and 3 deletions
|
@ -14,9 +14,13 @@ let
|
|||
baseUnit = username: {
|
||||
description = "Home Manager environment for ${username}";
|
||||
stopIfChanged = false;
|
||||
environment = optionalAttrs (cfg.backupFileExtension != null) {
|
||||
HOME_MANAGER_BACKUP_EXT = cfg.backupFileExtension;
|
||||
} // optionalAttrs cfg.verbose { VERBOSE = "1"; };
|
||||
environment = {
|
||||
# needed to run qt programs like kwriteconfig
|
||||
QT_QPA_PLATFORM = "offscreen";
|
||||
HOME_MANAGER_BACKUP_EXT =
|
||||
mkIf (cfg.backupFileExtension != null) cfg.backupFileExtension;
|
||||
VERBOSE = mkIf cfg.verbose "1";
|
||||
};
|
||||
serviceConfig = baseService username;
|
||||
};
|
||||
# we use a service separated from nixos-activation
|
||||
|
|
Loading…
Add table
Reference in a new issue