From 27bbdb9f48a09e6660d647c95c1fb4697fc31bc9 Mon Sep 17 00:00:00 2001 From: joygnu Date: Sun, 4 Aug 2024 00:37:19 +0200 Subject: [PATCH] shorter flake --- flake.nix | 29 +++++++++++++---------------- home/hyprland/default.nix | 4 ++++ home/hyprland/vm.sh | 2 +- home/rofi/default.nix | 13 +++++++------ 4 files changed, 25 insertions(+), 23 deletions(-) diff --git a/flake.nix b/flake.nix index 1159503..2ae0ee0 100644 --- a/flake.nix +++ b/flake.nix @@ -6,33 +6,30 @@ ags.url = "github:Aylur/ags"; stylix.url = "github:danth/stylix"; - firefox-addons = { url = "gitlab:rycee/nur-expressions?dir=pkgs/firefox-addons"; inputs.nixpkgs.follows = "nixpkgs"; }; - + home-manager = { url = "github:nix-community/home-manager"; inputs.nixpkgs.follows = "nixpkgs"; }; }; - outputs = { nixpkgs, home-manager, ... }@inputs: { - nixosConfigurations.desktop = nixpkgs.lib.nixosSystem { - specialArgs = {inherit inputs;}; - modules = [ - ./hosts/desktop - inputs.stylix.nixosModules.stylix - ]; + outputs = { nixpkgs, home-manager, stylix, ... }@inputs: let + systemConfig = { modules }: nixpkgs.lib.nixosSystem { + specialArgs = { inherit inputs; }; + modules = modules ++ [ stylix.nixosModules.stylix ]; }; - - nixosConfigurations.laptop = nixpkgs.lib.nixosSystem { - specialArgs = {inherit inputs;}; - modules = [ - ./hosts/laptop - inputs.stylix.nixosModules.stylix - ]; + in { + nixosConfigurations = { + desktop = systemConfig { + modules = [ ./hosts/desktop ]; + }; + laptop = systemConfig { + modules = [ ./hosts/laptop ]; + }; }; }; } diff --git a/home/hyprland/default.nix b/home/hyprland/default.nix index 3d22e5a..1d89cda 100644 --- a/home/hyprland/default.nix +++ b/home/hyprland/default.nix @@ -50,6 +50,10 @@ "float,title:^(Calculator)(.*)$" "float,title:^(Bluetooth)(.*)$" ]; + + gestures = { + workspace_swipe = true; + }; bind = [ diff --git a/home/hyprland/vm.sh b/home/hyprland/vm.sh index 638ca27..0b14166 100755 --- a/home/hyprland/vm.sh +++ b/home/hyprland/vm.sh @@ -6,7 +6,7 @@ vm_state=$(virsh --connect qemu:///system domstate "$VM_NAME") if [ "$vm_state" != "running" ]; then virsh --connect qemu:///system start "$VM_NAME" - sleep 5 + sleep 10 fi # Get the IP address of the VM diff --git a/home/rofi/default.nix b/home/rofi/default.nix index bb284f2..b443567 100644 --- a/home/rofi/default.nix +++ b/home/rofi/default.nix @@ -6,12 +6,13 @@ package = pkgs.rofi-wayland; theme = lib.mkForce "~/nix/home/rofi/gruvbox-material.rasi"; extraConfig = { - display-ssh= ""; - display-run= ""; - display-drun= ""; - display-window= ""; - display-combi= ""; - show-icons= true; + display-ssh = ""; + display-run = ""; + display-drun = ""; + display-window = ""; + display-combi = ""; + show-icons = true; + terminal = "alacritty"; }; }; }