parts/templates: fix quickshell template
This commit is contained in:
parent
0cd9acc0a7
commit
a33d2cc90e
6 changed files with 84 additions and 13 deletions
|
@ -1,6 +1,6 @@
|
||||||
_: {
|
_: {
|
||||||
flake.templates = {
|
flake.templates = {
|
||||||
qs = {
|
quickshell = {
|
||||||
path = ./quickshell;
|
path = ./quickshell;
|
||||||
description = "QuickShell developement flake";
|
description = "QuickShell developement flake";
|
||||||
};
|
};
|
||||||
|
|
3
parts/templates/quickshell/.envrc
Normal file
3
parts/templates/quickshell/.envrc
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
watch_file flake.nix
|
||||||
|
|
||||||
|
use flake
|
1
parts/templates/quickshell/.gitignore
vendored
Normal file
1
parts/templates/quickshell/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
/.direnv
|
48
parts/templates/quickshell/flake.lock
generated
Normal file
48
parts/templates/quickshell/flake.lock
generated
Normal 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
|
||||||
|
}
|
|
@ -1,7 +1,8 @@
|
||||||
{
|
{
|
||||||
description = "NixOS presentation";
|
description = "Quickshell tinkering";
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs";
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||||
|
|
||||||
quickshell = {
|
quickshell = {
|
||||||
url = "git+https://git.outfoxxed.me/outfoxxed/quickshell";
|
url = "git+https://git.outfoxxed.me/outfoxxed/quickshell";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
@ -15,22 +16,34 @@
|
||||||
}: let
|
}: let
|
||||||
systems = ["x86_64-linux" "aarch64-linux"];
|
systems = ["x86_64-linux" "aarch64-linux"];
|
||||||
forEachSystem = nixpkgs.lib.genAttrs systems;
|
forEachSystem = nixpkgs.lib.genAttrs systems;
|
||||||
|
|
||||||
pkgsForEach = nixpkgs.legacyPackages;
|
|
||||||
in {
|
in {
|
||||||
devShells = forEachSystem (system: {
|
devShells = forEachSystem (system: {
|
||||||
default = pkgsForEach.${system}.mkShellNoCC {
|
default = nixpkgs.legacyPackages.${system}.mkShell {
|
||||||
packages = [
|
packages = with nixpkgs.legacyPackages.${system}; [
|
||||||
(quickshell.packages.${system}.default.override
|
(
|
||||||
|
quickshell.packages.${system}.default.override
|
||||||
{
|
{
|
||||||
withJemalloc = true;
|
withJemalloc = false;
|
||||||
withQtSvg = true;
|
withQtSvg = false;
|
||||||
withWayland = true;
|
withWayland = true;
|
||||||
withX11 = false;
|
withX11 = false;
|
||||||
withPipewire = true;
|
withPipewire = true;
|
||||||
withPam = true;
|
withPam = false;
|
||||||
withHyprland = true;
|
withHyprland = false;
|
||||||
})
|
}
|
||||||
|
)
|
||||||
|
# dependencies
|
||||||
|
cli11
|
||||||
|
cmake
|
||||||
|
jemalloc
|
||||||
|
kdePackages.wayland
|
||||||
|
wayland
|
||||||
|
wayland-protocols
|
||||||
|
wayland-scanner
|
||||||
|
pkg-config
|
||||||
|
pipewire
|
||||||
|
qt6Packages.qtbase
|
||||||
|
qt6.qtdeclarative
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
6
parts/templates/quickshell/src/shell.qml
Normal file
6
parts/templates/quickshell/src/shell.qml
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
|
||||||
|
import Quickshell
|
||||||
|
|
||||||
|
ShellRoot {
|
||||||
|
// Do some funny stuff here <3
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue