https://github.com/kevindanne/dotfiles
Personal dotfiles for linux
https://github.com/kevindanne/dotfiles
config dotfiles dotfiles-linux linux
Last synced: 3 months ago
JSON representation
Personal dotfiles for linux
- Host: GitHub
- URL: https://github.com/kevindanne/dotfiles
- Owner: KevinDanne
- Created: 2024-04-12T11:41:22.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-03T00:47:57.000Z (7 months ago)
- Last Synced: 2025-01-18T07:11:56.684Z (5 months ago)
- Topics: config, dotfiles, dotfiles-linux, linux
- Language: Nix
- Homepage:
- Size: 30.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Dotfiles
## Getting Started
1. Start a new nix-shell with the git package
```bash
nix-shell -p git
```2. Clone the repository to ~/.dotfiles:
```bash
git clone https://github.com/KevinDanne/Dotfiles.git ~/.dotfiles
```2. Copy your auto generated hardware-configuration.nix file
```bash
cp /etc/nixos/hardware-configuration.nix ~/.dotfiles/nix/hosts/default
```3. Rebuild your nixos system
```bash
sudo nixos-rebuild switch --flake ~/.dotfiles/nix#default
```## How to update
1. Update your dotfiles
```bash
cd ~/.dotfiles && git pull
```2. Rebuild your nixos system by using nh (recommended) or nixos-rebuild
2.1 [nh cli](https://github.com/viperML/nh) (recommended)
```bash
nh os switch -H default ~/.dotfiles/nix
```
2.2 nixos cli
```bash
sudo nixos-rebuild switch --flake ~/.dotfiles/nix#default
```