diff options
author | worldofpeace <worldofpeace@protonmail.ch> | 2020-04-27 22:35:31 -0400 |
---|---|---|
committer | worldofpeace <worldofpeace@protonmail.ch> | 2020-04-29 13:23:35 -0400 |
commit | 62587f43ddf884335f2ed0ee83673d9ffa9a2465 (patch) | |
tree | 83c9424c301557f6636a1e12555fa9623e8de0d3 /nixos/modules/services/x11/display-managers/lightdm.nix | |
parent | 6a627c416fe663ac16064f7a155afba9522910e4 (diff) | |
download | nixpkgs-62587f43ddf884335f2ed0ee83673d9ffa9a2465.tar nixpkgs-62587f43ddf884335f2ed0ee83673d9ffa9a2465.tar.gz nixpkgs-62587f43ddf884335f2ed0ee83673d9ffa9a2465.tar.bz2 nixpkgs-62587f43ddf884335f2ed0ee83673d9ffa9a2465.tar.lz nixpkgs-62587f43ddf884335f2ed0ee83673d9ffa9a2465.tar.xz nixpkgs-62587f43ddf884335f2ed0ee83673d9ffa9a2465.tar.zst nixpkgs-62587f43ddf884335f2ed0ee83673d9ffa9a2465.zip |
nixos-artwork: add file path attributes
This makes things so much easier, and we install to the path that both gnome-backgrounds and elementary-wallpapers install to.
Diffstat (limited to 'nixos/modules/services/x11/display-managers/lightdm.nix')
-rw-r--r-- | nixos/modules/services/x11/display-managers/lightdm.nix | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/nixos/modules/services/x11/display-managers/lightdm.nix b/nixos/modules/services/x11/display-managers/lightdm.nix index 479548863b4..1ebc4b5930e 100644 --- a/nixos/modules/services/x11/display-managers/lightdm.nix +++ b/nixos/modules/services/x11/display-managers/lightdm.nix @@ -133,7 +133,8 @@ in background = mkOption { type = types.str; - default = "${pkgs.nixos-artwork.wallpapers.simple-dark-gray-bottom}/share/artwork/gnome/nix-wallpaper-simple-dark-gray_bottom.png"; + # Manual cannot depend on packages, we are actually setting the default in config below. + defaultText = "pkgs.nixos-artwork.wallpapers.simple-dark-gray-bottom.gnomeFilePath"; description = '' The background image or color to use. ''; @@ -212,6 +213,9 @@ in } ]; + # Keep in sync with the defaultText value from the option definition. + services.xserver.displayManager.lightdm.background = mkDefault pkgs.nixos-artwork.wallpapers.simple-dark-gray-bottom.gnomeFilePath; + # Set default session in session chooser to a specified values – basically ignore session history. # Auto-login is already covered by a config value. services.xserver.displayManager.job.preStart = optionalString (!cfg.autoLogin.enable && dmcfg.defaultSession != null) '' |