Sway phase 1
This commit is contained in:
parent
780ffcaeb8
commit
63a33662ef
3 changed files with 32 additions and 6 deletions
24
home-manager/modules/programs/sway.nix
Normal file
24
home-manager/modules/programs/sway.nix
Normal file
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
inputs',
|
||||
...
|
||||
}: {
|
||||
home.packages = with pkgs; [
|
||||
inputs'.nixpkgs-unstable.legacyPackages.xwayland-satellite
|
||||
];
|
||||
wayland.windowManger.sway = {
|
||||
enable = true;
|
||||
package = null;
|
||||
sway = {
|
||||
xwayland = false;
|
||||
config = {
|
||||
modifer = "Mod4";
|
||||
startup = [
|
||||
{command = "env DISPLAY=:0 xwayland-satellite";}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -39,6 +39,7 @@
|
|||
# Our modules
|
||||
(import ../../modules/base.nix {inherit inputs;})
|
||||
(import ../../modules/desktop.nix)
|
||||
(import ../../modules/sway.nix)
|
||||
(import ./configuration.nix)
|
||||
(import ./hardware.nix)
|
||||
(import ../../modules/user.nix {
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
inputs',
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
|
@ -100,6 +101,12 @@
|
|||
services.displayManager.sddm.enable = true;
|
||||
services.desktopManager.plasma6.enable = true;
|
||||
environment.sessionVariables.NIXOS_OZONE_WL = "1";
|
||||
# Enable swaywm
|
||||
programs.sway = {
|
||||
enable = true;
|
||||
package = inputs'.swayfx.default;
|
||||
wrapperFeatures.gtk = true;
|
||||
};
|
||||
# Setup bluetooth
|
||||
hardware.bluetooth.enable = true;
|
||||
|
||||
|
@ -169,12 +176,6 @@
|
|||
|
||||
virtualisation.podman = {enable = true;};
|
||||
|
||||
# Enable sway
|
||||
programs.sway = {
|
||||
enable = true;
|
||||
package = pkgs.swayfx;
|
||||
};
|
||||
|
||||
# We need to use a fork of iptsd for the LiftTimeout option
|
||||
# https://github.com/linux-surface/iptsd/issues/166#issuecomment-2391567615
|
||||
nixpkgs.overlays = let
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue