Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jlesquembre/dotfiles
My dotfiles
https://github.com/jlesquembre/dotfiles
dotfiles
Last synced: about 2 months ago
JSON representation
My dotfiles
- Host: GitHub
- URL: https://github.com/jlesquembre/dotfiles
- Owner: jlesquembre
- Created: 2014-04-06T12:01:06.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2024-04-11T11:47:38.000Z (9 months ago)
- Last Synced: 2024-04-14T12:16:17.261Z (9 months ago)
- Topics: dotfiles
- Language: Nix
- Size: 2.92 MB
- Stars: 16
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# dotfiles
My personal dotfiles
## Structure
- `/dotfiles`: Configuration files, like `.conf`, `.json` files
- `/home-manager`: Home manager configuration
- `/lib`: Helper functions
- `/nixos`: Nix configuration for `nixos-rebuild` commands
- `/overlays`: Custom packages# Installation
## NixOS
First get a shell with the required dependencies:
```nix
nix develop github:jlesquembre/dotfiles
``````nix
sudo nixos-rebuild switch --flake ~/dotfiles
```That commnads assumes that a file with the same name as the current hostname at
`nixos/hosts`. For example, if the hostname is `foo`, the file will be
`/nixos/hosts/foo.nix`. That file is the main entry point for the NixOS
configuration.We can override the flake hostname with the `#name` syntax, e.g.:
`--flake ~/dotfiles#other-name`## Home manager
```nix
home-manager switch --flake ~/dotfiles
```To add some extra custom config for only one host, add a file with that hostname
at `home-manager/hosts`To build home-manager for a different host use the `#` syntax, but for
home-manager the user name is also required, e.g.:`home-manager switch --flake ~/dotfiles#user@host`
# Update dependencies
`nix flake lock --update-input`
# Run neovim
Useful to get neovim with my config anywhere:
```nix
nix run github:jlesquembre/dotfiles#nvim
```