diff --git a/README.md b/README.md index 84b57a0..112d962 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ During installation, select manual partitioning: Directly change to new config and make it default: ```shell -sudo nixos-rebuild -I nixos-config=hosts/yodaTab/configuration.nix switch +sudo nixos-rebuild -I nixos-config=hosts/$(hostname)/configuration.nix switch ``` ## System updates @@ -36,11 +36,6 @@ sudo nix-channel --update ``` ```shell -# The -s param does currently not work for both, .nix and .json file. -# Workaround: https://github.com/nmattia/niv/pull/133#issuecomment-703322261 -# -#niv --sources-file=yodaTab/nix/sources.json update -# niv update ``` @@ -143,7 +138,7 @@ Summary: * Create subvolume `@swap` directly below top-level subvolume. * Mount at `/swap` * Create swapfile: `sudo btrfs filesystem mkswapfile --size 8g --uuid clear /swap/swapfile` -* Regenerate hardware-configuration: `sudo nixos-generate-config --dir yodaTab` +* Regenerate hardware-configuration: `sudo nixos-generate-config --dir $(hostname)` * Add `swapDevices = [ { device = "/swap/swapfile"; } ];` to hardware configuration and run `nixos-rebuild switch` (see above). ## Automount Encrypted Drive @@ -153,7 +148,7 @@ Summary: * Re-generate hardware configuration: ```shell -sudo nixos-generate-config --dir hosts/yodaTab +sudo nixos-generate-config --dir hosts/$(hostname) ``` ## GNOME extensions