zsh.nix/flake.nix

37 lines
911 B
Nix
Raw Normal View History

2024-10-18 14:14:58 +02:00
{
description = "jiriks74's ZSH configuration";
inputs = {
2025-04-19 23:07:40 +02:00
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
2024-10-18 14:14:58 +02:00
};
2025-04-19 23:07:40 +02:00
outputs = {
self,
nixpkgs,
...
}: let
# 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);
homeManagerModules = {
2025-04-19 23:07:40 +02:00
zsh = {...}: {
imports = [./modules];
2024-10-18 14:14:58 +02:00
};
2025-04-19 23:07:40 +02:00
default = self.outputs.homeManagerModules.zsh;
2024-10-18 14:14:58 +02:00
};
};
}