Add GNOME as a desktop manager, working with sway

...and wayland
This commit is contained in:
Oliver Davies 2024-05-22 21:36:26 +01:00
parent 5a0cfd10ae
commit 323df5ca10
3 changed files with 17 additions and 7 deletions

View file

@ -16,6 +16,7 @@ in inputs.nixpkgs.lib.nixosSystem {
};
}
(import ./modules/gnome.nix)
(import ./modules/sway.nix { inherit inputs username; })
configuration

View file

@ -0,0 +1,14 @@
{ pkgs, ... }:
{
services.xserver = {
desktopManager.gnome.enable = true;
displayManager.gdm = {
enable = true;
wayland = true;
};
};
environment.systemPackages = with pkgs; [ networkmanagerapplet ];
}

View file

@ -1,17 +1,12 @@
{ inputs, username, ... }:
{ pkgs, ... }: {
services = {
displayManager = {
defaultSession = "sway";
sddm.enable = true;
};
};
services.displayManager.defaultSession = "sway";
programs.sway.enable = true;
xdg.portal = {
enable = true;
extraPortals = with pkgs; [ xdg-desktop-portal-gtk xdg-desktop-portal-wlr ];
extraPortals = with pkgs; [ xdg-desktop-portal-wlr ];
};
home-manager.users.${username} = { pkgs, ... }: {