Initial commit of sway running
This commit is contained in:
parent
717f75ef94
commit
c6efec9bb7
1 changed files with 43 additions and 9 deletions
|
|
@ -1,17 +1,45 @@
|
||||||
{ config, pkgs, inputs, ... }:
|
{ config, pkgs, inputs, ... }:
|
||||||
{
|
{
|
||||||
# Enable the X11 windowing system.
|
# Enable the X11 windowing system.
|
||||||
services.xserver.enable = true;
|
services.xserver = {
|
||||||
|
enable = true;
|
||||||
|
xkb = {
|
||||||
|
layout = "us";
|
||||||
|
variant = "dvorak";
|
||||||
|
};
|
||||||
|
|
||||||
|
displayManager.gdm = {
|
||||||
|
enable = true;
|
||||||
|
wayland = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
# enable sway
|
||||||
|
programs.sway = {
|
||||||
|
enable = true;
|
||||||
|
wrapperFeatures.gtk = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
# 2. Inject the Dvorak config into /etc/sway/config.d/
|
||||||
|
# The default Sway config automatically includes files in this folder.
|
||||||
|
environment.etc."sway/config.d/99-dvorak.conf".text = ''
|
||||||
|
input * {
|
||||||
|
xkb_layout "us"
|
||||||
|
xkb_variant "dvorak"
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
|
||||||
|
|
||||||
|
# Essential System Services for Sway
|
||||||
|
# (Sway doesn't autostart these like GNOME does, so you need them enabled
|
||||||
|
# system-wide)
|
||||||
|
security.polkit.enable = true; # For permission popups
|
||||||
|
services.gnome.gnome-keyring.enable = true; # For saving wifi/login passwords
|
||||||
|
|
||||||
|
services.desktopManager.gnome.enable = true;
|
||||||
|
|
||||||
# Enable the GNOME Desktop Environment.
|
# Enable the GNOME Desktop Environment.
|
||||||
services.xserver.displayManager.gdm.enable = true;
|
services.displayManager.gdm.enable = true;
|
||||||
services.xserver.desktopManager.gnome.enable = true;
|
|
||||||
|
|
||||||
# Configure keymap in X11
|
|
||||||
services.xserver.xkb = {
|
|
||||||
layout = "us";
|
|
||||||
variant = "dvorak";
|
|
||||||
};
|
|
||||||
|
|
||||||
# enable japanese input
|
# enable japanese input
|
||||||
i18n.inputMethod = {
|
i18n.inputMethod = {
|
||||||
|
|
@ -39,6 +67,12 @@
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
bitwarden-desktop
|
bitwarden-desktop
|
||||||
libreoffice-fresh
|
libreoffice-fresh
|
||||||
|
|
||||||
|
# sway stuff
|
||||||
|
grim # screenshot functionality
|
||||||
|
slurp # screenshot functionality
|
||||||
|
wl-clipboard # wl-copy and wl-paste for copy/paste from stdin / stdout
|
||||||
|
mako # notification system developed by swaywm maintainer
|
||||||
];
|
];
|
||||||
|
|
||||||
# Enable networking
|
# Enable networking
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue