From 23b54c91427305d62b55b7bd6392be9e2cc0bfdf Mon Sep 17 00:00:00 2001 From: Tyler Kelley Date: Tue, 6 Feb 2024 02:26:07 -0600 Subject: [PATCH] Testing Appimages & added alternate keyboard layout --- config/home/hyprland.nix | 7 +++++-- config/system/appimages.nix | 12 ++++++++++++ config/system/default.nix | 1 + config/system/packages.nix | 2 +- options.nix | 1 + 5 files changed, 20 insertions(+), 3 deletions(-) create mode 100644 config/system/appimages.nix diff --git a/config/home/hyprland.nix b/config/home/hyprland.nix index f5a7909..f7b0018 100644 --- a/config/home/hyprland.nix +++ b/config/home/hyprland.nix @@ -6,7 +6,8 @@ let inherit (import ../../options.nix) browser cpuType gpuType wallpaperDir borderAnim - theKBDLayout; + theKBDLayout + theSecondKBDLayout; in with lib; { wayland.windowManager.hyprland = { enable = true; @@ -31,8 +32,10 @@ in with lib; { layout = dwindle resize_on_border = true } + input { - kb_layout = ${theKBDLayout} + kb_layout = ${theKBDLayout},${theSecondKBDLayout} + kb_options = grp:alt_shift_toggle kb_options=caps:super follow_mouse = 1 touchpad { diff --git a/config/system/appimages.nix b/config/system/appimages.nix new file mode 100644 index 0000000..a912143 --- /dev/null +++ b/config/system/appimages.nix @@ -0,0 +1,12 @@ +{ pkgs, config, ... }: + +{ + boot.binfmt.registrations.appimage = { + wrapInterpreterInShell = false; + interpreter = "${pkgs.appimage-run}/bin/appimage-run"; + recognitionType = "magic"; + offset = 0; + mask = ''\xff\xff\xff\xff\x00\x00\x00\x00\xff\xff\xff''; + magicOrExtension = ''\x7fELF....AI\x02''; + }; +} diff --git a/config/system/default.nix b/config/system/default.nix index fc66da7..fb108e3 100644 --- a/config/system/default.nix +++ b/config/system/default.nix @@ -3,6 +3,7 @@ { imports = [ ./amd-gpu.nix + ./appimages.nix ./autorun.nix ./boot.nix ./displaymanager.nix diff --git a/config/system/packages.nix b/config/system/packages.nix index 3db8328..cd41f33 100644 --- a/config/system/packages.nix +++ b/config/system/packages.nix @@ -17,7 +17,7 @@ in { pkg-config meson hugo gnumake ninja go nodejs symbola noto-fonts-color-emoji material-icons brightnessctl toybox virt-viewer jetbrains.pycharm-community-bin - swappy ripgrep + swappy ripgrep appimage-run (pkgs.python3.withPackages my-python-packages) ]; diff --git a/options.nix b/options.nix index 3e29454..bf40414 100644 --- a/options.nix +++ b/options.nix @@ -17,6 +17,7 @@ # System Settings theLocale = "en_US.UTF-8"; theKBDLayout = "us"; + theSecondKBDLayout = "pl"; theLCVariables = "en_US.UTF-8"; theTimezone = "America/Chicago"; cpuType = "intel";