From f0e1fc740f6aee9b523c0f5d6ee35a52dd2d7c4a Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Sat, 5 Aug 2023 16:55:37 -0400 Subject: [PATCH] save ratbag profile to text move misc data files to misc directory --- apps/encrypt-secret.nix | 2 +- apps/reencrypt-secrets.nix | 2 +- hosts/hydra/default.nix | 2 +- hosts/tempest/default.nix | 2 +- misc/libratbag-profile | 23 +++++++++++++++++++++++ password.sha512 => misc/password.sha512 | 0 public-keys => misc/public-keys | 0 7 files changed, 27 insertions(+), 4 deletions(-) create mode 100644 misc/libratbag-profile rename password.sha512 => misc/password.sha512 (100%) rename public-keys => misc/public-keys (100%) diff --git a/apps/encrypt-secret.nix b/apps/encrypt-secret.nix index 7e83cba..3a6838a 100644 --- a/apps/encrypt-secret.nix +++ b/apps/encrypt-secret.nix @@ -11,7 +11,7 @@ tmpfile=$(mktemp) echo "''${secret}" > ''${tmpfile} ${pkgs.age}/bin/age --encrypt --armor --recipients-file ${ - builtins.toString ../public-keys + builtins.toString ../misc/public-keys } $tmpfile rm $tmpfile ''); diff --git a/apps/reencrypt-secrets.nix b/apps/reencrypt-secrets.nix index 24c21c9..b6f1a52 100644 --- a/apps/reencrypt-secrets.nix +++ b/apps/reencrypt-secrets.nix @@ -17,7 +17,7 @@ --identity ~/.ssh/id_ed25519 $encryptedfile > $tmpfile echo "Encrypting ''${encryptedfile}..." ${pkgs.age}/bin/age --encrypt --armor --recipients-file ${ - builtins.toString ../public-keys + builtins.toString ../misc/public-keys } $tmpfile > $encryptedfile rm $tmpfile done diff --git a/hosts/hydra/default.nix b/hosts/hydra/default.nix index aff2ba8..77d30a9 100644 --- a/hosts/hydra/default.nix +++ b/hosts/hydra/default.nix @@ -22,7 +22,7 @@ inputs.nixpkgs.lib.nixosSystem { colors = (import ../../colorscheme/gruvbox).dark; dark = true; }; - passwordHash = inputs.nixpkgs.lib.fileContents ../../password.sha512; + passwordHash = inputs.nixpkgs.lib.fileContents ../../misc/password.sha512; wsl = { enable = true; wslConf.automount.root = "/mnt"; diff --git a/hosts/tempest/default.nix b/hosts/tempest/default.nix index b82bd0d..1a094bb 100644 --- a/hosts/tempest/default.nix +++ b/hosts/tempest/default.nix @@ -53,7 +53,7 @@ inputs.nixpkgs.lib.nixosSystem { # Must be prepared ahead identityFile = "/home/${globals.user}/.ssh/id_ed25519"; - passwordHash = inputs.nixpkgs.lib.fileContents ../../password.sha512; + passwordHash = inputs.nixpkgs.lib.fileContents ../../misc/password.sha512; # Theming gui.enable = true; diff --git a/misc/libratbag-profile b/misc/libratbag-profile new file mode 100644 index 0000000..5c74a18 --- /dev/null +++ b/misc/libratbag-profile @@ -0,0 +1,23 @@ +Profile 1: (active) +Name: n/a +Report Rate: 1000Hz +Resolutions: + 0: 400dpi (active) (default) + 1: 800dpi + 2: 1600dpi + 3: 2400dpi + 4: 0dpi +Button: 0 is mapped to 'button 1' +Button: 1 is mapped to 'button 2' +Button: 2 is mapped to 'button 3' +Button: 3 is mapped to 'button 4' +Button: 4 is mapped to 'button 5' +Button: 5 is mapped to macro '↕F11' +Button: 6 is mapped to macro '↕VOLUMEDOWN' +Button: 7 is mapped to macro '↕VOLUMEUP' +Button: 8 is mapped to 'unknown' +Button: 9 is mapped to 'wheel-right' +Button: 10 is mapped to 'wheel-left' +LED: 0, depth: monochrome, mode: on, color: 000000 +LED: 1, depth: monochrome, mode: on, color: 000000 +LED: 2, depth: monochrome, mode: on, color: 000000 diff --git a/password.sha512 b/misc/password.sha512 similarity index 100% rename from password.sha512 rename to misc/password.sha512 diff --git a/public-keys b/misc/public-keys similarity index 100% rename from public-keys rename to misc/public-keys