notes/os/linux/nixos/inst/ih/my-nixos.txt
Ihar Hancharenka 5dff80e88e first
2023-03-27 16:52:17 +03:00

42 строки
1.0 KiB
Plaintext

https://computingforgeeks.com/virsh-commands-cheatsheet/
vim /mnt/etc/nixos/configuration.nix
# boot.loader.grub.device = "/dev/sda";
# at hardware-configuration.nix
swapDevices = [ device = "/.swapfile"; ]
nixos-install
reboot
sudo poweroff
shutdown -h now
packages
nix-env -q --installed
nix-env -qaP \*
nix-env -iA nixos.gitMinimal nixos.gh
nix-env -iA nixos.git nixos.gh
nix-env -iA nixos.gitMinimal
nix-env -iA nixos.pkgs.gitAndTools.gitFull
nix-env -iA nixos.gitAndTools.gh
gh
https://cli.github.com/manual/gh_auth_login
https://cli.github.com/manual/gh_repo_clone
export GH_TOKEN=...
gh auth login
gh repo clone iharh/nixcfg
cache
https://nixos.wiki/wiki/Maintainers:Fastly
https://www.channable.com/tech/setting-up-a-private-nix-cache-for-fun-and-profit
https://mcwhirter.com.au/craige/blog/2019/NixOS%5FAppears%5Fto%5Fbe%5FAlways%5FBuilding%5FFrom%5FSource/
users.user.iharh = {
initialPassword = "pwd";
isNormalUser = true;
extraGroups = [ "wheel" ];
};