Skip to content

xhos/nixdots

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

my NixOS config

main features

  • full system theming with stylix
  • secret management with sops-nix
  • custom driver for my samsung galaxy book 2 pro 360
  • touch support with hyprgrass
  • OneDrive and ProtonDrive mounted via rclone as custom systemd services
  • pre configured web apps

themed apps

most of these automaticly follow the stylix set base-16 color scheme

info

app runner: rofi clipboard manager: clipse compositor: hyprland fetch: fastfetch file manager: nautilus notifications deamon: mako wallpaper setter: swww

terminals

  • wezterm
  • foot
  • kitty
  • alacritty

shells

  • nushell
  • fish
  • zsh

prompts

  • starship
  • oh-my-posh

bars

  • waybar

install

(notes to self, not really instructions)

must in bash fot commands to work

nix-shell -p git home-manager
sudo rm -r /etc/nixos/*
sudo git clone https://github.com/$USER/nixdots /etc/nixos
cd /etc/nixos
sudo nixos-generate-config
rm configuration.nix
sudo mv hardware-configuration.nix hosts/$HOSTNAME/hardware-configuration.nix 
home-manager switch --flake .#$USER@$HOSTNAME --extra-experimental-features "nix-command flakes" -b b
sudo nixos-rebuild switch --flake .#$HOSTNAME

post install

sops-nix

get user (dev) key for sops:

mkdir .config/sops/age
age-keygen -o .config/sops/age/keys.txt

get age public key from the machine ssh key to put into .sops.yaml:

nix-shell -p ssh-to-age --run 'cat /etc/ssh/ssh_host_ed25519_key.pub | ssh-to-age'

if there are any erros with the keys, or after the keys were changed:

sops updatekeys /etc/nixos/core/secrets/secrets.yaml

note: if no key is able to decrypt this command will fail

copy ssh key into /hosts

cp /etc/ssh/ssh_host_ed25519_key.pub /etc/nixos/hosts/zireael/zireael.pub

put password hash into secrets.yaml, to get hash:

mkpasswd -s
configuring onedrive with rclone
mkdir ~/onedrive
rclone config

updating

cd /etc/nixos/ && nix flake update && nh home switch && nh os switch

WSL install

Enable WSL if you haven't done already:

wsl --install --no-distribution

Download nixos-wsl.tar.gz from the latest release.

Import the tarball into WSL:

    wsl --import NixOS --version 2 $env:USERPROFILE\NixOS\ nixos-wsl.tar.gz

You can now run NixOS:

    wsl -d NixOS

For more detailed instructions, refer to the documentation.

Credit/Thanks ❤️