๐Ÿ“ฆ SergioRibera / dotfiles

๐Ÿ“„ README.md ยท 70 lines
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70## Linux NixDots files

My personal dotfiles for a NixOS

> Wayland (Hyprland)

## Installation

To install it see the next steps:

> [!IMPORTANT]
> List of hosts:
>
> - laptop: settings for personal laptop with 1 monitors
> - race4k: settings for dektop with 4 monitors and Nvidia
>
> List of users:
>
> - s4rch: Personal user with graphical interface and ready-to-use environment

- Boot into the installer environment
- Format and mount your disks inside /mnt
- Run:

```sh
# go into a root shell
su -i

# go inside a shell with properly required programs
nix-shell -p git

# create this folder if necessary
mkdir -p /mnt/etc/

# clone the repo
git clone --depth 1 https://github.com/SergioRibera/Dotfiles /mnt/etc/nixos

# remove this file
# replace <host> by host you want install
rm /mnt/etc/nixos/hosts/<host>/hardware-configuration.nix

# generate the config and take some files
nixos-generate-config --root /mnt
rm /mnt/etc/nixos/configuration.nix
mv /mnt/etc/nixos/hardware-configuration.nix /mnt/etc/nixos/hosts/<host>

# make sure you're in this path
cd /mnt/etc/nixos

# replace <host> by host you want install
nixos-install --flake '.#<host>'
```

- Reboot, login as root, and change the password for your user using `passwd`
- Log-in in the displayManager.
- Then do this:

```sh
sudo chown -R $USER /etc/nixos
```

## Thanks to

This good people who helped me when learning nix-related stuff! really, thanks!

- [Lemin-n](https://github.com/Lemin-n/dotfiles)
- [L I N U X](https://github.com/linuxmobile/kaku)
- [nmasur](https://github.com/nmasur/dotfiles)
- [badele](https://github.com/badele/nix-homelab)