From 9bae8a2ca10471809ad50a58c2eb543ce6291d0d Mon Sep 17 00:00:00 2001 From: neverness Date: Sun, 22 Dec 2024 11:31:49 +0900 Subject: [PATCH] update --- README.md | 37 ++++++++++++++++++++++++++++++++++++- libx/builder.nix | 6 ++++-- 2 files changed, 40 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 8940425..1ec2fb0 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,42 @@ Below you can see my additional repositories:
Software -| Name | Desciption | +### GUIDE FOR CREATE OWN MACHINE & HOME + +1. Create directory with your _hostName_ in _flakeDir_ + +- _flakeDir_ is flake root (example: **/persist/flake/** ) + +2. Create _default.nix_ in ~/_flakeDir_/_hostName_/ (example: ~/_flakeDir_/_hostName_/_default.nix_ ) + +- Fill it with: + ```nix + { inputs, lib, ... }: + { + flake = import ../libx/builder.nix { # default values watch in ~/flakeDir/libx/builder.nix + inherit inputs lib; + disk = "..."; # your disk in /dev/disk/by-uuid/* + # VARIABLES + hostName = "pantheon"; # hostName is ~/flakeDir/hostName + userName = "arthemida"; # userName + flakeDir = "/persist/flake"; # flakeDir + # CUSTOMIZE + theme = "chanivibes"; # from inputs.design.base16 + is = "desktop"; # for laptop | desktop | server + # SYS INFA + plfrm = "x86_64-linux"; # your architecture + ver = "24.05"; # stateVersion in below /etc/nixos/configuration.nix + # DEVICES + dev = { # other mountable disks + SSD1 = "/mnt/games"; + HDD1 = "/mnt/prono_idk"; + SSD2 = "/mnt/howii"; + }; + }; + } + ``` + +| Name with url | Desciption | | -------------------------------------------------------------------------------------------- | ------------------------------------------------ | | Desktop utilites | | | [hyprland](https://github.com/hyprwm/hyprland) | Best window manager | diff --git a/libx/builder.nix b/libx/builder.nix index 11ed4ce..ffb4b92 100644 --- a/libx/builder.nix +++ b/libx/builder.nix @@ -24,7 +24,6 @@ let x = import ./options.nix { inherit - theme inputs pkgs lib @@ -32,15 +31,18 @@ let } // { inherit + # VARIABLES disk hostName userName flakeDir + theme is + # SYSINFA plfrm ver dev - sec + sec # SECRETS ; }; # ARGS