2020-07-29 20:25:47 +01:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
let
|
|
|
|
mod = "Mod4";
|
|
|
|
in
|
|
|
|
{
|
|
|
|
services.dbus.packages = with pkgs; [ gnome2.GConf gnome3.dconf ];
|
|
|
|
services.dbus.socketActivated = true;
|
|
|
|
programs.sway.enable = true;
|
|
|
|
systemd.defaultUnit = "graphical.target";
|
|
|
|
home-manager.users.cyryl = {...}: {
|
|
|
|
programs.mako.enable = true;
|
|
|
|
|
|
|
|
imports = [
|
2020-08-01 11:29:15 +01:00
|
|
|
./keybindings.nix
|
2020-07-29 20:25:47 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
home.sessionVariables = {
|
2020-08-16 11:33:26 +01:00
|
|
|
XDG_CURRENT_DESKTOP="Unity";
|
|
|
|
SDL_VIDEODRIVER="wayland";
|
|
|
|
QT_QPA_PLATFORM="wayland-egl";
|
|
|
|
QT_WAYLAND_FORCE_DPI="physical";
|
|
|
|
QT_WAYLAND_DISABLE_WINDOWDECORATION="1";
|
2020-07-29 20:25:47 +01:00
|
|
|
};
|
|
|
|
|
2020-07-30 19:40:05 +01:00
|
|
|
home.packages = with pkgs; [
|
2020-08-16 11:58:06 +01:00
|
|
|
firefox-wayland
|
2020-07-30 19:40:05 +01:00
|
|
|
wl-clipboard
|
2020-08-01 09:04:57 +01:00
|
|
|
clipman
|
|
|
|
wofi
|
2020-08-16 11:33:26 +01:00
|
|
|
libappindicator-gtk3
|
2020-07-30 19:40:05 +01:00
|
|
|
];
|
2020-07-29 20:25:47 +01:00
|
|
|
|
2020-08-16 11:33:26 +01:00
|
|
|
services.udiskie.enable = true;
|
|
|
|
xsession.preferStatusNotifierItems = true;
|
|
|
|
|
2020-08-01 09:18:13 +01:00
|
|
|
home.file.".config/wofi/style.css".source = ../../.config/wofi/style.css;
|
2020-08-08 12:42:51 +01:00
|
|
|
home.file.".config/waybar/config".source = ../../.config/waybar/config;
|
|
|
|
home.file.".config/waybar/style.css".source = ../../.config/waybar/style.css;
|
2020-07-29 20:25:47 +01:00
|
|
|
wayland.windowManager.sway = {
|
|
|
|
enable = true;
|
|
|
|
wrapperFeatures.base = true;
|
|
|
|
wrapperFeatures.gtk = true;
|
|
|
|
|
2020-08-16 09:35:02 +01:00
|
|
|
extraConfig = ''
|
|
|
|
'';
|
2020-08-16 11:33:26 +01:00
|
|
|
extraSessionCommands = ''
|
|
|
|
'';
|
2020-07-29 20:25:47 +01:00
|
|
|
config = {
|
|
|
|
modifier = "${mod}";
|
2020-07-30 07:12:18 +01:00
|
|
|
menu = "${pkgs.wofi}/bin/wofi --show drun,run";
|
2020-08-01 09:04:57 +01:00
|
|
|
terminal = "${pkgs.alacritty}/bin/alacritty";
|
2020-08-08 12:42:51 +01:00
|
|
|
workspaceLayout = "tabbed";
|
2020-08-16 09:35:02 +01:00
|
|
|
window = {
|
|
|
|
hideEdgeBorders = "both";
|
|
|
|
titlebar = false;
|
|
|
|
};
|
2020-08-01 11:33:50 +01:00
|
|
|
bars = [
|
|
|
|
{
|
|
|
|
position = "top";
|
2020-08-08 12:42:51 +01:00
|
|
|
command = "${pkgs.waybar}/bin/waybar";
|
2020-08-01 11:33:50 +01:00
|
|
|
}
|
|
|
|
];
|
2020-08-01 09:04:57 +01:00
|
|
|
startup = [
|
2020-08-01 17:08:51 +01:00
|
|
|
{ command = "${pkgs.wl-clipboard}/bin/wl-paste -t text --watch ${pkgs.clipman}/bin/clipman store"; }
|
|
|
|
{ command = "${pkgs.clipman}/bin/clipman restore"; }
|
2020-08-01 18:05:39 +01:00
|
|
|
{ command = ''swayidle -w timeout 300 'swaylock -f -c 000000' timeout 600 'swaymsg "output * dpms off" && systemctl suspend' resume 'swaymsg "output * dpms on"' before-sleep 'swaylock -f -c 657b83'
|
2020-08-01 17:08:51 +01:00
|
|
|
''; }
|
2020-08-01 09:04:57 +01:00
|
|
|
];
|
2020-08-01 08:10:19 +01:00
|
|
|
output.eDP-1.scale = "1.7";
|
2020-08-01 08:45:05 +01:00
|
|
|
input."1:1:AT_Translated_Set_2_keyboard" = {
|
|
|
|
xkb_layout = "pl";
|
|
|
|
xkb_options = "caps:ctrl_modifier";
|
|
|
|
};
|
|
|
|
input."2:7:SynPS/2_Synaptics_TouchPad" = {
|
|
|
|
tap = "enabled";
|
|
|
|
};
|
2020-07-29 20:25:47 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|