about summary refs log tree commit diff
path: root/modules/wayland.nix
blob: 7a9820d5f95e6f2c9aed42e7c43a8a157c2c6411 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{
  config,
  lib,
  pkgs,
  ...
}:
with lib;
let
  cfg = config.nixfiles.modules.wayland;
in
{
  options.nixfiles.modules.wayland.enable = mkEnableOption "Wayland";

  config = mkIf cfg.enable {
    nixfiles.modules.foot.enable = true;

    hm.home = {
      packages = with pkgs; [ wl-clipboard ];

      sessionVariables.NIXOS_OZONE_WL = 1;
    };
  };
}

Consider giving Nix/NixOS a try! <3