nixos-config/README.org
2023-05-06 07:16:35 -05:00

38 lines
1.4 KiB
Org Mode

#+title: NixOS Config
#+author: librephoenix
[[https://gitlab.com/librephoenix/nixos-config][Main Repo Link (GitLab)]]
[[https://github.com/librephoenix/nixos-config-mirror][Mirror Repo Link (GitHub)]]
* What is this repository?
While I still run =Arch btw=, I've been experimenting with NixOS and quite like it! My configuration is not ready for daily use yet, but I'm learning inside a VM. This repository is where I'm working on my NixOS dotfiles, and once ready, I will daily drive =Nix btw= instead.
* Notes for Myself
To get this running on a NixOS system, I will start by cloning the repo:
#+BEGIN_SRC sh :noeval
git clone https://gitlab.com/librephoenix/nixos-config.git /path/to/my/config/folder
#+END_SRC
To get the hardware configuration, I can other copy from =/etc/nixos/hardware-configuration.nix= or run:
#+BEGIN_SRC sh :noeval
sudo nixos-generate-config --dir /dotfiles/path/system
#+END_SRC
Then, I can switch into the system configuration by running:
#+BEGIN_SRC sh :noeval
sudo nixos-rebuild switch -I nixos-config=nixos-config=/dotfiles/path/system/configuration.nix
#+END_SRC
Home manager can be installed with:
#+BEGIN_SRC sh :noeval
nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager
nix-channel --update
nix-shell '<home-manager>' -A install
#+END_SRC
Then, my home-manager configuration can be installed with:
#+BEGIN_SRC sh :noeval
home-manager switch -f /dotfiles/path/user/home.nix
#+END_SRC