nix/module/Sway.nix

43 lines
998 B
Nix
Raw Normal View History

2024-03-28 04:27:37 +03:00
{ pkgs, lib, ... }: {
2024-03-28 07:51:33 +03:00
imports = [
./desktop/App.nix
2024-03-28 12:01:06 +03:00
./desktop/Bluetooth.nix
./desktop/Brightness.nix
2024-03-28 07:51:33 +03:00
./desktop/Dconf.nix
2024-03-28 12:01:06 +03:00
./desktop/Portal.nix
./desktop/Realtime.nix
2024-03-28 07:51:33 +03:00
./desktop/Sound.nix
];
2024-03-28 04:27:37 +03:00
services.gnome.gnome-keyring.enable = lib.mkForce false;
environment.systemPackages = with pkgs; [
2024-03-28 12:02:19 +03:00
grim slurp # Screenshot.
mako # Notification system.
2024-03-28 11:39:44 +03:00
networkmanagerapplet # Internet configuration.
2024-03-28 12:02:19 +03:00
pamixer pavucontrol pulseaudio # Audio.
2024-03-31 01:37:15 +03:00
sway-contrib.inactive-windows-transparency
2024-03-28 12:02:19 +03:00
wl-clipboard # Clipboard.
2024-03-28 04:27:37 +03:00
];
programs.sway = {
enable = true;
wrapperFeatures = {
base = true;
gtk = true;
};
extraOptions = [
"--config=${./sway/Config}"
];
};
2024-03-29 04:34:01 +03:00
environment = {
variables = {
FOOT_CONFIG = ./foot/Foot.ini;
SWAY_CONFIG = ./sway/module;
2024-03-31 01:37:15 +03:00
SWAY_SCRIPT_IWT = "${pkgs.sway-contrib.inactive-windows-transparency}/bin/inactive-windows-transparency.py";
# PATH = [ "/etc/swaybin" ]; # NOTE: Kept as an example on PATH modification.
2024-03-29 04:34:01 +03:00
};
2024-03-28 04:27:37 +03:00
};
}