From dabafdc0fc981033845449ea9c2442c0d6365728 Mon Sep 17 00:00:00 2001 From: Daniel Langbein Date: Thu, 17 Oct 2024 15:50:37 +0200 Subject: [PATCH] add rnote to favorites --- hosts/yodaTab/configuration.nix | 1 + hosts/yodaTux/configuration.nix | 1 + modules/programs.nix | 1 - modules/rnote.nix | 17 +++++++++++++++++ 4 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 modules/rnote.nix diff --git a/hosts/yodaTab/configuration.nix b/hosts/yodaTab/configuration.nix index c711738..fb3fb57 100644 --- a/hosts/yodaTab/configuration.nix +++ b/hosts/yodaTab/configuration.nix @@ -38,6 +38,7 @@ ../../modules/programs.nix ../../modules/flatpak.nix ../../modules/file-roller.nix + ../../modules/rnote.nix ../../modules/ausweisapp.nix ../../modules/nextcloud-client.nix ../../modules/syncthing.nix diff --git a/hosts/yodaTux/configuration.nix b/hosts/yodaTux/configuration.nix index 573dba9..756a901 100644 --- a/hosts/yodaTux/configuration.nix +++ b/hosts/yodaTux/configuration.nix @@ -41,6 +41,7 @@ ../../modules/programs.nix ../../modules/flatpak.nix ../../modules/file-roller.nix + ../../modules/rnote.nix ../../modules/ausweisapp.nix ../../modules/nextcloud-client.nix ../../modules/syncthing.nix diff --git a/modules/programs.nix b/modules/programs.nix index c8c15d4..9153643 100644 --- a/modules/programs.nix +++ b/modules/programs.nix @@ -89,7 +89,6 @@ epiphany # Web browser unstable.servo # Web browser tartube-yt-dlp # Video downloader (front-end for yt-dlp) - rnote # Handwritten notes xournalpp # Handwritte notes pdfarranger # PDF files: Split, merge, rotate, rearrange, export selected pages # Office suite. diff --git a/modules/rnote.nix b/modules/rnote.nix new file mode 100644 index 0000000..bc120bf --- /dev/null +++ b/modules/rnote.nix @@ -0,0 +1,17 @@ +{ config, pkgs, lib, ... }: +{ + users.users.yoda = { + packages = with pkgs; [ + unstable.rnote # Handwritten notes + ]; + }; + + programs.dconf.enable = true; + home-manager.users.yoda = { osConfig, config, pkgs, lib, ... }: { + dconf.settings = { + "org/gnome/shell" = { + favorite-apps = lib.mkIf (osConfig.networking.hostName == "yodaTab") ["com.github.flxzt.rnote.desktop"]; + }; + }; + }; +}