My personal NixOS configurations designed with focus on usability, aesthetics and productivity :)
To get these configurations running, first set up a NixOS system with a user account.
Then copy your age key to ~/.config/sops/age/keys.txt
. This is needed in order to decrypt the secrets which are used in the system and the home configuration.
Now we can start actually installing the configurations. Go into a shell with git
installed:
nix-shell -p git
Then clone the repo:
git clone https://github.com/leon-erd/dotfiles.git ~/dotfiles
To get the hardware configuration on a new system, either copy from /etc/nixos/hardware-configuration.nix
or run:
cd ~/dotfiles
sudo nixos-generate-config --show-hardware-config > hosts/<host>/hardware-configuration.nix
Make sure to update the systemSettings
and userSettings
in hosts/<host>/flakeConfiguration.nix
to your needs:
...
let
systemSettings = {
hostname = "leon-inspiron";
timezone = "Europe/Vienna";
defaultLocale = "en_US.UTF-8";
...
Once the variables are set, switch into the system configuration by running:
cd ~/dotfiles
sudo nixos-rebuild switch --flake ./#<systemConfigurationName>
where systemConfigurationName
corresponds to the value set in hosts/<host>/flakeConfiguration.nix
.
The home-manager configuration can be installed with (might need to logout/login once before):
cd ~/dotfiles
home-manager switch --flake ./#<userConfigurationName>