My personal NixOS dotfiles
Go to file
2024-12-27 21:48:56 +01:00
config cleanup in rofi and waybar 2024-12-26 21:04:30 +01:00
ginoza SSH moved into own config file 2024-12-27 21:48:56 +01:00
kogami SSH moved into own config file 2024-12-27 21:48:56 +01:00
nixos SSH moved into own config file 2024-12-27 21:48:56 +01:00
.gitignore cleanup 2024-12-27 10:32:42 +01:00
flake.lock System update 2024-12-27 16:44:26 +01:00
flake.nix auto-cpufreq added 2024-12-27 10:32:32 +01:00
README.md Yubikey and Oh-my-posh improvements 2024-12-26 21:56:44 +01:00
TODO.md SSH moved into own config file 2024-12-27 21:48:56 +01:00

dotfiles

  • my personal nix dotfiles in the flake

Build and deploy

  • simple build command for system
git clone https://git.foglar.tech/foglar/dotfiles.git $HOME/.dotfiles 
sudo nixos-rebuild switch --flake ~/.dotfiles#kogami
  • generate a vm of the flake with this command
nix run github:nix-community/nixos-generators -- -c ./flake.nix --flake '#ginoza' -f vm --disk-size 20480 
  • deploy configuration on the new system
# Copy my repository
git clone https://git.foglar.tech/foglar/dotfiles.git $HOME/.dotfiles --depth 1

# Generate your own hardware configurations for system
sudo nixos-generate-config --dir ~/.dotfiles/kogami
# or
sudo nixos-generate-config --dir ~/.dotfiles/ginoza

# Rebuild your system from the flake
sudo nixos-rebuild switch --flake ~/.dotfiles#kogami

Features

Secure Operations

  • file for sops is in ~/.config/sops/ags/keys.txt

Yubikey

  • setup your yubikey to work with current user
nix-shell -p yubico-pam -p yubikey-manager
ykman otp chalresp --touch --generate 2
ykpamcfg -2 -v