1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-05 08:31:03 +01:00
home-manager/tests/integration/default.nix
DDoSolitary edbb012a21
dconf: support configuring specific user databases (#6301)
By default, dconf uses $XDG_CONFIG_HOME/dconf/user as the user database, but this can be changed by specifying user-db:<name> in a profile file and setting the DCONF_PROFILE environment variable to that profile. One may want to use different user databases for different DE/WMs to avoid collision.

Currently the module invokes dconf without touching DCONF_PROFILE, which means that 1) it is unable to configure multiple different user databases, and 2) the behavior of activation script will be affected by the DCONF_PROFILE environment variable when it is invoked, possibly leading to undesired results.

This PR adds a dconf.databases option, so that settings under dconf.databases.<name> will be written to $XDG_CONFIG_HOME/dconf/<name>. The old dconf.settings option is left as-is to avoid breaking compatibility.
2025-11-30 14:37:17 +01:00

36 lines
1.2 KiB
Nix

{ lib, pkgs }:
let
nixosLib = import "${pkgs.path}/nixos/lib" { };
runTest =
test:
nixosLib.runTest {
imports = [
test
{ node.pkgs = pkgs; }
];
hostPkgs = pkgs; # the Nixpkgs package set used outside the VMs
};
tests = lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
home-with-symbols = runTest ./standalone/home-with-symbols.nix;
kitty = runTest ./standalone/kitty.nix;
mu = runTest ./standalone/mu;
nh = runTest ./standalone/nh.nix;
nixos-basics = runTest ./nixos/basics.nix;
nixos-legacy-profile-management = runTest ./nixos/legacy-profile-management.nix;
rclone = runTest ./standalone/rclone;
rclone-sops-nix = runTest ./standalone/rclone/sops-nix.nix;
rclone-agenix = runTest ./standalone/rclone/agenix.nix;
restic = runTest ./standalone/restic.nix;
standalone-flake-basics = runTest ./standalone/flake-basics.nix;
standalone-specialisation = runTest ./standalone/specialisation.nix;
standalone-standard-basics = runTest ./standalone/standard-basics.nix;
dconf = runTest ./standalone/dconf.nix;
};
in
tests
// {
all = pkgs.linkFarm "all" (pkgs.lib.mapAttrsToList (name: path: { inherit name path; }) tests);
}