Regenerated
This commit is contained in:
+16
-9
@@ -2026,19 +2026,26 @@ in
|
||||
** =generated/modules/traveldroid/system/swaync.nix=
|
||||
This sets the dbus implementation
|
||||
#+BEGIN_SRC nix :tangle generated/modules/traveldroid/system/swaync.nix :noweb yes :mkdirp yes :eval never
|
||||
{ config, pkgs, lib, ... }:
|
||||
|
||||
{ lib, config, pkgs, flakeRoot, ... }:
|
||||
let
|
||||
username = config.defaultUser or "henrov";
|
||||
assetPath = "${flakeRoot}/generated/.config/swaync";
|
||||
in
|
||||
{
|
||||
environment.systemPackages = [ pkgs.swaynotificationcenter ];
|
||||
|
||||
home-manager.users.${config.mainUser} = {
|
||||
home-manager.users.${username} = {
|
||||
services.swaync.enable = true;
|
||||
|
||||
services.swaync = {
|
||||
enable = true;
|
||||
# Neither settings nor style are managed by Nix.
|
||||
# Swaync will read both from ~/.config/swaync/ directly:
|
||||
# ~/.config/swaync/config.json
|
||||
# ~/.config/swaync/style.css
|
||||
home.file = {
|
||||
".config/swaync/config.json" = {
|
||||
text = builtins.readFile "${assetPath}/config.json";
|
||||
force = true;
|
||||
};
|
||||
".config/swaync/style.css" = {
|
||||
text = builtins.readFile "${assetPath}/style.css";
|
||||
force = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user