-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
205 changed files
with
1,612 additions
and
9,695 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Nixon commands | ||
|
||
## `nixos-rebuild-target` | ||
|
||
```plain | ||
build | ||
test | ||
switch | ||
``` | ||
|
||
## `nixos-configurations` | ||
|
||
```bash | ||
nix flake show --json | jq -r '.nixosConfigurations | keys[]' | ||
``` | ||
|
||
## `nixos-rebuild ${nixos-rebuild-target} ${nixos-configurations}` | ||
|
||
```bash | ||
sudo nixos-rebuild ${nixos_rebuild_target} --flake .#${nixos_configurations} | ||
``` | ||
|
||
## `nixos-list-generations` | ||
|
||
```bash | ||
sudo nix-env --list-generations --profile /nix/var/nix/profiles/system | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# NixOS Configuration | ||
|
||
## Installation | ||
|
||
Ensure the machine is running and has a `root` password. | ||
|
||
### Copy installation files to host | ||
|
||
``` bash | ||
$ ./bootstrap/copy.sh | ||
``` | ||
|
||
### Start NixOS installation | ||
|
||
On console: | ||
|
||
``` bash | ||
$ sudo NIX_INSTALL_NAME=<machine> ./bootstrap/intall.sh | ||
``` | ||
|
||
Remotely: | ||
|
||
``` bash | ||
$ ./bootstrap/ssh.sh sudo NIX_INSTALL_NAME=<machine> ./nixos/bootstrap/install.sh | ||
``` | ||
|
||
### Post-install | ||
|
||
Installing `emacs` dependencies: | ||
|
||
``` bash | ||
$ ~/.emacs.d/bin/doom sync | ||
``` | ||
|
||
After launching `emacs`, install `all-the-icons`: | ||
|
||
``` emacs-lisp | ||
(all-the-icons-install-fonts t) | ||
``` | ||
|
||
## Updating | ||
|
||
``` bash | ||
$ sudo nixos-rebuild <switch|test|build> --flake . | ||
``` | ||
|
||
## Non-NixOS Linux / Windows Subsystem for Linux (WSL) | ||
|
||
### Install | ||
|
||
``` bash | ||
$ ./bootstrap/build-home.sh <machine> | ||
$ ./result/activate | ||
``` | ||
|
||
### Update | ||
|
||
Either use the ~build-home.sh~ script above or the following once ~home-manager~ | ||
is installed: | ||
|
||
``` bash | ||
$ home-manager <build|switch> --flake .#<machine> | ||
``` | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Submodule bash-git-prompt
deleted from
21063b
Oops, something went wrong.