From 125935ac0f5320b3adf955fc0411dda665bcd8cf Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Sun, 9 May 2021 11:56:28 +0200 Subject: [PATCH] profiles: add X --- profiles/default.nix | 1 + profiles/x.nix | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 profiles/x.nix diff --git a/profiles/default.nix b/profiles/default.nix index fb3d4f4..eea1a11 100644 --- a/profiles/default.nix +++ b/profiles/default.nix @@ -5,5 +5,6 @@ ./bluetooth.nix ./gtk.nix ./wm.nix + ./x.nix ]; } diff --git a/profiles/x.nix b/profiles/x.nix new file mode 100644 index 0000000..e9d9cfd --- /dev/null +++ b/profiles/x.nix @@ -0,0 +1,23 @@ +{ config, lib, pkgs, ... }: +let + cfg = config.my.profiles.x; +in +{ + options.my.profiles.x = with lib; { + enable = mkEnableOption "X profile"; + }; + + config = lib.mkIf cfg.enable { + # Enable the X11 windowing system. + services.xserver.enable = true; + # Nice wallpaper + services.xserver.displayManager.lightdm.background = + let + wallpapers = "${pkgs.plasma-workspace-wallpapers}/share/wallpapers"; + in + "${wallpapers}/summer_1am/contents/images/2560x1600.jpg"; + + # X configuration + my.home.x.enable = true; + }; +}