wip on sway

This commit is contained in:
Cyryl Płotnicki 2020-07-29 20:25:47 +01:00
parent 0fb3e72df2
commit f527cd96e7
4 changed files with 41 additions and 38 deletions

View file

@ -7,13 +7,13 @@
./hardware-configuration.nix ./hardware-configuration.nix
../../boot.nix ../../boot.nix
../../common.nix ../../common.nix
../../gfx-nvidia-optimus.nix ../../gfx-intel.nix
../../zerotier.nix ../../zerotier.nix
../../distributed-builds.nix ../../distributed-builds.nix
../../libvirt.nix ../../libvirt.nix
../../backups.nix ../../backups.nix
../../gui ../../gui
../../gnome ../../sway
../../git ../../git
]; ];

39
nixos/sway/default.nix Normal file
View file

@ -0,0 +1,39 @@
{ 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 = [
];
home.sessionVariables = {
};
wayland.windowManager.sway = {
enable = true;
wrapperFeatures.base = true;
wrapperFeatures.gtk = true;
config = {
modifier = "${mod}";
keybindings = {
"${mod}+1" = "workspace number 1";
"${mod}+2" = "workspace number 2";
"${mod}+3" = "workspace number 3";
"${mod}+4" = "workspace number 4";
"${mod}+Return" = "exec ${pkgs.alacritty}/bin/alacritty";
};
};
};
};
}

View file

@ -1,28 +0,0 @@
{ config, pkgs, ... }:
{
programs.mako.enable = true;
imports = [
];
home.sessionVariables = {
};
wayland.windowManager.sway.enable = true;
wayland.windowManager.sway.wrapperFeatures.base = true;
wayland.windowManager.sway.wrapperFeatures.gtk = true;
services = {
kdeconnect = {
enable = true;
indicator = true;
};
network-manager-applet.enable = true;
pasystray.enable = true;
};
services.udiskie.enable = true;
}

View file

@ -1,8 +0,0 @@
{ config, pkgs, ... }:
{
services.dbus.packages = with pkgs; [ gnome2.GConf gnome3.dconf ];
services.dbus.socketActivated = true;
programs.sway.enable = true;
systemd.defaultUnit = "graphical.target";
}