Add GNOME as a desktop manager, working with sway
...and wayland
This commit is contained in:
parent
5a0cfd10ae
commit
323df5ca10
|
@ -16,6 +16,7 @@ in inputs.nixpkgs.lib.nixosSystem {
|
|||
};
|
||||
}
|
||||
|
||||
(import ./modules/gnome.nix)
|
||||
(import ./modules/sway.nix { inherit inputs username; })
|
||||
|
||||
configuration
|
||||
|
|
14
lib/nixos/modules/gnome.nix
Normal file
14
lib/nixos/modules/gnome.nix
Normal file
|
@ -0,0 +1,14 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
services.xserver = {
|
||||
desktopManager.gnome.enable = true;
|
||||
|
||||
displayManager.gdm = {
|
||||
enable = true;
|
||||
wayland = true;
|
||||
};
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [ networkmanagerapplet ];
|
||||
}
|
|
@ -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, ... }: {
|
||||
|
|
Loading…
Reference in a new issue