Skip to content

My public nix base configuration (Mac+Linux) i use in my personal and work configurations.

Notifications You must be signed in to change notification settings

ojsef39/nix-base

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Repository files navigation

nix-base

My public nix base configuration (Mac+Linux) i use in my personal and work configurations.

Usage

Import with:

  inputs = {
    # custom inputs
    base.url = "github:ojsef39/nix-base";
  };

Use like:

  outputs = { self, base }: {
    darwinConfigurations = {
      "mac" = base.inputs.darwin.lib.darwinSystem {
        system = "aarch64-darwin";  # or x86_64-darwin
        modules = base.outputs.sharedModules ++ base.outputs.macModules ++ [
          # Mac-specific shell customizations
          {
            programs.zsh = {
              enable = true;
            };
          }
        ];

Folder Structure

See example: https://github.com/ojsef39/nix-personal

TODOs

  • Move pkgs for all systems to shared/pkgs.nix
    • Move packages to where they get used e.g. eza to shell/default.nix

About

My public nix base configuration (Mac+Linux) i use in my personal and work configurations.

Topics

Resources

Stars

Watchers

Forks