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; })
|
(import ./modules/sway.nix { inherit inputs username; })
|
||||||
|
|
||||||
configuration
|
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, ... }:
|
{ inputs, username, ... }:
|
||||||
{ pkgs, ... }: {
|
{ pkgs, ... }: {
|
||||||
services = {
|
services.displayManager.defaultSession = "sway";
|
||||||
displayManager = {
|
|
||||||
defaultSession = "sway";
|
|
||||||
sddm.enable = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.sway.enable = true;
|
programs.sway.enable = true;
|
||||||
|
|
||||||
xdg.portal = {
|
xdg.portal = {
|
||||||
enable = true;
|
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, ... }: {
|
home-manager.users.${username} = { pkgs, ... }: {
|
||||||
|
|
Loading…
Reference in a new issue