flake-update-20260201
 1{
 2  pkgs,
 3  ...
 4}:
 5{
 6  imports = [
 7    ./tiling-common.nix
 8  ];
 9
10  environment.systemPackages = with pkgs; [
11    xwayland-satellite
12    wlogout
13  ];
14
15  xdg.portal = {
16    config.niri = {
17      default = [
18        "gnome"
19        "gtk"
20      ];
21      "org.freedesktop.impl.portal.Access" = "gtk";
22      "org.freedesktop.impl.portal.Notification" = "gtk";
23      "org.freedesktop.impl.portal.Secret" = "gnome-keyring";
24      "org.freedesktop.impl.portal.FileChooser" = "gtk";
25      "org.freedesktop.impl.portal.ScreenCast" = "gnome";
26      "org.freedesktop.portal.ScreenCast" = "gnome";
27    };
28  };
29
30  # Allow swaylock to unlock the computer for us
31  security.pam.services.swaylock = {
32    text = "auth include login";
33  };
34
35  programs.niri.enable = true;
36  # services.greetd.settings = {
37  #   default_session = {
38  #     # command = "${pkgs.greetd.greetd}/bin/agreety --cmd niri";
39  #     command = "${
40  #       lib.makeBinPath [ pkgs.greetd.tuigreet ]
41  #     }/tuigreet -r --asterisks --time --cmd ${niriRun}";
42  #     users = "greeter";
43  #   };
44  #   initial_session = {
45  #     command = "${niriRun}";
46  #     user = "vincent";
47  #   };
48  # };
49}