From 0afbdaa261653e73a4f2f39d7529114989474a64 Mon Sep 17 00:00:00 2001 From: Quentin Aristote Date: Sat, 11 Feb 2023 18:12:03 +0100 Subject: factor out common configuration options --- nixos/gui.nix | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 nixos/gui.nix (limited to 'nixos/gui.nix') diff --git a/nixos/gui.nix b/nixos/gui.nix new file mode 100644 index 0000000..82a1328 --- /dev/null +++ b/nixos/gui.nix @@ -0,0 +1,23 @@ +{ config, pkgs, nixpkgs, ... }: + +let background-image = config.home-manager.users.qaristote.home.wallpaper; +in { + personal.gui = { + enable = true; + xserver.enable = true; + i3.enable = true; + }; + + services.xserver = { + displayManager.lightdm = { + background = background-image; + greeters.gtk = { + extraConfig = '' + user-background = false + ''; + }; + }; + }; + + programs.steam.enable = true; +} -- cgit v1.2.3