Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/steven0351/nix
My nix configurations
https://github.com/steven0351/nix
Last synced: 20 days ago
JSON representation
My nix configurations
- Host: GitHub
- URL: https://github.com/steven0351/nix
- Owner: Steven0351
- License: gpl-3.0
- Created: 2021-12-17T04:54:06.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-07-31T04:21:49.000Z (5 months ago)
- Last Synced: 2024-12-09T16:55:46.010Z (27 days ago)
- Language: Lua
- Size: 1.83 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Steven0351/nix
My nix configurations for my various systems. This was very much inspired the
configurations found at [jwoudenberg/nix](https://github.com/jwoudenberg/nix).To build and switch changes made, run the following:
**macos-laptop**
```fish
nix build .#darwinConfigurations.macos-laptop.system
./result/sw/bin/darwin-rebuild switch --flake .#macos-laptop
```**mac-mini**
```fish
nix build .#darwinConfigurations.mac-mini.system
./result/sw/bin/darwin-rebuild switch --flake .#mac-mini
```**nixos-x86-vm**
```fish
nix build .#nixosConfigurations.nixos-x86-vm.config.system.build.toplevel
sudo ./result/sw/bin/nixos-rebuild switch --flake .#nixos-x86-vm
```### Updating neovim configuration
It's a pain to edit neovim configuration and then have to create a new generation
to see if the update is actually what I want or need. To quickly iterate on configuration
changes run the following:```fish
./edit-neovim-config
```This script will open neovim with `./shared` as `XDG_CONFIG_HOME` so the `./shared/nvim`
directory is used for loading all the config files. `nvim -u ./shared/nvim/init.lua`
does not work because it will still try to source files from `~/.config/nvim`.