Install libsecret to desktop by default, needed for mbsync

Move alacritty opacity and decoration settings to sway only. Remove
Emacs opacity by default, todo maybe add to sway only somehow...
This commit is contained in:
Evie Litherland-Smith 2024-07-10 08:36:28 +01:00
parent 05d19c1813
commit 3e0a4bb725
5 changed files with 13 additions and 14 deletions

View file

@ -13,15 +13,7 @@
style = "Regular"; style = "Regular";
}; };
}; };
window = { window.dynamic_title = true;
dynamic_title = true;
padding = {
x = 10;
y = 10;
};
decorations = "none";
opacity = 0.85;
};
live_config_reload = true; live_config_reload = true;
selection.save_to_clipboard = true; selection.save_to_clipboard = true;
mouse.hide_when_typing = true; mouse.hide_when_typing = true;

View file

@ -42,7 +42,17 @@ in {
systemctl --user restart davmail systemctl --user restart davmail
'') '')
]; ];
programs.waybar.systemd.target = "sway-session.target"; programs = {
waybar.systemd.target = "sway-session.target";
alacritty.settings.window = {
padding = {
x = 10;
y = 10;
};
decorations = "none";
opacity = 0.85;
};
};
services = { services = {
kanshi.systemdTarget = "sway-session.target"; kanshi.systemdTarget = "sway-session.target";
gpg-agent.pinentryPackage = pkgs.pinentry-gnome3; gpg-agent.pinentryPackage = pkgs.pinentry-gnome3;

View file

@ -27,7 +27,6 @@
fixed-font-family = "${fonts.monospace.name}"; fixed-font-family = "${fonts.monospace.name}";
variable-font-family = "${fonts.sansSerif.name}"; variable-font-family = "${fonts.sansSerif.name}";
font-height = builtins.toString (builtins.floor (builtins.mul fonts.sizes.applications 10)); font-height = builtins.toString (builtins.floor (builtins.mul fonts.sizes.applications 10));
alpha = "85";
custom-theme-name = "nix"; custom-theme-name = "nix";
custom-theme = pkgs.writeTextFile { custom-theme = pkgs.writeTextFile {
name = "custom-emacs-theme"; name = "custom-emacs-theme";
@ -52,8 +51,6 @@
}; };
custom-theme-hash = builtins.hashFile "sha256" "${custom-theme}/${custom-theme-name}-theme.el"; custom-theme-hash = builtins.hashFile "sha256" "${custom-theme}/${custom-theme-name}-theme.el";
in '' in ''
(add-to-list 'initial-frame-alist '(alpha-background . ${alpha}))
(add-to-list 'default-frame-alist '(alpha-background . ${alpha}))
(add-to-list 'custom-theme-load-path "${custom-theme}") (add-to-list 'custom-theme-load-path "${custom-theme}")
(add-to-list 'custom-safe-themes "${custom-theme-hash}") (add-to-list 'custom-safe-themes "${custom-theme-hash}")
(load-theme '${custom-theme-name}) (load-theme '${custom-theme-name})

View file

@ -13,6 +13,7 @@
QT_QPA_PLATFORM = lib.mkIf config.programs.sway.enable "wayland"; QT_QPA_PLATFORM = lib.mkIf config.programs.sway.enable "wayland";
}; };
systemPackages = with pkgs; [ systemPackages = with pkgs; [
libsecret
xdg-utils xdg-utils
hunspell hunspell
hunspellDicts.en_GB-large hunspellDicts.en_GB-large

View file

@ -9,7 +9,6 @@
systemPackages = with pkgs; [ systemPackages = with pkgs; [
wtype wtype
wl-clipboard wl-clipboard
libsecret
libnotify libnotify
libcamera libcamera
glib glib