Add emanote service

This commit is contained in:
Sridhar Ratnakumar 2021-06-18 18:41:02 -04:00
parent 6c6ffb304c
commit 27b024430f
4 changed files with 219 additions and 18 deletions

22
features/ema/emanote.nix Normal file
View file

@ -0,0 +1,22 @@
{ pkgs, inputs, system, ... }:
let
emanote = inputs.emanote.outputs.defaultPackage.${system};
in
{
environment.systemPackages = [ emanote ];
# Before starting the service, use `protonmail-bridge --cli` and run 'login'
# to configure.
systemd.user.services.emanote = {
description = "Emanote ~/Documents/Notes";
after = [ "network.target" ];
wantedBy = [ "default.target" ];
environment = {
PORT = "7000";
};
serviceConfig = {
Restart = "always";
ExecStart = "${emanote}/bin/emanote -C /home/srid/Documents/Notes";
};
};
}

212
flake.lock generated
View file

@ -50,6 +50,27 @@
"type": "github"
}
},
"ema": {
"inputs": {
"flake-compat": "flake-compat",
"flake-utils": "flake-utils",
"nixpkgs": "nixpkgs"
},
"locked": {
"lastModified": 1623972177,
"narHash": "sha256-MQwfUawXBm41jdA4qfb0emoizzGcH/q+J3tpHea/HG8=",
"owner": "srid",
"repo": "ema",
"rev": "e7456501e873db4363fd71cc249d5276a766989c",
"type": "github"
},
"original": {
"owner": "srid",
"ref": "master",
"repo": "ema",
"type": "github"
}
},
"emacs-overlay": {
"locked": {
"lastModified": 1620410972,
@ -97,6 +118,34 @@
"type": "github"
}
},
"emanote": {
"inputs": {
"ema": "ema",
"flake-compat": "flake-compat_2",
"flake-utils": "flake-utils_2",
"nixpkgs": [
"emanote",
"ema",
"nixpkgs"
],
"pandoc-link-context": "pandoc-link-context",
"tagtree": "tagtree",
"windicss": "windicss"
},
"locked": {
"lastModified": 1624022871,
"narHash": "sha256-dT7fT0j3pT8sgz+R14B4DVIBIKzupsFLrDhjtOlxEcs=",
"owner": "srid",
"repo": "emanote",
"rev": "8fb4aa8cfaf097a61b474365a96b19b512a363c2",
"type": "github"
},
"original": {
"owner": "srid",
"repo": "emanote",
"type": "github"
}
},
"evil-markdown": {
"flake": false,
"locked": {
@ -193,7 +242,69 @@
"type": "github"
}
},
"flake-compat_3": {
"flake": false,
"locked": {
"lastModified": 1606424373,
"narHash": "sha256-oq8d4//CJOrVj+EcOaSXvMebvuTkmBJuT5tzlfewUnQ=",
"owner": "edolstra",
"repo": "flake-compat",
"rev": "99f1c2157fba4bfe6211a321fd0ee43199025dbf",
"type": "github"
},
"original": {
"owner": "edolstra",
"repo": "flake-compat",
"type": "github"
}
},
"flake-compat_4": {
"flake": false,
"locked": {
"lastModified": 1606424373,
"narHash": "sha256-oq8d4//CJOrVj+EcOaSXvMebvuTkmBJuT5tzlfewUnQ=",
"owner": "edolstra",
"repo": "flake-compat",
"rev": "99f1c2157fba4bfe6211a321fd0ee43199025dbf",
"type": "github"
},
"original": {
"owner": "edolstra",
"repo": "flake-compat",
"type": "github"
}
},
"flake-utils": {
"locked": {
"lastModified": 1618217525,
"narHash": "sha256-WGrhVczjXTiswQaoxQ+0PTfbLNeOQM6M36zvLn78AYg=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "c6169a2772643c4a93a0b5ac1c61e296cba68544",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"flake-utils_2": {
"locked": {
"lastModified": 1619345332,
"narHash": "sha256-qHnQkEp1uklKTpx3MvKtY6xzgcqXDsz5nLilbbuL+3A=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "2ebf2558e5bf978c7fb8ea927dfaed8fefab2e28",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"flake-utils_3": {
"locked": {
"lastModified": 1614513358,
"narHash": "sha256-LakhOx3S1dRjnh0b5Dg3mbZyH0ToC9I8Y2wKSkBaTzU=",
@ -208,7 +319,7 @@
"type": "github"
}
},
"flake-utils_2": {
"flake-utils_4": {
"locked": {
"lastModified": 1610051610,
"narHash": "sha256-U9rPz/usA1/Aohhk7Cmc2gBrEEKRzcW4nwPWMPwja4Y=",
@ -223,7 +334,7 @@
"type": "github"
}
},
"flake-utils_3": {
"flake-utils_5": {
"locked": {
"lastModified": 1618868421,
"narHash": "sha256-vyoJhLV6cJ8/tWz+l9HZLIkb9Rd9esE7p+0RL6zDR6Y=",
@ -241,8 +352,8 @@
"himalaya": {
"inputs": {
"crate2nix": "crate2nix",
"flake-compat": "flake-compat",
"nixpkgs": "nixpkgs",
"flake-compat": "flake-compat_3",
"nixpkgs": "nixpkgs_2",
"rust-overlay": "rust-overlay",
"utils": "utils"
},
@ -262,7 +373,7 @@
},
"home-manager": {
"inputs": {
"nixpkgs": "nixpkgs_3"
"nixpkgs": "nixpkgs_4"
},
"locked": {
"lastModified": 1622753049,
@ -280,7 +391,7 @@
},
"neovim-flake": {
"inputs": {
"flake-utils": "flake-utils_2",
"flake-utils": "flake-utils_4",
"nixpkgs": [
"nixpkgs"
]
@ -303,9 +414,9 @@
},
"neovim-nightly-overlay": {
"inputs": {
"flake-compat": "flake-compat_2",
"flake-compat": "flake-compat_4",
"neovim-flake": "neovim-flake",
"nixpkgs": "nixpkgs_4"
"nixpkgs": "nixpkgs_5"
},
"locked": {
"lastModified": 1622882353,
@ -331,9 +442,9 @@
"evil-org-mode": "evil-org-mode",
"evil-quick-diff": "evil-quick-diff",
"explain-pause-mode": "explain-pause-mode",
"flake-utils": "flake-utils_3",
"flake-utils": "flake-utils_5",
"nix-straight": "nix-straight",
"nixpkgs": "nixpkgs_5",
"nixpkgs": "nixpkgs_6",
"nose": "nose",
"ob-racket": "ob-racket",
"org-mode": "org-mode",
@ -390,6 +501,22 @@
}
},
"nixpkgs": {
"locked": {
"lastModified": 1623154001,
"narHash": "sha256-KxsIXg5ez5SveGayOKcW+MnofqVuLnwZHE5mZgtRAJo=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "3bc8e5cd23b84b2e149e7aaad57117da16a19e6f",
"type": "github"
},
"original": {
"owner": "nixos",
"repo": "nixpkgs",
"rev": "3bc8e5cd23b84b2e149e7aaad57117da16a19e6f",
"type": "github"
}
},
"nixpkgs_2": {
"locked": {
"lastModified": 1621840840,
"narHash": "sha256-o6h6+d5ZwrFmOTe+ma9s1Z9kyHsCW1C84IA8RZ9/fIU=",
@ -405,7 +532,7 @@
"type": "github"
}
},
"nixpkgs_2": {
"nixpkgs_3": {
"locked": {
"lastModified": 1617325113,
"narHash": "sha256-GksR0nvGxfZ79T91UUtWjjccxazv6Yh/MvEJ82v1Xmw=",
@ -420,7 +547,7 @@
"type": "github"
}
},
"nixpkgs_3": {
"nixpkgs_4": {
"locked": {
"lastModified": 1622913919,
"narHash": "sha256-kk1OSzEpVcI9zr1R4dndEpKXVY1/86onfFERrBeqMzg=",
@ -434,7 +561,7 @@
"type": "indirect"
}
},
"nixpkgs_4": {
"nixpkgs_5": {
"locked": {
"lastModified": 1622545032,
"narHash": "sha256-1Y+2LFqnMBEH9OZzMBdLWl6GWFt/xzNz0V5X+m05Ing=",
@ -450,7 +577,7 @@
"type": "github"
}
},
"nixpkgs_5": {
"nixpkgs_6": {
"locked": {
"lastModified": 1619105186,
"narHash": "sha256-n/+A1JUMhJjs2eQAcWFrC9FRNENWaiLr+q9NKSd1EQU=",
@ -465,7 +592,7 @@
"type": "indirect"
}
},
"nixpkgs_6": {
"nixpkgs_7": {
"locked": {
"lastModified": 1623580589,
"narHash": "sha256-Ayp1cjXpwFCkAiWUE46rj9APTltsiEBdIs2+cj+U7+c=",
@ -545,6 +672,22 @@
"type": "github"
}
},
"pandoc-link-context": {
"flake": false,
"locked": {
"lastModified": 1614388258,
"narHash": "sha256-wf+uNyFH1hV5dEF6yjeFkxjKtSCpc7zRcmLUxGWn/Co=",
"owner": "srid",
"repo": "pandoc-link-context",
"rev": "7662ea7965c4ed940ca9245495d8f84488a4c675",
"type": "github"
},
"original": {
"owner": "srid",
"repo": "pandoc-link-context",
"type": "github"
}
},
"php-extras": {
"flake": false,
"locked": {
@ -580,12 +723,13 @@
"root": {
"inputs": {
"emacs-overlay": "emacs-overlay",
"emanote": "emanote",
"himalaya": "himalaya",
"home-manager": "home-manager",
"neovim-nightly-overlay": "neovim-nightly-overlay",
"nix-doom-emacs": "nix-doom-emacs",
"nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs_6"
"nixpkgs": "nixpkgs_7"
}
},
"rotate-text": {
@ -606,8 +750,8 @@
},
"rust-overlay": {
"inputs": {
"flake-utils": "flake-utils",
"nixpkgs": "nixpkgs_2"
"flake-utils": "flake-utils_3",
"nixpkgs": "nixpkgs_3"
},
"locked": {
"lastModified": 1621996674,
@ -623,6 +767,22 @@
"type": "github"
}
},
"tagtree": {
"flake": false,
"locked": {
"lastModified": 1623279971,
"narHash": "sha256-O8VHrbFDDLP6wo6BFK9UN1fHQyYsHYElJzYfT1B7O4c=",
"owner": "srid",
"repo": "tagtree",
"rev": "59d84f738722800f3a0ef942213a725eeb511900",
"type": "github"
},
"original": {
"owner": "srid",
"repo": "tagtree",
"type": "github"
}
},
"utils": {
"locked": {
"lastModified": 1620759905,
@ -637,6 +797,22 @@
"repo": "flake-utils",
"type": "github"
}
},
"windicss": {
"flake": false,
"locked": {
"lastModified": 1623457620,
"narHash": "sha256-J5Um1mRGxMUJu0vVVv3cfIORI55IY48XaZetxSwmFuA=",
"owner": "srid",
"repo": "windicss-nix",
"rev": "8777cc33119ce859d13ffb8d7246ade5fdd9d099",
"type": "github"
},
"original": {
"owner": "srid",
"repo": "windicss-nix",
"type": "github"
}
}
},
"root": "root",

View file

@ -14,6 +14,7 @@
emacs-overlay.url = "github:nix-community/emacs-overlay";
neovim-nightly-overlay.url = "github:nix-community/neovim-nightly-overlay";
nix-doom-emacs.url = "github:srid/nix-doom-emacs";
emanote.url = "github:srid/emanote";
};
outputs = inputs@{ self, home-manager, nixpkgs, ... }:
@ -38,6 +39,7 @@
./features/docker.nix
# ./features/emacs.nix
./features/monitor-brightness.nix
./features/ema/emanote.nix
# home-manager configuration
home-manager.nixosModules.home-manager

View file

@ -79,6 +79,7 @@
brave
fzf
gnome3.gnome-tweaks
gnome3.gnome-sound-recorder
google-chrome
htop
ripgrep