home/sway: make startup (and xwayland) optional
This commit is contained in:
parent
1caa0314e1
commit
61f614fb9c
|
@ -1,6 +1,37 @@
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, lib, ...}:
|
||||||
|
let
|
||||||
|
cfg = config.my.sway;
|
||||||
|
in
|
||||||
{
|
{
|
||||||
|
options.my.sway = with pkgs.lib; {
|
||||||
|
KDEConnect = mkOption {
|
||||||
|
default = true;
|
||||||
|
type = types.bool;
|
||||||
|
description = "enable foo";
|
||||||
|
};
|
||||||
|
xwayland = mkOption {
|
||||||
|
default = false;
|
||||||
|
type = types.bool;
|
||||||
|
description = "enable foo";
|
||||||
|
};
|
||||||
|
mail = mkOption {
|
||||||
|
default = true;
|
||||||
|
type = types.bool;
|
||||||
|
description = "enable foo";
|
||||||
|
};
|
||||||
|
nextcloud = mkOption {
|
||||||
|
default = true;
|
||||||
|
type = types.bool;
|
||||||
|
description = "enable foo";
|
||||||
|
};
|
||||||
|
XMPP = mkOption {
|
||||||
|
default = true;
|
||||||
|
type = types.bool;
|
||||||
|
description = "enable foo";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config = {
|
||||||
home.sessionVariables = {
|
home.sessionVariables = {
|
||||||
XDG_CURRENT_DESKTOP = "sway";
|
XDG_CURRENT_DESKTOP = "sway";
|
||||||
MOZ_ENABLE_WAYLAND = "1";
|
MOZ_ENABLE_WAYLAND = "1";
|
||||||
|
@ -59,7 +90,7 @@
|
||||||
# config.wayland.windowManager.sway.config.modifier;
|
# config.wayland.windowManager.sway.config.modifier;
|
||||||
in {
|
in {
|
||||||
enable = true;
|
enable = true;
|
||||||
xwayland = false;
|
xwayland = cfg.xwayland;
|
||||||
config = {
|
config = {
|
||||||
input = {
|
input = {
|
||||||
"*" = {
|
"*" = {
|
||||||
|
@ -299,19 +330,23 @@
|
||||||
{ command = "mako"; }
|
{ command = "mako"; }
|
||||||
#{ command = "kanshi"; }
|
#{ command = "kanshi"; }
|
||||||
# indicator
|
# indicator
|
||||||
{ command = "/usr/lib/kdeconnectd"; }
|
|
||||||
{ command = "/home/genofire/.nix-profile/libexec/kdeconnectd"; }
|
|
||||||
{ command = "kdeconnect-indicator"; }
|
|
||||||
{ command = "networkd-notify"; }
|
{ command = "networkd-notify"; }
|
||||||
# needs x11
|
# needs x11
|
||||||
#{ command = "udiskie -t"; }
|
#{ command = "udiskie -t"; }
|
||||||
#{ command = "modem-manager-gui -i"; }
|
#{ command = "modem-manager-gui -i"; }
|
||||||
#{ command = "nm-applet"; }
|
#{ command = "nm-applet"; }
|
||||||
# apps
|
# apps
|
||||||
{ command = "thunderbird"; }
|
|
||||||
{ command = "firefox"; }
|
{ command = "firefox"; }
|
||||||
#{ command = "firefoxdeveloperedition"; }
|
#{ command = "firefoxdeveloperedition"; }
|
||||||
|
] ++ lib.optionals (cfg.KDEConnect) [
|
||||||
|
{ command = "/usr/lib/kdeconnectd"; }
|
||||||
|
{ command = "/home/genofire/.nix-profile/libexec/kdeconnectd"; }
|
||||||
|
{ command = "kdeconnect-indicator"; }
|
||||||
|
] ++ lib.optionals (cfg.mail) [
|
||||||
|
{ command = "thunderbird"; }
|
||||||
|
] ++ lib.optionals (cfg.nextcloud) [
|
||||||
{ command = "nextcloud"; }
|
{ command = "nextcloud"; }
|
||||||
|
] ++ lib.optionals (cfg.XMPP) [
|
||||||
{ command = "dino"; }
|
{ command = "dino"; }
|
||||||
#{ command = "gajim"; }
|
#{ command = "gajim"; }
|
||||||
];
|
];
|
||||||
|
@ -331,12 +366,15 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.alacritty = {
|
programs.alacritty = {
|
||||||
enable = false;
|
# enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
background_opacity = 0.95;
|
background_opacity = 0.95;
|
||||||
font.size = 8;
|
font.size = 8;
|
||||||
schemes.base16.primary.background = "0x0a0a0a";
|
colors.primary = {
|
||||||
colors = "*base16";
|
background = "0x0a0a0a";
|
||||||
|
foreground = "0xffffff";
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
system.autoUpgrade.enable = true;
|
system.autoUpgrade.enable = true;
|
||||||
nix.optimise.automatic = true;
|
nix.optimise.automatic = true;
|
||||||
nix.gc.automatic = true;
|
nix.gc.automatic = true;
|
||||||
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
networking.useDHCP = false;
|
networking.useDHCP = false;
|
||||||
networking.firewall.enable = true; # is already enabled ...
|
networking.firewall.enable = true; # is already enabled ...
|
||||||
|
|
Loading…
Reference in New Issue