[feat] sway: enable systemd integration
All checks were successful
/ check (push) Successful in 19s
/ build (audiomenu) (push) Successful in 2s
/ build (docs) (push) Successful in 2s
/ build (jpassmenu) (push) Successful in 2s
/ build (nixosConfigurations.vm.config.system.build.toplevel) (push) Successful in 2s
/ build (nvim) (push) Successful in 2s

This commit is contained in:
Jalil David Salamé Messina 2024-08-24 23:30:39 +02:00
parent af4c171f6f
commit 469f9c38e7
Signed by: jalil
GPG key ID: F016B9E770737A0B

View file

@ -23,8 +23,7 @@ in
{ {
config = lib.mkIf (jhome.enable && cfg.enable) { config = lib.mkIf (jhome.enable && cfg.enable) {
home.packages = home.packages =
with pkgs; (with pkgs; [
[
webcord webcord
ferdium ferdium
xournalpp xournalpp
@ -33,9 +32,9 @@ in
wl-clipboard wl-clipboard
# Extra fonts # Extra fonts
noto-fonts-cjk # Chinese, Japanese and Korean characters noto-fonts-cjk # Chinese, Japanese and Korean characters
(pkgs.nerdfonts.override { fonts = [ "NerdFontsSymbolsOnly" ]; }) (nerdfonts.override { fonts = [ "NerdFontsSymbolsOnly" ]; })
] ])
++ lib.optional flatpakEnabled flatpak; ++ lib.optional flatpakEnabled pkgs.flatpak;
fonts.fontconfig = { fonts.fontconfig = {
enable = true; enable = true;
defaultFonts = lib.mkIf config.jhome.styling.enable { defaultFonts = lib.mkIf config.jhome.styling.enable {
@ -139,6 +138,10 @@ in
inherit (cfg.sway) enable; inherit (cfg.sway) enable;
package = swayPkg; # no sway package if it comes from the OS package = swayPkg; # no sway package if it comes from the OS
config = import ./sway-config.nix { inherit config pkgs; }; config = import ./sway-config.nix { inherit config pkgs; };
systemd = {
enable = true;
xdgAutostart = true;
};
}; };
# Set cursor style # Set cursor style