From b458408f120f6d5947d1475cc53aedca2279b7da Mon Sep 17 00:00:00 2001 From: Charlie Root Date: Wed, 9 Oct 2024 22:49:23 +0200 Subject: [PATCH] quickshell: init --- flake.lock | 21 +++++++++++++++++++++ flake.nix | 5 +++++ modules/style/quickshell/module.nix | 23 +++++++++++++++++++++++ 3 files changed, 49 insertions(+) create mode 100644 modules/style/quickshell/module.nix diff --git a/flake.lock b/flake.lock index 8c0d19f..76ce7cf 100644 --- a/flake.lock +++ b/flake.lock @@ -2678,6 +2678,26 @@ "type": "github" } }, + "quickshell": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1728201439, + "narHash": "sha256-l2asnx4nJb2iFFuoGHKkSHaCmeg4IITFSmT2JF/IbzA=", + "ref": "refs/heads/master", + "rev": "8e40112d143f805a3fdcc967c50500e2c035ff12", + "revCount": 353, + "type": "git", + "url": "https://git.outfoxxed.me/outfoxxed/quickshell" + }, + "original": { + "type": "git", + "url": "https://git.outfoxxed.me/outfoxxed/quickshell" + } + }, "rnix-lsp": { "inputs": { "naersk": "naersk", @@ -2709,6 +2729,7 @@ "lix-module": "lix-module", "neovim-flake": "neovim-flake", "nixpkgs": "nixpkgs_4", + "quickshell": "quickshell", "schizofox": "schizofox", "spicetify-nix": "spicetify-nix", "split-monitor-workspaces": "split-monitor-workspaces", diff --git a/flake.nix b/flake.nix index 092964b..40b5286 100644 --- a/flake.nix +++ b/flake.nix @@ -64,5 +64,10 @@ }; # Wrapper-manager for safely wrapping some packages. wrapper-manager.url = "github:viperML/wrapper-manager"; + + quickshell = { + url = "git+https://git.outfoxxed.me/outfoxxed/quickshell"; + inputs.nixpkgs.follows = "nixpkgs"; + }; }; } diff --git a/modules/style/quickshell/module.nix b/modules/style/quickshell/module.nix new file mode 100644 index 0000000..0a47bd3 --- /dev/null +++ b/modules/style/quickshell/module.nix @@ -0,0 +1,23 @@ +{ + inputs', + pkgs, + lib, + ... +}: let + inherit (inputs') quickshell; + inherit (lib.generators) toKeyValue; +in { + home.packages = with pkgs; [ + qt6.qtimageformats # amog + qt6.qt5compat # shader fx + quickshell.packages.default + pamtester # lockscreen + grim + imagemagick # screenshot + ]; + + xdg.configFile."quickshell/manifest.conf".text = toKeyValue {} { + shell = "${./shell}"; + lockscreen = "${./lockscreen}"; + }; +}