From c4137077c3fbeb3f21eaa70f33789914c5fc8432 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=AD=C3=B0ir=20Valberg=20Gu=C3=B0mundsson?= Date: Thu, 4 Apr 2024 10:52:18 +0200 Subject: [PATCH] upd. --- configuration.nix | 2 ++ flake.lock | 12 ++++++------ home-manager/apps/hyprland.nix | 23 ++++++++++++++++++++++- home-manager/home.nix | 4 ++++ 4 files changed, 34 insertions(+), 7 deletions(-) diff --git a/configuration.nix b/configuration.nix index 378b56e..fd8779d 100644 --- a/configuration.nix +++ b/configuration.nix @@ -98,6 +98,8 @@ programs.fish.enable = true; + programs.hyprland.enable = true; + # Define a user account. Don't forget to set a password with ‘passwd’. users.users.valberg = { isNormalUser = true; diff --git a/flake.lock b/flake.lock index d3aae77..ea315a0 100644 --- a/flake.lock +++ b/flake.lock @@ -7,11 +7,11 @@ ] }, "locked": { - "lastModified": 1709764752, - "narHash": "sha256-+lM4J4JoJeiN8V+3WSWndPHj1pJ9Jc1UMikGbXLqCTk=", + "lastModified": 1712212014, + "narHash": "sha256-s+lbaf3nLRn1++/X2eXwY9mYCA/m9l8AvyG8beeOaXE=", "owner": "nix-community", "repo": "home-manager", - "rev": "cf111d1a849ddfc38e9155be029519b0e2329615", + "rev": "7e91f2a0ba4b62b88591279d54f741a13e36245b", "type": "github" }, "original": { @@ -22,11 +22,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1709703039, - "narHash": "sha256-6hqgQ8OK6gsMu1VtcGKBxKQInRLHtzulDo9Z5jxHEFY=", + "lastModified": 1712122226, + "narHash": "sha256-pmgwKs8Thu1WETMqCrWUm0CkN1nmCKX3b51+EXsAZyY=", "owner": "nixos", "repo": "nixpkgs", - "rev": "9df3e30ce24fd28c7b3e2de0d986769db5d6225d", + "rev": "08b9151ed40350725eb40b1fe96b0b86304a654b", "type": "github" }, "original": { diff --git a/home-manager/apps/hyprland.nix b/home-manager/apps/hyprland.nix index d339a7e..15a871e 100644 --- a/home-manager/apps/hyprland.nix +++ b/home-manager/apps/hyprland.nix @@ -1,3 +1,24 @@ +{pkgs, ...}: { - wayland.windowManager.hyprland.enable = true; + wayland.windowManager.hyprland = { + enable = true; + systemd.enable = true; + package = pkgs.hyprland; + + settings = { + "$terminal" = "foot"; + "$mod" = "SUPER"; + monitor=",preferred,auto,1.5"; + input = { + touchpad = { + natural_scroll = true; + }; + }; + bind = [ + "$mod, Q, exec, $terminal" + "$mod, F, exec, firefox" + ]; + + }; + }; } diff --git a/home-manager/home.nix b/home-manager/home.nix index 9cc6f84..cf854f2 100644 --- a/home-manager/home.nix +++ b/home-manager/home.nix @@ -53,6 +53,7 @@ # Backup deja-dup + synology-drive-client # Note taking obsidian @@ -96,6 +97,9 @@ clock24 = true; keyMode = "vi"; prefix = "C-a"; + customPaneNavigationAndResize = true; + extraConfig = '' + ''; }; programs.fzf = {