From 8443084c3ac42c1239cf974303e6b3471f19cef7 Mon Sep 17 00:00:00 2001 From: Charlie Root Date: Thu, 22 Aug 2024 20:20:23 +0200 Subject: [PATCH] created quickshell template --- modules/wms/wayland/hypr/land.nix | 2 +- parts/templates/default.nix | 8 ++++++ parts/templates/quickshell/flake.nix | 38 ++++++++++++++++++++++++++++ 3 files changed, 47 insertions(+), 1 deletion(-) create mode 100644 parts/templates/default.nix create mode 100644 parts/templates/quickshell/flake.nix diff --git a/modules/wms/wayland/hypr/land.nix b/modules/wms/wayland/hypr/land.nix index ba39e1f..a3c2bee 100644 --- a/modules/wms/wayland/hypr/land.nix +++ b/modules/wms/wayland/hypr/land.nix @@ -122,7 +122,7 @@ in { kb_variant = ",colemak_dh_wide"; kb_options = "grp:rctrl_rshift_toggle"; - sensitivity = 1.0; + sensitivity = 0.0; follow_mouse = true; repeat_rate = 50; diff --git a/parts/templates/default.nix b/parts/templates/default.nix new file mode 100644 index 0000000..efc07c1 --- /dev/null +++ b/parts/templates/default.nix @@ -0,0 +1,8 @@ +_: { + flake.templates = { + qs = { + path = ./quickshell; + description = "QuickShell developement flake"; + }; + }; +} diff --git a/parts/templates/quickshell/flake.nix b/parts/templates/quickshell/flake.nix new file mode 100644 index 0000000..bc74286 --- /dev/null +++ b/parts/templates/quickshell/flake.nix @@ -0,0 +1,38 @@ +{ + description = "NixOS presentation"; + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs"; + quickshell = { + url = "git+https://git.outfoxxed.me/outfoxxed/quickshell"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + }; + + outputs = { + nixpkgs, + quickshell, + ... + }: let + systems = ["x86_64-linux" "aarch64-linux"]; + forEachSystem = nixpkgs.lib.genAttrs systems; + + pkgsForEach = nixpkgs.legacyPackages; + in { + devShells = forEachSystem (system: { + default = pkgsForEach.${system}.mkShellNoCC { + packages = [ + quickshell.packages.${system}.default.override + { + withJemalloc = true; + withQtSvg = true; + withWayland = true; + withX11 = false; + withPipewire = true; + withPam = true; + withHyprland = true; + } + ]; + }; + }); + }; +}