aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/default.nix44
-rw-r--r--config/nickel.nix21
-rw-r--r--config/plato.nix44
-rw-r--r--config/screensaver.nix11
-rw-r--r--config/screensaver.pngbin0 -> 2718976 bytes
5 files changed, 81 insertions, 39 deletions
diff --git a/config/default.nix b/config/default.nix
index 4c9688a..6da8197 100644
--- a/config/default.nix
+++ b/config/default.nix
@@ -1,41 +1,7 @@
-{ config, pkgs, lib, ... }:
-with builtins // lib;
{
- kfmon.enable = true;
- koreader.enable = true;
-
- plato = {
- enable = true;
-
- fonts.packages = [
- pkgs.hack-font
- ];
-
- dictionaries.packages = with pkgs.dictdDBs; [
- wordnet
- wiktionary
- ];
-
- settings = {
- keyboard-layout = "English";
- frontlight = true;
- wifi = false;
- sleep-cover = true;
- auto-share = true;
- auto-suspend = 15.0;
- auto-power-off = 4.0;
- time-format = "%I:%M%P";
- intermissions = {
- suspend = "cover:";
- power-off = "cover:";
- share = "logo:";
- };
- reader = {
- font-size = 10.0;
- };
- dictionary = {
- font-size = 10.0;
- };
- };
- };
+ imports = [
+ ./nickel.nix
+ ./plato.nix
+ ./screensaver.nix
+ ];
}
diff --git a/config/nickel.nix b/config/nickel.nix
new file mode 100644
index 0000000..5e62fc6
--- /dev/null
+++ b/config/nickel.nix
@@ -0,0 +1,21 @@
+{ config, pkgs, lib, ... }:
+with builtins // lib;
+{
+ nickel = {
+ enable = true;
+
+ menu.item = {
+ settings = [
+ {
+ location = "main";
+ label = "IP Address";
+ action = "cmd_output";
+ arg = [
+ "500"
+ "/sbin/ifconfg | /usr/bin/awk '/inet addr/{print substr($2,6)}'"
+ ];
+ }
+ ];
+ };
+ };
+}
diff --git a/config/plato.nix b/config/plato.nix
new file mode 100644
index 0000000..16531b3
--- /dev/null
+++ b/config/plato.nix
@@ -0,0 +1,44 @@
+{ config, pkgs, lib, ... }:
+with builtins // lib;
+{
+ # kfmon.enable = true;
+ # koreader.enable = true;
+
+ plato = {
+ enable = true;
+
+ fonts.packages = [
+ # pkgs.atkinson-hyperlegible
+ pkgs.fira-math
+ ];
+
+ dictionaries.packages = with pkgs.dictdDBs; [
+ wordnet
+ wiktionary
+ ];
+
+ settings = {
+ keyboard-layout = "English";
+ frontlight = true;
+ wifi = false;
+ sleep-cover = true;
+ auto-share = true;
+ auto-suspend = 15.0;
+ auto-power-off = 4.0;
+ time-format = "%I:%M%P";
+ # intermissions = {
+ # suspend = "cover:";
+ # power-off = "cover:";
+ # share = "logo:";
+ # };
+ reader = {
+ font-size = 10.0;
+ font-family = "Fira Math";
+ # font-family = "Atkinson Hyperlegible";
+ };
+ dictionary = {
+ font-size = 10.0;
+ };
+ };
+ };
+}
diff --git a/config/screensaver.nix b/config/screensaver.nix
new file mode 100644
index 0000000..2706202
--- /dev/null
+++ b/config/screensaver.nix
@@ -0,0 +1,11 @@
+{ config, pkgs, lib, ... }:
+with builtins // lib;
+{
+ file.".kobo/screensaver/main.png".source = ./screensaver.png;
+
+ plato.settings.intermissions = rec {
+ suspend = "cover:";
+ power-off = "/mnt/onboard/.kobo/screensaver/main.png";
+ share = power-off;
+ };
+}
diff --git a/config/screensaver.png b/config/screensaver.png
new file mode 100644
index 0000000..c26ab78
--- /dev/null
+++ b/config/screensaver.png
Binary files differ