summaryrefslogtreecommitdiff
path: root/nixos/gui.nix
diff options
context:
space:
mode:
authorQuentin Aristote <quentin@aristote.fr>2023-02-11 18:12:03 +0100
committerQuentin Aristote <quentin@aristote.fr>2023-02-15 21:55:27 +0100
commit0afbdaa261653e73a4f2f39d7529114989474a64 (patch)
tree08df68b6c1a92708566e0e716d11d619e37d1621 /nixos/gui.nix
parent7714f2c6a4c77e616fd3c64868c10337b9ca3a1e (diff)
factor out common configuration options
Diffstat (limited to 'nixos/gui.nix')
-rw-r--r--nixos/gui.nix23
1 files changed, 23 insertions, 0 deletions
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;
+}