nix
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
{
|
||||
description = "Flake for zshell";
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
|
||||
quickshell = {
|
||||
url = "git+https://git.outfoxxed.me/outfoxxed/quickshell";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
};
|
||||
|
||||
outputs =
|
||||
{
|
||||
self,
|
||||
nixpkgs,
|
||||
...
|
||||
}@inputs:
|
||||
let
|
||||
forAllSystems =
|
||||
fn: nixpkgs.lib.genAttrs nixpkgs.lib.platforms.linux (system: fn nixpkgs.legacyPackages.${system});
|
||||
in
|
||||
{
|
||||
formatter = forAllSystems (pkgs: pkgs.nixfmt);
|
||||
|
||||
packages = forAllSystems (pkgs: rec {
|
||||
app2unit = pkgs.callPackage ./nix/app2unit.nix { inherit pkgs; };
|
||||
});
|
||||
|
||||
devShells = forAllSystems (pkgs: {
|
||||
default =
|
||||
let
|
||||
shell = self.packages.${pkgs.stdenv.hostPlatform.system}.zshell;
|
||||
in
|
||||
pkgs.mkShell.override { stdenv = shell.stdenv; } {
|
||||
inputsFrom = [
|
||||
shell
|
||||
shell.Plugins
|
||||
];
|
||||
packages = with pkgs; [
|
||||
material-symbols
|
||||
rubik
|
||||
nerd-fonts.caskaydia-cove
|
||||
];
|
||||
};
|
||||
});
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user