1
0
Fork 0
dotfiles/readme.md

44 lines
1.2 KiB
Markdown
Raw Normal View History

2020-11-14 08:18:07 -05:00
# schrofi's system configuration
2021-01-11 09:38:59 -05:00
My personal system configuration using cdist on a Manjaro system, specifically tailored towards me and nobody else ¯\_(ツ)_/¯
2020-11-14 08:18:07 -05:00
You can use it for inspiration though.
## Getting Started
2021-01-11 09:38:59 -05:00
1. Install cdist
```
git clone https://code.ungleich.ch/ungleich-public/cdist.git
cd cdist
export PATH=$PATH:$(pwd -P)/bin
./bin/cdist-build-helper version
make install
sudo python setup.py install
```
2. Setup SSH root access
//TODO
3. CD into wanted configuration directory and apply configuration to localhost
```
cdist config -v -i manifest localhost
```
## Getting Started - DEPRECATED NIXOS
2020-11-14 08:18:07 -05:00
1. Clone the repository into your /etc/nixos directory (delete/rename the existing configuration.nix).
2020-11-14 08:32:54 -05:00
2. Add the unstable NixOS channel
```
nix-channel --add https://nixos.org/channels/nixos-unstable nixos-unstable
```
3. Build the system with the cloned configuration, this will also create the "schrofi" user.
2020-11-14 08:18:07 -05:00
```
nixos-rebuild switch
```
2020-11-14 08:32:54 -05:00
4. Switch to the user and symlink the chezmoi config to the new users home dir.
2020-11-14 08:18:07 -05:00
```
mkdir -p ~/.config/chezmoi
ln -s /etc/nixos/chezmoi.json /home/schrofi/.config/chezmoi/chezmoi.json
```
2020-11-14 08:32:54 -05:00
5. Apply the configuration
2020-11-14 08:18:07 -05:00
```
chezmoi apply
```
2020-11-14 08:32:54 -05:00
6. Done