From 004d54e9fe6880edabcf18cb0ae7c9a86bb28e85 Mon Sep 17 00:00:00 2001 From: Baitinq Date: Sun, 11 Sep 2022 17:40:08 +0200 Subject: Implement initial wayland support --- hosts/configuration.nix | 8 ++++++++ hosts/home.nix | 18 +++++++++++++++--- 2 files changed, 23 insertions(+), 3 deletions(-) (limited to 'hosts') diff --git a/hosts/configuration.nix b/hosts/configuration.nix index d9215d9..e9721b6 100644 --- a/hosts/configuration.nix +++ b/hosts/configuration.nix @@ -66,6 +66,8 @@ TERMINAL = "st"; EDITOR = "nvim"; VISUAL = "nvim"; + + XKB_DEFAULT_LAYOUT = "gb"; }; environment.sessionVariables = rec { @@ -110,6 +112,11 @@ # started in user sessions. # programs.mtr.enable = true; + xdg.portal = { + enable = true; + wlr.enable = true; + }; + # List services that you want to enable: services = { openssh = { @@ -119,6 +126,7 @@ port = 2222; }]; }; + dbus.enable = true; irqbalance.enable = true; fwupd.enable = true; }; diff --git a/hosts/home.nix b/hosts/home.nix index 8ec1aa0..b3057cb 100644 --- a/hosts/home.nix +++ b/hosts/home.nix @@ -36,6 +36,12 @@ manga-cli mov-cli smart-wallpaper + waybar + wl-clipboard + sway + swaybg + river + wlr-randr ] ++ (with pkgs.custom; [ lemacs @@ -48,9 +54,11 @@ config = "${inputs.dotfiles}/xmonad.hs"; }; - programs.xmobar = { - enable = true; - extraConfig = builtins.readFile "${inputs.dotfiles}/xmobar.hs"; + programs = { + xmobar = { + enable = true; + extraConfig = builtins.readFile "${inputs.dotfiles}/xmobar.hs"; + }; }; home.sessionVariables = { @@ -258,6 +266,9 @@ }; xdg = { + configFile."sway/config".source = "${inputs.dotfiles}/sway_config"; + configFile."river/".source = "${inputs.dotfiles}/river/"; + configFile."waybar/".source = "${inputs.dotfiles}/waybar/"; configFile."zathura/zathurarc".source = "${inputs.dotfiles}/zathurarc"; configFile."dunst/dunstrc".source = "${inputs.dotfiles}/dunstrc"; }; @@ -277,4 +288,5 @@ xdg.userDirs.desktop = "$HOME/"; home.stateVersion = "22.05"; + } -- cgit 1.4.1