Skip to content

Commit

Permalink
nixos: Declare dotfile bankruptcy
Browse files Browse the repository at this point in the history
  • Loading branch information
myme committed Feb 1, 2022
2 parents ad28da4 + 841eec3 commit 79977b0
Show file tree
Hide file tree
Showing 205 changed files with 1,612 additions and 9,695 deletions.
1 change: 0 additions & 1 deletion .envrc

This file was deleted.

16 changes: 0 additions & 16 deletions .gitignore

This file was deleted.

21 changes: 0 additions & 21 deletions .gitmodules

This file was deleted.

28 changes: 28 additions & 0 deletions .nixon.md
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
```

31 changes: 0 additions & 31 deletions Makefile

This file was deleted.

64 changes: 64 additions & 0 deletions README.md
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>
```

116 changes: 0 additions & 116 deletions README.org

This file was deleted.

7 changes: 0 additions & 7 deletions ack/.ackrc

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion bash/.bash/bash-git-prompt
Submodule bash-git-prompt deleted from 21063b
Loading

0 comments on commit 79977b0

Please sign in to comment.