2024-10-18 14:14:58 +02:00
|
|
|
{
|
|
|
|
description = "jiriks74's ZSH configuration";
|
|
|
|
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
|
|
};
|
|
|
|
|
|
|
|
outputs = {
|
|
|
|
self,
|
|
|
|
nixpkgs,
|
|
|
|
flake-utils,
|
|
|
|
...
|
2024-10-24 00:27:43 +02:00
|
|
|
} @ inputs: let
|
|
|
|
inherit (self) outputs;
|
|
|
|
# Supported systems for your flake packages, shell, etc.
|
|
|
|
systems = [
|
|
|
|
"aarch64-linux"
|
|
|
|
"i686-linux"
|
|
|
|
"x86_64-linux"
|
|
|
|
"aarch64-darwin"
|
|
|
|
"x86_64-darwin"
|
|
|
|
];
|
|
|
|
# This is a function that generates an attribute by calling a function you
|
|
|
|
# pass to it, with each system as an argument
|
|
|
|
forAllSystems = nixpkgs.lib.genAttrs systems;
|
|
|
|
in {
|
|
|
|
formatter = forAllSystems (system: nixpkgs.legacyPackages.${system}.alejandra);
|
2024-10-18 14:49:12 +02:00
|
|
|
homeManagerModules = {
|
2024-10-24 00:27:43 +02:00
|
|
|
default = {
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: {
|
2024-11-20 10:26:23 +01:00
|
|
|
inport = ./zsh.nix;
|
|
|
|
};
|
|
|
|
withPackages = {
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
imports = [
|
|
|
|
./zsh.nix
|
|
|
|
./packages.nix
|
2024-10-18 14:49:12 +02:00
|
|
|
];
|
2024-10-18 14:14:58 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|