Skip to content

Commit 79977b0

Browse files
committed
nixos: Declare dotfile bankruptcy
2 parents ad28da4 + 841eec3 commit 79977b0

205 files changed

Lines changed: 1612 additions & 9695 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.envrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

.gitignore

Lines changed: 0 additions & 16 deletions
This file was deleted.

.gitmodules

Lines changed: 0 additions & 21 deletions
This file was deleted.

.nixon.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Nixon commands
2+
3+
## `nixos-rebuild-target`
4+
5+
```plain
6+
build
7+
test
8+
switch
9+
```
10+
11+
## `nixos-configurations`
12+
13+
```bash
14+
nix flake show --json | jq -r '.nixosConfigurations | keys[]'
15+
```
16+
17+
## `nixos-rebuild ${nixos-rebuild-target} ${nixos-configurations}`
18+
19+
```bash
20+
sudo nixos-rebuild ${nixos_rebuild_target} --flake .#${nixos_configurations}
21+
```
22+
23+
## `nixos-list-generations`
24+
25+
```bash
26+
sudo nix-env --list-generations --profile /nix/var/nix/profiles/system
27+
```
28+

Makefile

Lines changed: 0 additions & 31 deletions
This file was deleted.

README.md

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# NixOS Configuration
2+
3+
## Installation
4+
5+
Ensure the machine is running and has a `root` password.
6+
7+
### Copy installation files to host
8+
9+
``` bash
10+
$ ./bootstrap/copy.sh
11+
```
12+
13+
### Start NixOS installation
14+
15+
On console:
16+
17+
``` bash
18+
$ sudo NIX_INSTALL_NAME=<machine> ./bootstrap/intall.sh
19+
```
20+
21+
Remotely:
22+
23+
``` bash
24+
$ ./bootstrap/ssh.sh sudo NIX_INSTALL_NAME=<machine> ./nixos/bootstrap/install.sh
25+
```
26+
27+
### Post-install
28+
29+
Installing `emacs` dependencies:
30+
31+
``` bash
32+
$ ~/.emacs.d/bin/doom sync
33+
```
34+
35+
After launching `emacs`, install `all-the-icons`:
36+
37+
``` emacs-lisp
38+
(all-the-icons-install-fonts t)
39+
```
40+
41+
## Updating
42+
43+
``` bash
44+
$ sudo nixos-rebuild <switch|test|build> --flake .
45+
```
46+
47+
## Non-NixOS Linux / Windows Subsystem for Linux (WSL)
48+
49+
### Install
50+
51+
``` bash
52+
$ ./bootstrap/build-home.sh <machine>
53+
$ ./result/activate
54+
```
55+
56+
### Update
57+
58+
Either use the ~build-home.sh~ script above or the following once ~home-manager~
59+
is installed:
60+
61+
``` bash
62+
$ home-manager <build|switch> --flake .#<machine>
63+
```
64+

README.org

Lines changed: 0 additions & 116 deletions
This file was deleted.

ack/.ackrc

Lines changed: 0 additions & 7 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)