From 1da7daafcd654c87b10b1b68c445fc69169c5031 Mon Sep 17 00:00:00 2001 From: Daniel Langbein Date: Tue, 5 Sep 2023 14:40:08 +0200 Subject: [PATCH] update README --- README.md | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) 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