NJ5ENURMCBSNFQPNXXNUBMUXVJEBIGNH2T7EWGB63F3FV723BUWAC
{ config, pkgs, ... }:
{
config.wayland.windowManager.sway = {
enable = true;
config = {
bars = [];
gaps = {
inner = 2;
outer = 2;
smartGaps = true;
};
input = {
"*" = { natural_scroll = "enabled"; };
"touchpad" = { tap = "enabled"; };
};
workspaceAutoBackAndForth = true;
};
wrapperFeatures = {
base = true;
gtk = true;
};
};
config.programs.waybar = {
enable = true;
systemd.enable = true;
};
}
{ pkgs, config, ... }:
let
# TODO why does using `pkgs` here cause an infinite recursion?
# this works just seems ugly 🤷🤷🤷
isLinux = (import <nixpkgs> {}).stdenv.hostPlatform.isLinux;
in
if isLinux then
import ./sway.nix { pkgs = pkgs; config = config; }
else {
# TODO yabai & skhd or keep them in nix-darwin?
}
{ pkgs, config, ... }:
let
# TODO why does using `pkgs` here cause an infinite recursion?
# this works just seems ugly 🤷🤷🤷
isLinux = (import <nixpkgs> {}).stdenv.hostPlatform.isLinux;
in
if isLinux then
import ./alacritty.nix { pkgs = pkgs; config = config; }
else {}
{ pkgs, config, ... }:
{
config.programs.alacritty.enable = true;
# register alacritty as sway's terminal if alacritty is installed 😀
config.wayland.windowManager.sway.config.terminal = "${config.programs.alacritty.package}/bin/alacritty";
}