aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--home-manager/stvnliu/home.nix7
-rw-r--r--home-manager/stvnliu/hyprland.nix26
2 files changed, 30 insertions, 3 deletions
diff --git a/home-manager/stvnliu/home.nix b/home-manager/stvnliu/home.nix
index 90ee63c..f8707de 100644
--- a/home-manager/stvnliu/home.nix
+++ b/home-manager/stvnliu/home.nix
@@ -8,8 +8,8 @@
...
}:
let
-myUserName = "stvnliu";
-myEmail = "z.liu@outlook.com.gr";
+ myUserName = "stvnliu";
+ myEmail = "z.liu@outlook.com.gr";
in
{
# You can import other home-manager modules here
@@ -18,7 +18,8 @@ in
# inputs.nix-colors.homeManagerModule
# You can also split up your configuration and import pieces of it here:
- ./swaywm.nix
+ #./swaywm.nix
+ ./hyprland.nix
./shells
];
diff --git a/home-manager/stvnliu/hyprland.nix b/home-manager/stvnliu/hyprland.nix
new file mode 100644
index 0000000..42c45cf
--- /dev/null
+++ b/home-manager/stvnliu/hyprland.nix
@@ -0,0 +1,26 @@
+{config, pkgs, ... }:
+{
+ wayland.windowManager.hyprland = {
+# Whether to enable Hyprland wayland compositor
+ enable = true;
+# The hyprland package to use
+ package = pkgs.hyprland;
+# Whether to enable XWayland
+ xwayland.enable = true;
+ settings = {
+ "$mod" = "SUPER";
+ bindm = [
+ # foot terminal
+ "$mod, ENTER, exec ${pkgs.foot}/bin/foot -f 'BlexMono Nerd Font:size=24' zsh"
+ # mouse movements
+ "$mod, mouse:272, movewindow"
+ "$mod, mouse:273, resizewindow"
+ "$mod ALT, mouse:272, resizewindow"
+ ];
+ };
+# Optional
+# Whether to enable hyprland-session.target on hyprland startup
+ systemd.enable = true;
+ };
+# ...
+}