Add emanote
This commit is contained in:
parent
739d61a2a2
commit
0291612904
|
@ -56,7 +56,7 @@ let
|
||||||
daily-driver = name: extra:
|
daily-driver = name: extra:
|
||||||
let
|
let
|
||||||
all = extra ++ on-my-machines ++ [
|
all = extra ++ on-my-machines ++ [
|
||||||
(import ./roles/firefox.nix "http://localhost:8842")
|
(import ./roles/firefox.nix "http://localhost:7000")
|
||||||
(makeAutostart "kassandra2")
|
(makeAutostart "kassandra2")
|
||||||
(makeAutostart "unlock-ssh")
|
(makeAutostart "unlock-ssh")
|
||||||
./roles/beets.nix
|
./roles/beets.nix
|
||||||
|
@ -74,6 +74,7 @@ let
|
||||||
./roles/night-shutdown.nix
|
./roles/night-shutdown.nix
|
||||||
./roles/tinkering.nix
|
./roles/tinkering.nix
|
||||||
./roles/wallpaper.nix
|
./roles/wallpaper.nix
|
||||||
|
./roles/zettelkasten.nix
|
||||||
];
|
];
|
||||||
orgaExtra = [
|
orgaExtra = [
|
||||||
./roles/accounting.nix
|
./roles/accounting.nix
|
||||||
|
|
|
@ -60,6 +60,17 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
Apps = {
|
||||||
|
Editor = fork "codium";
|
||||||
|
Files = fork "nautilus";
|
||||||
|
DarkKitty = fork "kitty -o 'background #000000' -o 'foreground #ffffff'";
|
||||||
|
Games = {
|
||||||
|
Steam = fork "steam";
|
||||||
|
Minecraft = fork "minecraft-launcher";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
{
|
{
|
||||||
Web = {
|
Web = {
|
||||||
Browser = fork "firefox";
|
Browser = fork "firefox";
|
||||||
|
@ -71,7 +82,6 @@ in
|
||||||
VoxMachina = fork "mpv https://www.youtube.com/playlist?list=PL1tiwbzkOjQz7D0l_eLJGAISVtcL7oRu_";
|
VoxMachina = fork "mpv https://www.youtube.com/playlist?list=PL1tiwbzkOjQz7D0l_eLJGAISVtcL7oRu_";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
{ Files = fork "nautilus"; }
|
|
||||||
{ Passmenu = "pass clip -f"; }
|
{ Passmenu = "pass clip -f"; }
|
||||||
{ "Select Mode" = "select-mode"; }
|
{ "Select Mode" = "select-mode"; }
|
||||||
{
|
{
|
||||||
|
@ -106,11 +116,4 @@ in
|
||||||
Close = "ssh door@burbon.w17.io close";
|
Close = "ssh door@burbon.w17.io close";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
{ DarkKitty = fork "kitty -o 'background #000000' -o 'foreground #ffffff'"; }
|
|
||||||
{
|
|
||||||
Games = {
|
|
||||||
Steam = fork "steam";
|
|
||||||
Minecraft = fork "minecraft-launcher";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
]
|
]
|
||||||
|
|
|
@ -28,7 +28,6 @@
|
||||||
jnoortheen.nix-ide
|
jnoortheen.nix-ide
|
||||||
pkief.material-icon-theme
|
pkief.material-icon-theme
|
||||||
yzhang.markdown-all-in-one
|
yzhang.markdown-all-in-one
|
||||||
davidlday.languagetool-linter
|
|
||||||
justusadam.language-haskell
|
justusadam.language-haskell
|
||||||
naumovs.color-highlight
|
naumovs.color-highlight
|
||||||
timonwong.shellcheck
|
timonwong.shellcheck
|
||||||
|
@ -39,7 +38,7 @@
|
||||||
];
|
];
|
||||||
userSettings = {
|
userSettings = {
|
||||||
"editor.fontFamily" = "JetBrainsMono Nerd Font, monospace";
|
"editor.fontFamily" = "JetBrainsMono Nerd Font, monospace";
|
||||||
"files.autoSave" = "onFocusChange";
|
"files.autoSave" = "afterDelay";
|
||||||
"editor.tabSize" = 3;
|
"editor.tabSize" = 3;
|
||||||
"editor.fontLigatures" = true;
|
"editor.fontLigatures" = true;
|
||||||
"workbench.colorTheme" = "Default Light+";
|
"workbench.colorTheme" = "Default Light+";
|
||||||
|
@ -50,6 +49,8 @@
|
||||||
"extensions.autoUpdate" = false;
|
"extensions.autoUpdate" = false;
|
||||||
"extensions.autoCheckUpdates" = false;
|
"extensions.autoCheckUpdates" = false;
|
||||||
"local-history.path" = "~/.volatile/vscode-local-history/";
|
"local-history.path" = "~/.volatile/vscode-local-history/";
|
||||||
|
"projectManager.git.baseFolders" = [ "~/git/" ];
|
||||||
|
"ltex.enabled" = false;
|
||||||
"memo.links.rules" = [
|
"memo.links.rules" = [
|
||||||
{
|
{
|
||||||
"rule" = "\\.md$";
|
"rule" = "\\.md$";
|
||||||
|
|
|
@ -1,15 +1,16 @@
|
||||||
{ pkgs, config, ... }:
|
{ config, pkgs, ... }:
|
||||||
let
|
let
|
||||||
notesDir = "${config.home.homeDirectory}/git/zettelkasten";
|
emanote = import (import ../../nix/sources.nix).emanote;
|
||||||
cmd = "${pkgs.myHaskellPackages.neuron}/bin/neuron -d ${notesDir} rib -w -s 127.0.0.1:8002";
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
systemd.user.services.neuron = {
|
imports = [ emanote.homeManagerModule ];
|
||||||
Unit.Description = "Neuron zettelkasten service";
|
services.emanote = {
|
||||||
Install.WantedBy = [ "graphical-session.target" ];
|
enable = true;
|
||||||
Service = {
|
# host = "127.0.0.1"; # default listen address is 127.0.0.1
|
||||||
ExecStart = cmd;
|
# port = 7000; # default http port is 7000
|
||||||
Restart = "always";
|
notes = [
|
||||||
};
|
"${config.home.homeDirectory}/git/notes/content" # add as many layers as you like
|
||||||
|
];
|
||||||
|
package = emanote.defaultPackage.${builtins.currentSystem};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,16 @@
|
||||||
{
|
{
|
||||||
|
"emanote": {
|
||||||
|
"branch": "master",
|
||||||
|
"description": "Spiritual successor to neuron, based on Ema.",
|
||||||
|
"homepage": "https://emanote.srid.ca",
|
||||||
|
"owner": "srid",
|
||||||
|
"repo": "emanote",
|
||||||
|
"rev": "c82d5e1b573a7bf1300b2b48090ae9d5ac1ce635",
|
||||||
|
"sha256": "0yp7k9gn20p6gv7hgfb3f7kj7zjgwk356hia26gxq2ay7ihddqk4",
|
||||||
|
"type": "tarball",
|
||||||
|
"url": "https://github.com/srid/emanote/archive/c82d5e1b573a7bf1300b2b48090ae9d5ac1ce635.tar.gz",
|
||||||
|
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
|
||||||
|
},
|
||||||
"haskell-dialog": {
|
"haskell-dialog": {
|
||||||
"branch": "main",
|
"branch": "main",
|
||||||
"repo": "git@hera.m-0.eu:haskell-dialog",
|
"repo": "git@hera.m-0.eu:haskell-dialog",
|
||||||
|
|
Loading…
Reference in a new issue