aboutsummaryrefslogtreecommitdiffstats
path: root/home-manager
diff options
context:
space:
mode:
authorene <ene@sils.li>2023-04-10 08:33:16 +0200
committerSoispha <soispha@vhack.eu>2023-05-09 19:29:56 +0200
commitad84114b6ad72de67f8a0b4f529fbbe147234fd2 (patch)
treed4f9673d54ae4cb939ad2cf6bcef33d18641895f /home-manager
parentFeat(hm/packages): Add xdg-open to the packages (diff)
downloadnixos-config-ad84114b6ad72de67f8a0b4f529fbbe147234fd2.zip
Fix(hm/conf/nheko): Create symlink through hm
If created by the system config, all leading directories become owned by root, which is obviously not acceptable.
Diffstat (limited to 'home-manager')
-rw-r--r--home-manager/config/nheko/default.nix60
1 files changed, 2 insertions, 58 deletions
diff --git a/home-manager/config/nheko/default.nix b/home-manager/config/nheko/default.nix
index c26a2a12..8557ac82 100644
--- a/home-manager/config/nheko/default.nix
+++ b/home-manager/config/nheko/default.nix
@@ -1,67 +1,11 @@
{
config,
- pkgs,
- lib,
- nixosConfig,
+ osConfig,
...
}: {
+ xdg.configFile."nheko/nheko.conf".source = config.lib.file.mkOutOfStoreSymlink osConfig.age.secrets.nheko.path;
programs.nheko = {
enable = true;
- # settings = {
- # general.disable_certificate_validation = false;
- #
- # auth = {
- # # TODO This saves the token world readable in the store, but I don't see a better option yet
- # #access_token = lib.replaceStrings ["\n"] [""] (builtins.readFile "${nixosConfig.age.secrets.nheko.path}");
- # device_id = "BAEZYLUEKE";
- # home_server = "https://matrix.sils.li:443";
- # user_id = "@@ene:sils.li";
- # };
- #
- # settings.scale_factor = 1.0;
- #
- # user = {
- # alert_on_notification = true;
- # animate_images_on_hover = true;
- # automatically_share_keys_with_trusted_users = false;
- # avatar_circles = true;
- # bubbles_enabled = false;
- # decrypt_notificatons = true;
- # decrypt_sidebar = true;
- # desktop_notifications = true;
- # emoji_font_family = "emoji";
- # expose_dbus_api = false;
- # fancy_effects = true;
- #
- # font_family = "Source Code Pro";
- # font_size = 9;
- #
- # group_view = true;
- # invert_enter_key = false;
- # markdown_enabled = true;
- # minor_events = true;
- # mobile_mode = false;
- # muted_tags = "global";
- # online_key_backup = true;
- # only_share_keys_with_verified_users = false;
- # open_image_external = false;
- # open_video_external = false;
- # presence = "AutomaticPresence";
- # privacy_screen = true;
- # privacy_screen_timeout = 0;
- # read_receipts = true;
- # small_avatars_enabled = false;
- # sort_by_unread = true;
- # space_notifications = true;
- # theme = "dark";
- # "timeline\\buttons" = true;
- # "timeline\\enlarge_emoji_only_msg" = false;
- # "timeline\\message_hover_highlight" = true;
- # typing_notifications = true;
- # use_identicon = true;
- # use_stun_server = false;
- # };
- # };
};
}
# vim: ts=2