fork/home-manager
git clone https://git.julia.blue/fork/home-manager
6ec6b2e3
master
1{ pkgs , ...} : 2 3let 4configDir = if pkgs . stdenv . isDarwin then 5"home-files/Library/Application Support" 6else 7"home-files/.config" ; 8in { 9programs . nheko = { 10enable = true ; 11 12settings = { 13general = { disableCertificateValidation = false ; }; 14 15auth = { 16accessToken = "MY_ACCESS_TOKEN" ; 17deviceId = "MY_DEVICE" ; 18homeServer = "https://matrix-client.matrix.org:443" ; 19userId = "@@user:matrix.org" ; 20}; 21 22sidebar = { width = 416 ; }; 23 24settings = { scaleFactor = 0.7 ; }; 25 26user = { 27alertOnNotification = true ; 28animateImagesOnHover = false ; 29automaticallyShareKeysWithTrustedUsers = false ; 30avatarCircles = true ; 31bubblesEnabled = false ; 32decryptSidebar = true ; 33desktopNotifications = true ; 34emojiFontFamily = "Noto Emoji" ; 35exposeDbusApi = false ; 36fontFamily = "JetBrainsMonoMedium Nerd Font Mono" ; 37fontSize = 9 ; 38groupView = true ; 39markdownEnabled = true ; 40minorEvents = false ; 41mobileMode = false ; 42mutedTags = "global" ; 43onlineKeyBackup = false ; 44onlyShareKeysWithVerifiedUsers = false ; 45openImageExternal = false ; 46openVideoExternal = false ; 47presence = "AutomaticPresence" ; 48privacyScreen = false ; 49privacyScreenTimeout = 0 ; 50readReceipts = true ; 51ringtone = "Mute" ; 52shareKeysWithTrustedUsers = true ; 53smallAvatarsEnabled = false ; 54"sidebar\\communityListWidth" = 40 ; 55"sidebar\\roomListWidth" = 308 ; 56sortByUnread = true ; 57spaceNotifications = true ; 58theme = "dark" ; 59"timeline\\buttons" = true ; 60"timeline\\enlargeEmojiOnlyMsg" = true ; 61"timeline\\maxWidth" = 0 ; 62"timeline\\messageHoverHighlight" = false ; 63typingNotifications = true ; 64useIdenticon = true ; 65useStunServer = false ; 66"window\\startInTray" = false ; 67"window\\tray" = true ; 68}; 69 70window = { 71height = 482 ; 72width = 950 ; 73}; 74}; 75}; 76 77test . stubs . nheko = { }; 78 79nmt . script = '' 80assertFileContent \ 81" ${ configDir } /nheko/nheko.conf " \ 82${ ./nheko-example-settings-expected-config.ini } 83'' ; 84}