Add emanote

This commit is contained in:
Fabian Hauser 2024-07-22 20:38:57 +02:00
parent c9a8b5391a
commit 816f8ae9d3
4 changed files with 603 additions and 31 deletions

570
flake.lock generated
View file

@ -2,11 +2,11 @@
"nodes": { "nodes": {
"catppuccin": { "catppuccin": {
"locked": { "locked": {
"lastModified": 1719915848, "lastModified": 1720472194,
"narHash": "sha256-zq+CMkdT8A9z74HonwspXp8HsX4OvP4uaVdD98AO6as=", "narHash": "sha256-CYscFEts6tyvosc1T29nxhzIYJAj/1CCEkV3ZMzSN/c=",
"owner": "catppuccin", "owner": "catppuccin",
"repo": "nix", "repo": "nix",
"rev": "9345073d27d91ab66c1b6ab65df322906992aa59", "rev": "d75d5803852fb0833767dc969a4581ac13204e22",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -15,6 +15,232 @@
"type": "github" "type": "github"
} }
}, },
"commonmark-simple": {
"flake": false,
"locked": {
"lastModified": 1707333942,
"narHash": "sha256-o1am93UXviPVdwwPPL5DcD8M4gwFple8SKw/lVmixa8=",
"owner": "srid",
"repo": "commonmark-simple",
"rev": "0308362957d77eea462c2c99d110820fbf30b4b8",
"type": "github"
},
"original": {
"owner": "srid",
"repo": "commonmark-simple",
"type": "github"
}
},
"commonmark-simple_2": {
"flake": false,
"locked": {
"lastModified": 1705078713,
"narHash": "sha256-YgDHJG8M47ZXGLWu8o7MhXbIrgQ0Ai32Gr8nKvZGGw8=",
"owner": "srid",
"repo": "commonmark-simple",
"rev": "fc106c94f781f6a35ef66900880edc08cbe3b034",
"type": "github"
},
"original": {
"owner": "srid",
"repo": "commonmark-simple",
"type": "github"
}
},
"commonmark-wikilink": {
"flake": false,
"locked": {
"lastModified": 1711394028,
"narHash": "sha256-eu5gMmgRz6Y51TBCaB26uJKNN3z1LRfUcTV4+PMy5Gw=",
"owner": "srid",
"repo": "commonmark-wikilink",
"rev": "57dcf665082ffc1b6f35a427e203ed115821b15c",
"type": "github"
},
"original": {
"owner": "srid",
"repo": "commonmark-wikilink",
"type": "github"
}
},
"commonmark-wikilink_2": {
"flake": false,
"locked": {
"lastModified": 1705502834,
"narHash": "sha256-79fzI4fPhCkfusDXctQwwmjIcWMrLfTvUtKBY32asuM=",
"owner": "srid",
"repo": "commonmark-wikilink",
"rev": "f6d7bdf7f1fce09ba2a4259b0306b0eef24c0cf7",
"type": "github"
},
"original": {
"owner": "srid",
"repo": "commonmark-wikilink",
"type": "github"
}
},
"ema": {
"inputs": {
"emanote": "emanote_2",
"flake-parts": [
"emanote",
"flake-parts"
],
"flake-root": [
"emanote",
"flake-root"
],
"haskell-flake": [
"emanote",
"haskell-flake"
],
"nixpkgs": [
"emanote",
"nixpkgs"
],
"treefmt-nix": [
"emanote",
"treefmt-nix"
]
},
"locked": {
"lastModified": 1710101403,
"narHash": "sha256-7n+2ekoXM5ltDoirVyCX3Ob94dm7L8SllI1JMmFmeGA=",
"owner": "srid",
"repo": "ema",
"rev": "51566e4155602b0a243a369b37dc503ebdebabce",
"type": "github"
},
"original": {
"owner": "srid",
"repo": "ema",
"type": "github"
}
},
"ema_2": {
"inputs": {
"flake-parts": [
"emanote",
"ema",
"emanote",
"flake-parts"
],
"flake-root": [
"emanote",
"ema",
"emanote",
"flake-root"
],
"haskell-flake": [
"emanote",
"ema",
"emanote",
"haskell-flake"
],
"nixpkgs": [
"emanote",
"ema",
"emanote",
"nixpkgs"
],
"treefmt-nix": [
"emanote",
"ema",
"emanote",
"treefmt-nix"
]
},
"locked": {
"lastModified": 1707484760,
"narHash": "sha256-2wHRjoFJUpVnH7H/80bnaw8h3WELZqP9dM6DfjXWtAo=",
"owner": "srid",
"repo": "ema",
"rev": "e3539ddd27b72a6bb90c8614ae63c70ff3351936",
"type": "github"
},
"original": {
"owner": "srid",
"repo": "ema",
"type": "github"
}
},
"emanote": {
"inputs": {
"commonmark-simple": "commonmark-simple",
"commonmark-wikilink": "commonmark-wikilink",
"ema": "ema",
"emanote-template": [],
"flake-parts": "flake-parts_2",
"flake-root": "flake-root_2",
"haskell-flake": "haskell-flake_2",
"heist-extra": "heist-extra_2",
"nix-health": "nix-health",
"nixpkgs": [
"nixpkgs-unstable"
],
"systems": "systems_2",
"treefmt-nix": "treefmt-nix_2",
"unionmount": "unionmount_2"
},
"locked": {
"lastModified": 1719887178,
"narHash": "sha256-GAxmOxH0NnzgIjtcY5OvLguXlQuh2Hs82pQ8WLBai04=",
"owner": "srid",
"repo": "emanote",
"rev": "e20dbc918df86436ad1e97c79b74337b3625798f",
"type": "github"
},
"original": {
"owner": "srid",
"repo": "emanote",
"type": "github"
}
},
"emanote-template": {
"flake": false,
"locked": {
"lastModified": 1703877265,
"narHash": "sha256-2xdikzzHrIHr1s2pAJrBJU8mZP258Na3V4P4RWteDZM=",
"owner": "srid",
"repo": "emanote-template",
"rev": "9d458b63c80162519ae55814e60f17cc9d3f95a3",
"type": "github"
},
"original": {
"owner": "srid",
"repo": "emanote-template",
"type": "github"
}
},
"emanote_2": {
"inputs": {
"commonmark-simple": "commonmark-simple_2",
"commonmark-wikilink": "commonmark-wikilink_2",
"ema": "ema_2",
"emanote-template": "emanote-template",
"flake-parts": "flake-parts",
"flake-root": "flake-root",
"haskell-flake": "haskell-flake",
"heist-extra": "heist-extra",
"nixpkgs": "nixpkgs",
"systems": "systems",
"treefmt-nix": "treefmt-nix",
"unionmount": "unionmount"
},
"locked": {
"lastModified": 1709754457,
"narHash": "sha256-JBpIQsCSaQzLY5LnCO9xj3O7nnv0ekgO1ZTSkevRfi4=",
"owner": "srid",
"repo": "emanote",
"rev": "922f79430416b09e91d735a27b01ddbb48ef7b83",
"type": "github"
},
"original": {
"owner": "srid",
"repo": "emanote",
"type": "github"
}
},
"fcc-unlock": { "fcc-unlock": {
"inputs": { "inputs": {
"nixos-stable": [ "nixos-stable": [
@ -35,6 +261,134 @@
"url": "file:///etc/nixos/fcc-unlock" "url": "file:///etc/nixos/fcc-unlock"
} }
}, },
"flake-parts": {
"inputs": {
"nixpkgs-lib": "nixpkgs-lib"
},
"locked": {
"lastModified": 1704982712,
"narHash": "sha256-2Ptt+9h8dczgle2Oo6z5ni5rt/uLMG47UFTR1ry/wgg=",
"owner": "hercules-ci",
"repo": "flake-parts",
"rev": "07f6395285469419cf9d078f59b5b49993198c00",
"type": "github"
},
"original": {
"owner": "hercules-ci",
"repo": "flake-parts",
"type": "github"
}
},
"flake-parts_2": {
"inputs": {
"nixpkgs-lib": "nixpkgs-lib_2"
},
"locked": {
"lastModified": 1712014858,
"narHash": "sha256-sB4SWl2lX95bExY2gMFG5HIzvva5AVMJd4Igm+GpZNw=",
"owner": "hercules-ci",
"repo": "flake-parts",
"rev": "9126214d0a59633752a136528f5f3b9aa8565b7d",
"type": "github"
},
"original": {
"owner": "hercules-ci",
"repo": "flake-parts",
"type": "github"
}
},
"flake-root": {
"locked": {
"lastModified": 1692742795,
"narHash": "sha256-f+Y0YhVCIJ06LemO+3Xx00lIcqQxSKJHXT/yk1RTKxw=",
"owner": "srid",
"repo": "flake-root",
"rev": "d9a70d9c7a5fd7f3258ccf48da9335e9b47c3937",
"type": "github"
},
"original": {
"owner": "srid",
"repo": "flake-root",
"type": "github"
}
},
"flake-root_2": {
"locked": {
"lastModified": 1692742795,
"narHash": "sha256-f+Y0YhVCIJ06LemO+3Xx00lIcqQxSKJHXT/yk1RTKxw=",
"owner": "srid",
"repo": "flake-root",
"rev": "d9a70d9c7a5fd7f3258ccf48da9335e9b47c3937",
"type": "github"
},
"original": {
"owner": "srid",
"repo": "flake-root",
"type": "github"
}
},
"haskell-flake": {
"locked": {
"lastModified": 1709233214,
"narHash": "sha256-kraFY5MmY7yxsEtSF8qPrFVmA6MXkF+sJfo7EV1dcY8=",
"owner": "srid",
"repo": "haskell-flake",
"rev": "3a8c1b58cff60886260156a20a3b3ad725bbf885",
"type": "github"
},
"original": {
"owner": "srid",
"repo": "haskell-flake",
"type": "github"
}
},
"haskell-flake_2": {
"locked": {
"lastModified": 1712823089,
"narHash": "sha256-AGkk2WK/E9mLcoEdfegZ1aYNh6HtOdPuEx4O+r44u3I=",
"owner": "srid",
"repo": "haskell-flake",
"rev": "92e393141a123c9695bc15dbe1ca0a1b7fef142b",
"type": "github"
},
"original": {
"owner": "srid",
"repo": "haskell-flake",
"type": "github"
}
},
"heist-extra": {
"flake": false,
"locked": {
"lastModified": 1706086475,
"narHash": "sha256-scXMVFKSaS4Wi4y6I84oPKHaTmLECsvq8eLxGL0XH5o=",
"owner": "srid",
"repo": "heist-extra",
"rev": "c6d8ef79b415fab276fb461d5860bbf2628e6e43",
"type": "github"
},
"original": {
"owner": "srid",
"repo": "heist-extra",
"type": "github"
}
},
"heist-extra_2": {
"flake": false,
"locked": {
"lastModified": 1710541479,
"narHash": "sha256-9e4U78eutom6D3EJqsCdV8iQxNgYA/pi001r5CZdm0A=",
"owner": "srid",
"repo": "heist-extra",
"rev": "589b7636f620dcdfc0dc07dea720feed1ab3e0fa",
"type": "github"
},
"original": {
"owner": "srid",
"repo": "heist-extra",
"type": "github"
}
},
"home-manager": { "home-manager": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
@ -42,11 +396,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1720045378, "lastModified": 1721135958,
"narHash": "sha256-lmE7B+QXw7lWdBu5GQlUABSpzPk3YBb9VbV+IYK5djk=", "narHash": "sha256-H548rpPMsn25LDKn1PCFmPxmWlClJJGnvdzImHkqjuY=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "0a30138c694ab3b048ac300794c2eb599dc40266", "rev": "afd2021bedff2de92dfce0e257a3d03ae65c603d",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -56,13 +410,30 @@
"type": "github" "type": "github"
} }
}, },
"nix-health": {
"locked": {
"dir": "module",
"lastModified": 1716931776,
"narHash": "sha256-M4YqLtNAkj8pqG6dp7wHKz9EOecB3bWHp7WHyXIlMMc=",
"owner": "juspay",
"repo": "nix-health",
"rev": "2f8d8dc30121923192c78a8f5152c5c89fdf1809",
"type": "github"
},
"original": {
"dir": "module",
"owner": "juspay",
"repo": "nix-health",
"type": "github"
}
},
"nixos-hardware": { "nixos-hardware": {
"locked": { "locked": {
"lastModified": 1719895800, "lastModified": 1721331912,
"narHash": "sha256-xNbjISJTFailxass4LmdWeV4jNhAlmJPwj46a/GxE6M=", "narHash": "sha256-h2yaU+QEU4pHxMySHPIsRV2T/pihDHnrXBca8BY6xgc=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixos-hardware", "repo": "nixos-hardware",
"rev": "6e253f12b1009053eff5344be5e835f604bb64cd", "rev": "bb90787ea034c8b9035dfcfc9b4dc23898d414be",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -71,13 +442,65 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs-stable": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1719848872, "lastModified": 1704842529,
"narHash": "sha256-H3+EC5cYuq+gQW8y0lSrrDZfH71LB4DAf+TDFyvwCNA=", "narHash": "sha256-OTeQA+F8d/Evad33JMfuXC89VMetQbsU4qcaePchGr4=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "eabe8d3eface69f5bb16c18f8662a702f50c20d5",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs-lib": {
"locked": {
"dir": "lib",
"lastModified": 1703961334,
"narHash": "sha256-M1mV/Cq+pgjk0rt6VxoyyD+O8cOUiai8t9Q6Yyq4noY=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "00d80d13810dbfea8ab4ed1009b09100cca86ba8", "rev": "b0d36bd0a420ecee3bc916c91886caca87c894e9",
"type": "github"
},
"original": {
"dir": "lib",
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs-lib_2": {
"locked": {
"dir": "lib",
"lastModified": 1711703276,
"narHash": "sha256-iMUFArF0WCatKK6RzfUJknjem0H9m4KgorO/p3Dopkk=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "d8fe5e6c92d0d190646fb9f1056741a229980089",
"type": "github"
},
"original": {
"dir": "lib",
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs-stable": {
"locked": {
"lastModified": 1721138476,
"narHash": "sha256-+W5eZOhhemLQxelojLxETfbFbc19NWawsXBlapYpqIA=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "ad0b5eed1b6031efaed382844806550c3dcb4206",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -89,11 +512,11 @@
}, },
"nixpkgs-unstable": { "nixpkgs-unstable": {
"locked": { "locked": {
"lastModified": 1719848872, "lastModified": 1721138476,
"narHash": "sha256-H3+EC5cYuq+gQW8y0lSrrDZfH71LB4DAf+TDFyvwCNA=", "narHash": "sha256-+W5eZOhhemLQxelojLxETfbFbc19NWawsXBlapYpqIA=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "00d80d13810dbfea8ab4ed1009b09100cca86ba8", "rev": "ad0b5eed1b6031efaed382844806550c3dcb4206",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -106,12 +529,127 @@
"root": { "root": {
"inputs": { "inputs": {
"catppuccin": "catppuccin", "catppuccin": "catppuccin",
"emanote": "emanote",
"fcc-unlock": "fcc-unlock", "fcc-unlock": "fcc-unlock",
"flake-parts": [
"emanote",
"flake-parts"
],
"home-manager": "home-manager", "home-manager": "home-manager",
"nixos-hardware": "nixos-hardware", "nixos-hardware": "nixos-hardware",
"nixpkgs": [
"emanote",
"nixpkgs"
],
"nixpkgs-stable": "nixpkgs-stable", "nixpkgs-stable": "nixpkgs-stable",
"nixpkgs-unstable": "nixpkgs-unstable" "nixpkgs-unstable": "nixpkgs-unstable"
} }
},
"systems": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
},
"systems_2": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
},
"treefmt-nix": {
"inputs": {
"nixpkgs": [
"emanote",
"ema",
"emanote",
"nixpkgs"
]
},
"locked": {
"lastModified": 1693468138,
"narHash": "sha256-DddblCahuTW8K0ncPOheTlG3igE8b15LJjafF1PWhOo=",
"owner": "numtide",
"repo": "treefmt-nix",
"rev": "6930a5ba0a722385baf273885a03f561dcb1af67",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "treefmt-nix",
"type": "github"
}
},
"treefmt-nix_2": {
"inputs": {
"nixpkgs": [
"emanote",
"nixpkgs"
]
},
"locked": {
"lastModified": 1711963903,
"narHash": "sha256-N3QDhoaX+paWXHbEXZapqd1r95mdshxToGowtjtYkGI=",
"owner": "numtide",
"repo": "treefmt-nix",
"rev": "49dc4a92b02b8e68798abd99184f228243b6e3ac",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "treefmt-nix",
"type": "github"
}
},
"unionmount": {
"flake": false,
"locked": {
"lastModified": 1691619410,
"narHash": "sha256-V9/OcGu9cy4kV9jta12A6w5BEj8awSEVYrXPpg8YckQ=",
"owner": "srid",
"repo": "unionmount",
"rev": "ed73b627f88c8f021f41ba4b518ba41beff9df42",
"type": "github"
},
"original": {
"owner": "srid",
"repo": "unionmount",
"type": "github"
}
},
"unionmount_2": {
"flake": false,
"locked": {
"lastModified": 1710078535,
"narHash": "sha256-gKBgBtuiRTD3/3EeY8aMgFzuaSEffJacBxsCB3ct1eg=",
"owner": "srid",
"repo": "unionmount",
"rev": "41ae982fa118770bf4d3a3f2d48ac1ffb61c9f09",
"type": "github"
},
"original": {
"owner": "srid",
"repo": "unionmount",
"type": "github"
}
} }
}, },
"root": "root", "root": "root",

View file

@ -1,4 +1,14 @@
{ {
nixConfig = {
extra-substituters = "https://cache.garnix.io";
extra-trusted-public-keys = "cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g=";
};
inputs = {
nixpkgs.follows = "emanote/nixpkgs";
flake-parts.follows = "emanote/flake-parts";
};
inputs = { inputs = {
# Upstream deps # Upstream deps
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable"; nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
@ -15,6 +25,14 @@
url = "git+file:///etc/nixos/fcc-unlock"; url = "git+file:///etc/nixos/fcc-unlock";
inputs.nixos-stable.follows = "nixpkgs-stable"; inputs.nixos-stable.follows = "nixpkgs-stable";
}; };
emanote = {
url = "github:srid/emanote";
inputs = {
emanote-template.follows = "";
nixpkgs.follows = "nixpkgs-unstable";
};
};
}; };
outputs = outputs =
@ -26,6 +44,7 @@
nixos-hardware, nixos-hardware,
fcc-unlock, fcc-unlock,
catppuccin, catppuccin,
emanote,
... ...
}@inputs: }@inputs:
let let
@ -58,6 +77,7 @@
users.fhauser.imports = [ users.fhauser.imports = [
./home/fhauser/default.nix ./home/fhauser/default.nix
catppuccin.homeManagerModules.catppuccin catppuccin.homeManagerModules.catppuccin
emanote.homeManagerModule
]; ];
}; };
}; };

View file

@ -8,24 +8,25 @@
{ {
imports = [ imports = [
./catppuccin.nix
./emanote.nix
./evolution.nix ./evolution.nix
./firefox.nix ./firefox.nix
./gpg.nix
./ssh.nix
./catppuccin.nix
./scripts.nix
./webapps.nix
./vim.nix
./git.nix
./waybar.nix
./psql.nix
./mako.nix
./kitty.nix
./shell.nix
./swaylock.nix
./kanshi.nix
./sway.nix
./gammastep.nix ./gammastep.nix
./git.nix
./gpg.nix
./kanshi.nix
./kitty.nix
./mako.nix
./psql.nix
./scripts.nix
./shell.nix
./ssh.nix
./sway.nix
./swaylock.nix
./vim.nix
./waybar.nix
./webapps.nix
]; ];
services = { services = {

View file

@ -0,0 +1,13 @@
{ pkgs, ... }:
{
services.emanote = {
enable = true;
# host = "127.0.0.1"; # default listen address is 127.0.0.1
# port = 8080; # default http port is 7000
notes = [
"/home/fhauser/shares/cloud.qo.is/Notes"
];
# package = emanote.packages.${builtins.currentSystem}.default;
};
}