feat: Convert to module options
This commit is contained in:
parent
3792d15fd0
commit
44bb5b5c8c
9 changed files with 420 additions and 315 deletions
32
flake.nix
32
flake.nix
|
@ -2,10 +2,17 @@
|
|||
description = "jiriks74's ZSH configuration";
|
||||
|
||||
inputs = {
|
||||
flake-utils.url = "github:numtide/flake-utils";
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
|
||||
home-manager.url = "github:nix-community/home-manager";
|
||||
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
outputs = {nixpkgs, ...}: let
|
||||
outputs = {
|
||||
self,
|
||||
nixpkgs,
|
||||
...
|
||||
}: let
|
||||
# Supported systems for your flake packages, shell, etc.
|
||||
systems = [
|
||||
"aarch64-linux"
|
||||
|
@ -20,25 +27,10 @@
|
|||
in {
|
||||
formatter = forAllSystems (system: nixpkgs.legacyPackages.${system}.alejandra);
|
||||
homeManagerModules = {
|
||||
default = {
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
inport = ./zsh.nix;
|
||||
};
|
||||
withPackages = {
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
./zsh.nix
|
||||
./packages.nix
|
||||
];
|
||||
zsh = {...}: {
|
||||
imports = [./modules];
|
||||
};
|
||||
default = self.outputs.homeManagerModules.zsh;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue