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; + }; +}