chore(swaync): updated definition
This commit is contained in:
parent
39ad31e16b
commit
b4dad8896e
6 changed files with 34 additions and 43 deletions
|
@ -1,14 +1,17 @@
|
|||
# This file contains default settings used across different systems
|
||||
{
|
||||
imports = [
|
||||
./graphical
|
||||
./terminal
|
||||
|
||||
./hyprland
|
||||
./hyprlock
|
||||
./foot.nix
|
||||
./graphical
|
||||
./terminal
|
||||
./rofi
|
||||
./sway
|
||||
./sway/swayidle.nix
|
||||
./waybar
|
||||
./hyprpaper
|
||||
./swaync
|
||||
];
|
||||
}
|
||||
|
|
|
@ -115,7 +115,6 @@ lib.mkIf osConfig.programs.sway.enable {
|
|||
#: }}}
|
||||
#: Startup {{{
|
||||
startup = [
|
||||
{ command = "${pkgs.swayidle}/bin/swayidle -C ${homeDirectory}/.config/swayidle/config"; }
|
||||
{ command = "${pkgs.swaynotificationcenter}/bin/swaync"; }
|
||||
{ command = "${pkgs.nextcloud-client}/bin/nextcloud --background"; }
|
||||
{ command = "${pkgs.kdeconnect}/bin/kdeconnect-indicator"; }
|
||||
|
|
|
@ -1,31 +1,22 @@
|
|||
{ lib, ... }:
|
||||
{ lib, config, ... }:
|
||||
let
|
||||
enable = true;
|
||||
inherit (lib) mkIf;
|
||||
|
||||
swayncFolder = ".config/swaync";
|
||||
themes = import ./themes;
|
||||
in
|
||||
{
|
||||
mkIf config.services.swaync.enable {
|
||||
services.swaync = {
|
||||
style = themes.gruvbox;
|
||||
settings = import ./config.nix;
|
||||
};
|
||||
|
||||
home.file =
|
||||
{
|
||||
swaync-config = {
|
||||
inherit enable;
|
||||
target = "${swayncFolder}/config.json";
|
||||
text = builtins.toJSON (import ./config.nix);
|
||||
};
|
||||
|
||||
swaync-theme = {
|
||||
inherit enable;
|
||||
target = "${swayncFolder}/style.css";
|
||||
text = themes.gruvbox;
|
||||
};
|
||||
home.file = lib.mapAttrs' (
|
||||
name: value:
|
||||
lib.nameValuePair "swaync-theme-${name}" {
|
||||
enable = true;
|
||||
target = "${swayncFolder}/${name}.css";
|
||||
text = value;
|
||||
}
|
||||
// lib.mapAttrs' (
|
||||
name: value:
|
||||
lib.nameValuePair "swaync-theme-${name}" {
|
||||
inherit enable;
|
||||
target = "${swayncFolder}/${name}.css";
|
||||
text = value;
|
||||
}
|
||||
) themes;
|
||||
) themes;
|
||||
}
|
||||
|
|
|
@ -8,11 +8,8 @@
|
|||
home-manager.users.${username} = {
|
||||
imports = [
|
||||
../../home/rofi
|
||||
../../home/swaync
|
||||
../../home/hyprpaper
|
||||
../../home/themes/catppuccin.nix
|
||||
../../home
|
||||
../../home/sway/swayidle.nix
|
||||
];
|
||||
|
||||
programs.direnv = {
|
||||
|
@ -27,6 +24,7 @@
|
|||
services = {
|
||||
blueman-applet.enable = true;
|
||||
swayidle.enable = true;
|
||||
swaync.enable = true;
|
||||
};
|
||||
|
||||
home = {
|
||||
|
|
|
@ -72,8 +72,6 @@
|
|||
};
|
||||
};
|
||||
|
||||
services.printing.enable = true;
|
||||
|
||||
#: Virtualisation {{{
|
||||
virtualisation.docker = {
|
||||
enable = false;
|
||||
|
@ -123,14 +121,16 @@
|
|||
};
|
||||
#:}}}
|
||||
|
||||
services.fwupd.enable = true;
|
||||
|
||||
services.dbus.enable = true;
|
||||
services = {
|
||||
dbus.enable = true;
|
||||
fwupd.enable = true;
|
||||
gvfs.enable = true;
|
||||
printing.enable = true;
|
||||
};
|
||||
|
||||
xdg.portal.enable = true;
|
||||
|
||||
services.gvfs.enable = true;
|
||||
|
||||
media.enableAll = true;
|
||||
# Configure console keymap
|
||||
console.keyMap = "fr";
|
||||
|
||||
|
@ -152,8 +152,6 @@
|
|||
|
||||
services.gnome.gnome-keyring.enable = true;
|
||||
|
||||
services.flatpak.enable = true;
|
||||
|
||||
environment.variables = {
|
||||
ELECTRON_OZONE_PLATFORM_HINT = "auto";
|
||||
MOZ_ENABLE_WAYLAND = 1;
|
||||
|
|
|
@ -20,8 +20,6 @@
|
|||
};
|
||||
};
|
||||
|
||||
services.blueman-applet.enable = true;
|
||||
|
||||
programs.direnv = {
|
||||
enable = true;
|
||||
nix-direnv.enable = true;
|
||||
|
@ -33,6 +31,12 @@
|
|||
vscode.enable = true;
|
||||
};
|
||||
|
||||
services = {
|
||||
swaync.enable = true;
|
||||
blueman-applet.enable = true;
|
||||
swayidle.enable = true;
|
||||
};
|
||||
|
||||
home = {
|
||||
stateVersion = config.system.stateVersion;
|
||||
inherit username;
|
||||
|
@ -45,14 +49,12 @@
|
|||
loupe
|
||||
seahorse
|
||||
gimp
|
||||
vlc
|
||||
thunderbird
|
||||
keepassxc
|
||||
nautilus
|
||||
protonmail-bridge-gui
|
||||
varia
|
||||
signal-desktop
|
||||
calibre
|
||||
foot
|
||||
|
||||
# Proprietary
|
||||
|
|
Loading…
Add table
Reference in a new issue