mirror of
https://github.com/davegallant/nix-config
synced 2025-08-05 14:43:39 +00:00
Move all files from from the nix folder
This commit is contained in:
21
README.md
21
README.md
@@ -2,25 +2,12 @@
|
|||||||
|
|
||||||
[](https://builtwithnix.org)
|
[](https://builtwithnix.org)
|
||||||
|
|
||||||
This repo stores nix expressions to manage my machines.
|
This repo stores nix to manage my machines. The initial config here was heavily inspired from [here](https://gitlab.com/samuelgrf/nixos-config/-/tree/master/).
|
||||||
|
|
||||||
## Setup
|
## Setup
|
||||||
|
|
||||||
## git
|
|
||||||
|
|
||||||
Clone this as a bare repo to avoid the need for symlinking:
|
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ git clone --bare git@github.com:davegallant/nix-config.git $HOME/.dotfiles
|
$ git clone git@github.com:davegallant/nix-config.git
|
||||||
$ alias config='git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME' # add alias to a .bashrc / .zshrc
|
$ cd nix-config
|
||||||
$ config config --local status.showUntrackedFiles no
|
$ sudo ./nixos-rebuild switch
|
||||||
$ config checkout -f # this will overwrite any existing configs in the home directory
|
|
||||||
```
|
|
||||||
|
|
||||||
## home manager
|
|
||||||
|
|
||||||
Install [nix](https://nixos.org/guides/install-nix.html) and [home-manager](https://github.com/nix-community/home-manager).
|
|
||||||
|
|
||||||
```console
|
|
||||||
$ home-manager -f ~/nix/home.nix switch
|
|
||||||
```
|
```
|
||||||
|
0
nix/flake.lock → flake.lock
generated
0
nix/flake.lock → flake.lock
generated
@@ -135,7 +135,6 @@
|
|||||||
shellAliases = {
|
shellAliases = {
|
||||||
ls = "exa -la --git";
|
ls = "exa -la --git";
|
||||||
".." = "cd ..";
|
".." = "cd ..";
|
||||||
config = "git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME";
|
|
||||||
grep = "grep --color=auto --line-buffered";
|
grep = "grep --color=auto --line-buffered";
|
||||||
k = "kubectl";
|
k = "kubectl";
|
||||||
};
|
};
|
Reference in New Issue
Block a user