2024-05-30 16:25:20 +03:00
|
|
|
{ pkgs, lib, ... } @args: let
|
2024-05-12 02:17:20 +03:00
|
|
|
sway = import ./desktop/sway args;
|
2024-04-06 03:03:58 +03:00
|
|
|
config = pkgs.writeText "swayConfig" sway.config;
|
2024-05-08 18:26:33 +03:00
|
|
|
script = pkgs.writeShellScriptBin "swayscript" sway.script;
|
2024-04-02 23:43:11 +03:00
|
|
|
in {
|
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-05-02 04:47:21 +03:00
|
|
|
./desktop/Waybar.nix
|
2024-05-04 23:15:57 +03:00
|
|
|
./desktop/Wayland.nix
|
2024-03-28 07:51:33 +03:00
|
|
|
];
|
|
|
|
|
2024-03-28 04:27:37 +03:00
|
|
|
services.gnome.gnome-keyring.enable = lib.mkForce false;
|
2024-05-21 00:58:49 +03:00
|
|
|
environment = {
|
|
|
|
systemPackages = with pkgs; [
|
2024-06-22 23:34:03 +03:00
|
|
|
fuzzel # Application launcher.
|
2024-05-21 00:58:49 +03:00
|
|
|
grim slurp # Screenshot.
|
|
|
|
mako # Notification system.
|
|
|
|
networkmanagerapplet # Internet configuration.
|
|
|
|
pamixer pavucontrol pulseaudio # Audio.
|
|
|
|
playerctl # Multimedia controls.
|
|
|
|
script # My custom Sway shell scripts.
|
|
|
|
];
|
|
|
|
|
|
|
|
variables.XDG_CURRENT_DESKTOP = "sway";
|
|
|
|
};
|
2024-03-28 04:27:37 +03:00
|
|
|
|
|
|
|
programs.sway = {
|
|
|
|
enable = true;
|
|
|
|
wrapperFeatures = {
|
|
|
|
base = true;
|
|
|
|
gtk = true;
|
|
|
|
};
|
|
|
|
extraOptions = [
|
2024-04-06 03:03:58 +03:00
|
|
|
"--config=${config}"
|
2024-03-28 04:27:37 +03:00
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|