mirror of
https://github.com/ellmau/nixos.git
synced 2025-12-19 09:29:36 +01:00
Fixing a couple of issues with sway
still not poished enough for using it as a production system
This commit is contained in:
parent
49919ec787
commit
bb8c8a8c04
@ -5,30 +5,31 @@ with lib; {
|
|||||||
let
|
let
|
||||||
cfg = config.elss.graphical.sway;
|
cfg = config.elss.graphical.sway;
|
||||||
in
|
in
|
||||||
mkIf cfg.enable {
|
mkIf cfg.enable {
|
||||||
services.pipewire = {
|
services.pipewire = {
|
||||||
enable = true;
|
enable = true;
|
||||||
alsa.enable = true;
|
alsa.enable = true;
|
||||||
pulse.enable = true;
|
pulse.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
# xdg-desktop-portal works by exposing a series of D-Bus interfaces
|
# xdg-desktop-portal works by exposing a series of D-Bus interfaces
|
||||||
# known as portals under a well-known name
|
# known as portals under a well-known name
|
||||||
# (org.freedesktop.portal.Desktop) and object path
|
# (org.freedesktop.portal.Desktop) and object path
|
||||||
# (/org/freedesktop/portal/desktop).
|
# (/org/freedesktop/portal/desktop).
|
||||||
# The portal interfaces include APIs for file access, opening URIs,
|
# The portal interfaces include APIs for file access, opening URIs,
|
||||||
# printing and others.
|
# printing and others.
|
||||||
services.dbus.enable = true;
|
services.dbus.enable = true;
|
||||||
xdg.portal = {
|
xdg.portal = {
|
||||||
enable = true;
|
enable = true;
|
||||||
wlr.enable = true;
|
wlr.enable = true;
|
||||||
# gtk portal needed to make gtk apps happy
|
# gtk portal needed to make gtk apps happy
|
||||||
extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
|
extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
|
||||||
gtkUsePortal = true;
|
gtkUsePortal = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
# enable sway window manager
|
# enable sway window manager
|
||||||
programs.sway = {
|
programs = {
|
||||||
|
sway = {
|
||||||
enable = true;
|
enable = true;
|
||||||
extraPackages = with pkgs; [
|
extraPackages = with pkgs; [
|
||||||
rofi
|
rofi
|
||||||
@ -42,20 +43,33 @@ with lib; {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# greetd login manager
|
nm-applet = {
|
||||||
services.greetd = {
|
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.greetd.tuigreet;
|
indicator = true;
|
||||||
settings = {
|
|
||||||
default_session = {
|
|
||||||
command = "${pkgs.greetd.tuigreet}/bin/tuigreet --time --cmd sway";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
security.pam.services.greetd = {
|
|
||||||
enableGnomeKeyring = true;
|
|
||||||
gnupg.enable = true;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# greetd login manager
|
||||||
|
services.greetd = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.greetd.tuigreet;
|
||||||
|
settings = {
|
||||||
|
default_session = {
|
||||||
|
command = "${pkgs.greetd.tuigreet}/bin/tuigreet --time --cmd sway";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
security.pam.services.greetd = {
|
||||||
|
enableGnomeKeyring = true;
|
||||||
|
gnupg.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
gnome3.adwaita-icon-theme
|
||||||
|
wl-clipboard
|
||||||
|
];
|
||||||
|
|
||||||
|
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,9 +2,9 @@
|
|||||||
{
|
{
|
||||||
programs.mako = {
|
programs.mako = {
|
||||||
enable = true;
|
enable = true;
|
||||||
iconpath = "${pkgs.numix-icon-theme}";
|
iconPath = "${pkgs.numix-icon-theme}";
|
||||||
font = "Hasklug Nerd Font 10";
|
font = "Hasklug Nerd Font 10";
|
||||||
};
|
};
|
||||||
|
|
||||||
home.packages = [ pkgs.numic-icon-theme ];
|
home.packages = [ pkgs.numix-icon-theme ];
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,9 +2,15 @@
|
|||||||
{
|
{
|
||||||
services = {
|
services = {
|
||||||
blueman-applet.enable = true;
|
blueman-applet.enable = true;
|
||||||
network-manager-applet.enable = true;
|
|
||||||
};
|
};
|
||||||
home.file.".background-image".source = ../common/wallpaper/nix-wallpaper-nineish-dark-gray.png;
|
home.file.".background-image".source = ../../common/wallpaper/nix-wallpaper-nineish-dark-gray.png;
|
||||||
|
|
||||||
|
gtk.enable = true;
|
||||||
|
|
||||||
|
home.packages = [
|
||||||
|
pkgs.gnome-icon-theme
|
||||||
|
];
|
||||||
|
|
||||||
wayland.windowManager.sway = {
|
wayland.windowManager.sway = {
|
||||||
enable = true;
|
enable = true;
|
||||||
config = {
|
config = {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user