Skip to content

Commit

Permalink
repo: more caveats
Browse files Browse the repository at this point in the history
  • Loading branch information
moni-dz committed Jun 14, 2021
1 parent 54c94f8 commit ef6928f
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 8 deletions.
8 changes: 4 additions & 4 deletions README.org
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

** Installation

Get the latest NixOS 21.05 image [[https://releases.nixos.org/?prefix=nixos/unstable/][here]], do your partitions (root must be mounted at =/mnt=), then run the following commands
Get the latest NixOS 21.11 image [[https://releases.nixos.org/?prefix=nixos/unstable/][here]], do your partitions (root must be mounted at =/mnt=), then run the following commands
#+begin_src sh
# move the output file of this to hosts/superfluous/hardware-configuration.nix
nixos-generate-config
Expand All @@ -25,10 +25,11 @@ Get the latest NixOS 21.05 image [[https://releases.nixos.org/?prefix=nixos/unst

* You probably should replace [[https://github.com/fortuneteller2k/nix-config/blob/master/hosts/superfluous/hardware-configuration.nix][hosts/superfluous/hardware-configuration.nix]] with your own with =nixos-generate-config=.
* You might want to change all instances of my username to yours.
* You might want to disable =agenix=, for my secret cannot be decrypted without my private key. See [[https://github.com/fortuneteller2k/nix-config/blob/master/hosts/superfluous/default.nix][hosts/superfluous/default.nix]] and [[https://github.com/fortuneteller2k/nix-config/blob/master/users/fortuneteller2k/config/zsh/default.nix][users/fortuneteller2k/config/zsh/default.nix]].

** Description

NixOS configuration that I use daily, it contains the system-wide *AND* home configuration, symlinked to =/etc/nixos=.
NixOS configuration that I use daily, it contains the system-wide and home configuration, symlinked to =/etc/nixos=.

See also:
* [[https://github.com/nix-community/home-manager][home-manager]]
Expand All @@ -38,11 +39,10 @@ See also:
Resources and configurations I used to base on:
* [[https://github.com/hlissner/dotfiles][hlissner/dotfiles]]
* [[https://github.com/colemickens/nixos-flake-example][colemickens/nixos-flake-example]]
* [[https://github.com/nrdxp/nixflk][nrdxp/nixflk]]
* [[https://git.sr.ht/~dunklecat/nixos-config/tree/master/flake.nix][dunklecat/nixos-config]]
* [[https://www.youtube.com/watch?v=UeBX7Ide5a0][Nix Flakes talk by Eelco Dolstra on NixCon]]

Why flakes?
*** Why flakes?

[[https://github.com/jonringer][jonringer]] gave a [[https://discourse.nixos.org/t/what-are-nix-flakes-and-why-should-i-care/12910/3][brief explanation]] as to why one might want to use Nix flakes.

Expand Down
7 changes: 4 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
home.url = "github:nix-community/home-manager";
manix.url = "github:mlvzk/manix";
neovim.url = "github:neovim/neovim?dir=contrib";
nur.url = "github:nix-community/NUR";
nur.url = "github:nix-community/NUR/13d1f3087d69e7ea6845dab0af7c77bb3ad3af53";
review.url = "github:Mic92/nixpkgs-review";
rust.url = "github:oxalica/rust-overlay";

Expand Down
1 change: 1 addition & 0 deletions hosts/superfluous/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ nixpkgs.lib.nixosSystem rec {
nixpkgs.nixosModules.notDetected

{
# NOTE: you should either change this or disable it completely by commenting it out
age.secrets.github-token = {
file = ../../secrets/github-token.age;
owner = "fortuneteller2k";
Expand Down
1 change: 1 addition & 0 deletions users/fortuneteller2k/config/zsh/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ with home;

''
compinit -C -d ${dotDir}/zcompdump
# You should comment this out, this is useless without my private key
. /run/secrets/github-token
rm ${homeDirectory}/.xsession-errors ${homeDirectory}/.xsession-errors.old >/dev/null 2>&1
''

0 comments on commit ef6928f

Please sign in to comment.