parts/templates: fix quickshell template

This commit is contained in:
Charlie Root 2024-08-31 13:06:42 +02:00
commit a33d2cc90e
6 changed files with 84 additions and 13 deletions

View file

@ -1,6 +1,6 @@
_: {
flake.templates = {
qs = {
quickshell = {
path = ./quickshell;
description = "QuickShell developement flake";
};

View file

@ -0,0 +1,3 @@
watch_file flake.nix
use flake

1
parts/templates/quickshell/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
/.direnv

48
parts/templates/quickshell/flake.lock generated Normal file
View file

@ -0,0 +1,48 @@
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1724224976,
"narHash": "sha256-Z/ELQhrSd7bMzTO8r7NZgi9g5emh+aRKoCdaAv5fiO0=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "c374d94f1536013ca8e92341b540eba4c22f9c62",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"quickshell": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1724197264,
"narHash": "sha256-kw8zZyskszCECn8Di6z7WSquBiP7UGCb3SNN5EAF6BE=",
"ref": "refs/heads/master",
"rev": "f95e7dbaf61b9868acc912896e65126bb1ee048c",
"revCount": 304,
"type": "git",
"url": "https://git.outfoxxed.me/outfoxxed/quickshell"
},
"original": {
"type": "git",
"url": "https://git.outfoxxed.me/outfoxxed/quickshell"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs",
"quickshell": "quickshell"
}
}
},
"root": "root",
"version": 7
}

View file

@ -1,7 +1,8 @@
{
description = "NixOS presentation";
description = "Quickshell tinkering";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
quickshell = {
url = "git+https://git.outfoxxed.me/outfoxxed/quickshell";
inputs.nixpkgs.follows = "nixpkgs";
@ -15,22 +16,34 @@
}: 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
default = nixpkgs.legacyPackages.${system}.mkShell {
packages = with nixpkgs.legacyPackages.${system}; [
(
quickshell.packages.${system}.default.override
{
withJemalloc = true;
withQtSvg = true;
withJemalloc = false;
withQtSvg = false;
withWayland = true;
withX11 = false;
withPipewire = true;
withPam = true;
withHyprland = true;
})
withPam = false;
withHyprland = false;
}
)
# dependencies
cli11
cmake
jemalloc
kdePackages.wayland
wayland
wayland-protocols
wayland-scanner
pkg-config
pipewire
qt6Packages.qtbase
qt6.qtdeclarative
];
};
});

View file

@ -0,0 +1,6 @@
import Quickshell
ShellRoot {
// Do some funny stuff here <3
}