flake.nix update
This commit is contained in:
parent
bdd981e15c
commit
178ad2ac8a
2 changed files with 61 additions and 22 deletions
|
|
@ -87,14 +87,21 @@ If you want to use the ArchUpdater Widget, make sure you have any polkit agent i
|
||||||
|
|
||||||
### Installation
|
### Installation
|
||||||
|
|
||||||
|
#### For Arch
|
||||||
```bash
|
```bash
|
||||||
# Install Quickshell
|
# Install Quickshell
|
||||||
yay -S quickshell-git
|
yay -S quickshell-git
|
||||||
|
|
||||||
# Download and install Noctalia (latest release)
|
# Download and install Noctalia (latest release)
|
||||||
mkdir -p ~/.config/quickshell && curl -sL https://github.com/noctalia-dev/noctalia-shell/releases/latest/download/noctalia-latest.tar.gz | tar -xz --strip-components=1 -C ~/.config/quickshell
|
mkdir -p ~/.config/quickshell && curl -sL https://github.com/noctalia-dev/noctalia-shell/releases/latest/download/noctalia-latest.tar.gz | tar -xz --strip-components=1 -C ~/.config/quickshell
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
#### For Nix
|
||||||
|
|
||||||
|
```bash
|
||||||
|
nix run github:noctalia-dev/noctalia-shell
|
||||||
|
```
|
||||||
|
|
||||||
### Usage
|
### Usage
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
|
|
||||||
74
flake.nix
74
flake.nix
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
description = "Desktop shell for Caelestia dots";
|
description = "Noctalia shell - a Wayland desktop shell built with Quickshell";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
|
|
@ -11,25 +11,57 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = {
|
outputs = { self, nixpkgs, systems, quickshell, ... }:
|
||||||
self,
|
let
|
||||||
nixpkgs,
|
eachSystem = nixpkgs.lib.genAttrs (import systems);
|
||||||
systems,
|
in {
|
||||||
...
|
formatter = eachSystem (pkgs: pkgs.alejandra);
|
||||||
} @ inputs: let
|
|
||||||
eachSystem = nixpkgs.lib.genAttrs (import systems);
|
|
||||||
in {
|
|
||||||
formatter = eachSystem (pkgs: pkgs.alejandra);
|
|
||||||
|
|
||||||
packages = eachSystem (system: rec {
|
packages = eachSystem (system:
|
||||||
noctalia-shell = nixpkgs.legacyPackages.${system}.callPackage ./nix {
|
let
|
||||||
rev = self.rev or self.dirtyRev;
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
quickshell = inputs.quickshell.packages.${system}.default.override {
|
qs = quickshell.packages.${system}.default.override {
|
||||||
withX11 = false;
|
withX11 = false;
|
||||||
withI3 = false;
|
withI3 = false;
|
||||||
};
|
};
|
||||||
};
|
|
||||||
default = noctalia-shell;
|
runtimeDeps = with pkgs; [
|
||||||
});
|
bash bluez brightnessctl cava cliphist coreutils ddcutil file
|
||||||
};
|
findutils gpu-screen-recorder libnotify matugen networkmanager
|
||||||
|
swww wl-clipboard
|
||||||
|
];
|
||||||
|
fontconfig = pkgs.makeFontsConf {
|
||||||
|
fontDirectories = [ pkgs.material-symbols pkgs.roboto pkgs.inter-nerdfont ];
|
||||||
|
};
|
||||||
|
in
|
||||||
|
pkgs.stdenv.mkDerivation {
|
||||||
|
pname = "noctalia-shell";
|
||||||
|
version = self.rev or self.dirtyRev or "dirty";
|
||||||
|
src = ./.;
|
||||||
|
|
||||||
|
nativeBuildInputs = [ pkgs.gcc pkgs.makeWrapper pkgs.qt6.wrapQtAppsHook ];
|
||||||
|
buildInputs = [ qs pkgs.xkeyboard-config pkgs.qt6.qtbase ];
|
||||||
|
propagatedBuildInputs = runtimeDeps;
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p $out/share/noctalia-shell
|
||||||
|
cp -r ./* $out/share/noctalia-shell
|
||||||
|
|
||||||
|
makeWrapper ${qs}/bin/qs $out/bin/noctalia-shell \
|
||||||
|
--prefix PATH : "${pkgs.lib.makeBinPath runtimeDeps}" \
|
||||||
|
--set FONTCONFIG_FILE "${fontconfig}" \
|
||||||
|
--add-flags "-p $out/share/noctalia-shell"
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "A sleek and minimal desktop shell thoughtfully crafted for Wayland, built with Quickshell.";
|
||||||
|
homepage = "https://github.com/noctalia-dev/noctalia-shell";
|
||||||
|
license = pkgs.lib.licenses.mit;
|
||||||
|
mainProgram = "noctalia-shell";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
defaultPackage = eachSystem (system: self.packages.${system}.default);
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue