Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/davish/setup
My personal Nix configuration
https://github.com/davish/setup
Last synced: 3 months ago
JSON representation
My personal Nix configuration
- Host: GitHub
- URL: https://github.com/davish/setup
- Owner: davish
- Created: 2023-11-18T22:30:50.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-23T18:14:04.000Z (10 months ago)
- Last Synced: 2024-04-15T14:22:28.144Z (9 months ago)
- Language: Nix
- Size: 129 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# My Nix Setup
This is my Nix configuration!
I'm using:
- [`nix-darwin`](https://github.com/LnL7/nix-darwin) to manage system-wide settings and applications.
- [`home-manager`](https://github.com/nix-community/home-manager) to manage user-level configuration and dotfiles.I haven't configured any NixOS systems yet, but my goal is to keep macOS-specific configuration, such as the Emacs distribution I'm using, at the nix-darwin level, so that home-manager can be shared as much as possible accross platforms.
I'm also using Nix flakes -- I wish I knew enough about Nix to explain exactly what they are and why they're special.
## Layout
I make pretty heavy use of [Nix modules](https://nixos.wiki/wiki/NixOS_modules) in this config.
In every directory, `default.nix` is the entrypoint.- `nix-darwin` default configuration lives in `darwin/`
- `home-manager` default configuration lives in `home/`
- host-specific overrides and functionality live in the `hosts/` directory.
Each host has a `configuration.nix` file for system config and a `home.nix`
file for home-manager.
- dotfiles for specific applications can be found in directories under `home/` alongside their home-manager configuration.## Inspiration
- [noctuid's emacs patches](https://github.com/noctuid/dotfiles/blob/master/nix/overlays/emacs.nix)
- [mitchellh's general layout](https://github.com/mitchellh/nixos-config)
- [pawalt for collaboration](https://github.com/pawalt/setup)