From c1d9df1bd151a065841e62f7fdeedb55296bc9a2 Mon Sep 17 00:00:00 2001 From: Daniel Langbein Date: Tue, 28 Nov 2023 15:23:44 +0100 Subject: [PATCH] add obsidian --- hosts/yodaTab/configuration.nix | 2 +- hosts/yodaTux/configuration.nix | 1 + modules/obsidian.nix | 17 +++++++++++++++++ 3 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 modules/obsidian.nix diff --git a/hosts/yodaTab/configuration.nix b/hosts/yodaTab/configuration.nix index 36f4ef8..89ce8b1 100644 --- a/hosts/yodaTab/configuration.nix +++ b/hosts/yodaTab/configuration.nix @@ -29,7 +29,7 @@ ../../modules/nextcloud-integration.nix ../../modules/signal-desktop.nix ../../modules/element-desktop.nix - ../../modules/joplin-desktop.nix + ../../modules/obsidian.nix ../../modules/firefox.nix ../../modules/thunderbird.nix ../../modules/tor-browser.nix diff --git a/hosts/yodaTux/configuration.nix b/hosts/yodaTux/configuration.nix index 8b23fd0..f2a8210 100644 --- a/hosts/yodaTux/configuration.nix +++ b/hosts/yodaTux/configuration.nix @@ -29,6 +29,7 @@ ../../modules/signal-desktop.nix ../../modules/element-desktop.nix ../../modules/joplin-desktop.nix + ../../modules/obsidian.nix ../../modules/firefox.nix ../../modules/thunderbird.nix ../../modules/tor-browser.nix diff --git a/modules/obsidian.nix b/modules/obsidian.nix new file mode 100644 index 0000000..4f17a4c --- /dev/null +++ b/modules/obsidian.nix @@ -0,0 +1,17 @@ +{ config, pkgs, lib, ... }: +{ + nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ + "obsidian" + ]; + + # TODO: Disallow insecure Electron version electron-24.8.6. + nixpkgs.config.permittedInsecurePackages = [ + "electron-24.8.6" + ]; + + users.users.yoda = { + packages = with pkgs; [ + obsidian # Markdown notes + ]; + }; +}