From 72cf2763538e7da41830a0ac1712905794cb9162 Mon Sep 17 00:00:00 2001 From: Daniel Langbein Date: Tue, 22 Aug 2023 14:30:39 +0200 Subject: [PATCH] refactor (fix typo) --- README.md | 14 ++++++++------ {yodaTux => yodaTab}/hardware-configuration.nix | 0 {yodaTux => yodaTab}/home-manager.nix | 0 {yodaTux => yodaTab}/nix/sources.json | 0 {yodaTux => yodaTab}/nix/sources.nix | 0 5 files changed, 8 insertions(+), 6 deletions(-) rename {yodaTux => yodaTab}/hardware-configuration.nix (100%) rename {yodaTux => yodaTab}/home-manager.nix (100%) rename {yodaTux => yodaTab}/nix/sources.json (100%) rename {yodaTux => yodaTab}/nix/sources.nix (100%) diff --git a/README.md b/README.md index a3bb8cd..bb9fdaf 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # NixOS -* There is controversy about flakes, rather use channels (e.g. with niv) +For each machine, there is a top-level directory, e.g. [yodaTab](yodaTab). ## Build and Switch @@ -9,7 +9,7 @@ Directly change to new config, make it default: ```shell -sudo nixos-rebuild -I nixos-config=yodaTux/configuration.nix switch +sudo nixos-rebuild -I nixos-config=yodaTab/configuration.nix switch ``` ## System updates @@ -24,9 +24,9 @@ sudo nix-channel --update # 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=yodaTux/nix/sources.json update +#niv --sources-file=yodaTab/nix/sources.json update # -(cd yodaTux && niv update) +(cd yodaTab && niv update) ``` Then run `nixos-rebuild switch`, see above. @@ -68,7 +68,7 @@ sudo nix-channel --list Use the corresponding branch: ```shell -(cd yodaTux && niv add nix-community/home-manager -n home-manager -b release-23.05) +(cd yodaTab && niv add nix-community/home-manager -n home-manager -b release-23.05) ``` ## disko and nixos-anywhere @@ -88,7 +88,7 @@ Use the corresponding branch: * Re-generate hardware configuration: ```shell -sudo nixos-generate-config --dir yodaTux +sudo nixos-generate-config --dir yodaTab ``` ## GNOME extensions @@ -106,6 +106,8 @@ sudo nixos-generate-config --dir yodaTux ## General Notes +* There is controversy about flakes, rather use channels (e.g. with niv) + ### Nix Pills * https://nixos.org/guides/nix-pills/pr01 diff --git a/yodaTux/hardware-configuration.nix b/yodaTab/hardware-configuration.nix similarity index 100% rename from yodaTux/hardware-configuration.nix rename to yodaTab/hardware-configuration.nix diff --git a/yodaTux/home-manager.nix b/yodaTab/home-manager.nix similarity index 100% rename from yodaTux/home-manager.nix rename to yodaTab/home-manager.nix diff --git a/yodaTux/nix/sources.json b/yodaTab/nix/sources.json similarity index 100% rename from yodaTux/nix/sources.json rename to yodaTab/nix/sources.json diff --git a/yodaTux/nix/sources.nix b/yodaTab/nix/sources.nix similarity index 100% rename from yodaTux/nix/sources.nix rename to yodaTab/nix/sources.nix