aboutsummaryrefslogtreecommitdiffstats
path: root/hosts/tiamat
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-05-16 16:45:40 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-05-16 16:45:40 +0200
commit176d9bb96e8923b84bb0bdc731ef707514c0d53e (patch)
treecab831d04c6c919d41c11fe6abfe67de34c90699 /hosts/tiamat
parentmodules: Import external modules in the module that actually need them (diff)
downloadnixos-config-176d9bb96e8923b84bb0bdc731ef707514c0d53e.zip
hosts: Move to a `by-name` schema
Diffstat (limited to '')
-rw-r--r--hosts/by-name/tiamat/configuration.nix (renamed from hosts/tiamat/default.nix)25
-rw-r--r--hosts/by-name/tiamat/hardware.nix (renamed from hosts/tiamat/hardware.nix)0
2 files changed, 19 insertions, 6 deletions
diff --git a/hosts/tiamat/default.nix b/hosts/by-name/tiamat/configuration.nix
index 794b8390..3e7349ce 100644
--- a/hosts/tiamat/default.nix
+++ b/hosts/by-name/tiamat/configuration.nix
@@ -10,9 +10,9 @@
{
lib,
pkgs,
- baseLib,
- qmk_firmware,
system,
+ libraries,
+ externalBinaries,
...
}: {
imports = [
@@ -30,6 +30,13 @@
enable = true;
systemName = "x86_64-linux";
};
+
+ # TODO: Hard-code all the uids/gids <2025-05-13>
+ impermanence.directories = [
+ "/var/lib/nixos"
+ "/var/log"
+ ];
+
services = {
unison.foreign.address = "apzu.fritz.box";
};
@@ -85,16 +92,22 @@
# "Y" = {command = ["spawn" "bemenu-run"];};
# Toggle all tags
- "0" = {command = ["set-focused-tags" "${builtins.toString ((baseLib.pow 2 32) - 1)}"];};
+ "0" = {command = ["set-focused-tags" "${builtins.toString ((libraries.base.pow 2 32) - 1)}"];};
# Support Unicode input
- "Z" = {command = ["spawn" "${lib.getExe qmk_firmware.packages.${system}.qmk_unicode_type} 106 65377"];};
+ "Z" = {command = ["spawn" "${lib.getExe externalBinaries.qmk_firmware.packages.${system}.qmk_unicode_type} 106 65377"];};
})
// ({
# TODO: add toggle-focus mapping
# Toggle all tags
- "<Alt+Ctrl+Shift-0>" = {command = ["set-view-tags" "${builtins.toString ((baseLib.pow 2 32) - 1)}"];};
+ "<Alt+Ctrl+Shift-0>" = {
+ command = [
+ "set-view-tags"
+ "${builtins.toString
+ ((libraries.base.pow 2 32) - 1)}"
+ ];
+ };
# Mouse
"<Meta-<MOUSE_LEFT>>" = {
@@ -110,7 +123,7 @@
builtins.foldl' (acc: elem: acc // elem) {} (
builtins.map (index: let
num = builtins.toString index;
- index2tag = input: builtins.toString (baseLib.pow 2 (input - 1));
+ index2tag = input: builtins.toString (libraries.base.pow 2 (input - 1));
in {
"${map num}" = {command = ["set-focused-tags" (index2tag index)];};
"<Alt+Ctrl+Shift-${num}>" = {command = ["set-view-tags" (index2tag index)];};
diff --git a/hosts/tiamat/hardware.nix b/hosts/by-name/tiamat/hardware.nix
index 2b18a662..2b18a662 100644
--- a/hosts/tiamat/hardware.nix
+++ b/hosts/by-name/tiamat/hardware.nix