blob: 13e3d974ba2a5f034cf1c1cff163f939255ea9ec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
|
#+title: System Core
This file imports various system configuration components in addition to enabling flakes and defining the system version.
#+begin_src nix
{ config, pkgs, ... }:
let
#+end_src
Add =aspell= dictionaries.
#+begin_src nix
inherit (pkgs) aspellWithDicts;
myaspell = aspellWithDicts (d: [d.en d.en-computers d.en-science]);
#+end_src
Import submodules.
#+begin_src nix
in {
imports = [
./homebrew.nix
./skhd.nix
./yabai.nix
];
#+end_src
Allow unfree packages.
#+begin_src nix
nixpkgs.config.allowUnfree = true;
#+end_src
Install system packages.
#+begin_src nix
environment.systemPackages = with pkgs; [
gnupg
myaspell
neovim
skhd
];
#+end_src
Use Touch ID for =sudo= authentication.
#+begin_src nix
security.pam.enableSudoTouchIdAuth = true;
#+end_src
Use Neovim as my default editor.
#+begin_src nix
environment.variables.EDITOR = "nvim";
#+end_src
Enable GPG agent.
#+begin_src nix
programs.gnupg.agent.enable = true;
#+end_src
Enable =nix= daemon.
#+begin_src nix
services.nix-daemon.enable = true;
nix.package = pkgs.nix;
#+end_src
Enable flakes.
#+begin_src nix
nix.settings.experimental-features = "nix-command flakes";
#+end_src
Use =zsh= as my shell.
#+begin_src nix
programs.zsh.enable = true;
#+end_src
Necessary boilerplate.
#+begin_src nix
system.stateVersion = 5;
#+end_src
Use ARM packages for Darwin.
#+begin_src nix
nixpkgs.hostPlatform = "aarch64-darwin";
#+end_src
Define my users.
#+begin_src nix
users.users.jjanzen = {
name = "jjanzen";
home = "/Users/jjanzen";
};
}
#+end_src
|