Change from Gnome to Sway
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
./proxy.nix
|
||||
./router.nix
|
||||
./rpi4.nix
|
||||
./sway.nix
|
||||
./tailscale.nix
|
||||
];
|
||||
|
||||
|
||||
@@ -38,7 +38,6 @@ in with lib; {
|
||||
};
|
||||
|
||||
programs.dconf.enable = true;
|
||||
programs.sway.enable = true; # Gives us Wayland
|
||||
xdg.portal = {
|
||||
enable = true;
|
||||
wlr.enable = true; # Enables screen sharing in Wayland
|
||||
|
||||
@@ -0,0 +1,42 @@
|
||||
{ config, pkgs, lib, ... }:
|
||||
|
||||
let
|
||||
cfg = config.greg.sway;
|
||||
|
||||
in with lib; {
|
||||
options = {
|
||||
greg.sway.enable = mkEnableOption "Enable my default Gnome3 setup";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
services = {
|
||||
accounts-daemon.enable = true;
|
||||
|
||||
pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
audio.enable = true;
|
||||
jack.enable = true;
|
||||
pulse.enable = true;
|
||||
wireplumber.enable = true;
|
||||
};
|
||||
|
||||
xserver = {
|
||||
enable = true;
|
||||
displayManager.gdm = {
|
||||
enable = true;
|
||||
autoSuspend = false;
|
||||
banner = "Welcome to Greg's JUDE machine. Do I know you?";
|
||||
wayland = true;
|
||||
};
|
||||
layout = "us";
|
||||
};
|
||||
};
|
||||
|
||||
programs.sway = {
|
||||
enable = true; # Will be enabled through home-manager
|
||||
wrapperFeatures.gtk = true;
|
||||
};
|
||||
security.pam.services.swaylock = {};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user