๐Ÿ“ฆ SergioRibera / dotfiles

My NixOs dotfiles

โ˜… 13 stars โ‘‚ 0 forks ๐Ÿ‘ 13 watching
dotfilesnixosnixos-confignixos-configurationnixos-dotfiles
๐Ÿ“ฅ Clone https://github.com/SergioRibera/dotfiles.git
HTTPS git clone https://github.com/SergioRibera/dotfiles.git
SSH git clone git@github.com:SergioRibera/dotfiles.git
CLI gh repo clone SergioRibera/dotfiles
Sergio Ribera Sergio Ribera feat: add hytale launcher game efa31b7 2 days ago ๐Ÿ“ History
๐Ÿ“‚ main View all commits โ†’
๐Ÿ“ .cargo
๐Ÿ“ .github
๐Ÿ“ apps
๐Ÿ“ colorscheme
๐Ÿ“ home
๐Ÿ“ hosts
๐Ÿ“ lib
๐Ÿ“ pkgs
๐Ÿ“ scripts
๐Ÿ“ secrets
๐Ÿ“ templates
๐Ÿ“ Unity3D
๐Ÿ“„ .editorconfig
๐Ÿ“„ .gitignore
๐Ÿ“„ flake.lock
๐Ÿ“„ flake.nix
๐Ÿ“„ README.md
๐Ÿ“„ sc.toml
๐Ÿ“„ secrets.nix
๐Ÿ“„ README.md

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:
# 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:
sudo chown -R $USER /etc/nixos

Thanks to

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