Skip to content

Instantly share code, notes, and snippets.

@lvaylet
Last active November 16, 2024 19:27
Show Gist options
  • Save lvaylet/6c103c2702f2a171895b02f8abcdfd1e to your computer and use it in GitHub Desktop.
Save lvaylet/6c103c2702f2a171895b02f8abcdfd1e to your computer and use it in GitHub Desktop.
nix-shell -p git curl vim
git clone https://gitlab.com/zaney/zaneyos.git
cd zaneyos
cp -r hosts/default hosts/desktop
# Update configuration variables and options.
sed -i 's/aarch64-linux/x86_64-linux/g' flake.nix
sed -i 's/nixbook/desktop/g' flake.nix
sed -i 's/zaney/laurent/g' flake.nix
sed -i 's/Tyler Kelley/Laurent Vaylet/g' hosts/desktop/variables.nix
sed -i 's/tylerzanekelley/laurent.vaylet/g' hosts/desktop/variables.nix
sed -i 's/clock24h = false/clock24h = true/g' hosts/desktop/variables.nix
sed -i 's/America\/Chicago/Europe\/Paris/g' hosts/desktop/config.nix
sed -i 's/local.hardware-clock.enable = false/local.hardware-clock.enable = true/g' hosts/desktop/config.nix
# TODO Update `i18n.extraLocaleSettings` in `hosts/desktop/config.nix` too? Target:
# # Select internationalisation properties.
# i18n.defaultLocale = "en_US.UTF-8";
#
# i18n.extraLocaleSettings = {
# LC_ADDRESS = "fr_FR.UTF-8";
# LC_IDENTIFICATION = "fr_FR.UTF-8";
# LC_MEASUREMENT = "fr_FR.UTF-8";
# LC_MONETARY = "fr_FR.UTF-8";
# LC_NAME = "fr_FR.UTF-8";
# LC_NUMERIC = "fr_FR.UTF-8";
# LC_PAPER = "fr_FR.UTF-8";
# LC_TELEPHONE = "fr_FR.UTF-8";
# LC_TIME = "fr_FR.UTF-8";
# };
nixos-generate-config --show-hardware-config > hosts/desktop/hardware.nix
git add hosts/desktop # to prevent "No such file or directory" errors during `nixos-rebuild --flake`
NIX_CONFIG="experimental-features = nix-command flakes"
sudo nixos-rebuild switch --flake .#desktop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment