aboutsummaryrefslogtreecommitdiff
path: root/macos.local/.flake/system/core.nix.org
blob: 355a7e29259f72f98431bfd834b8ed40c632b05c (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
#+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
    inherit (pkgs) aspellWithDicts;

    myaspell = aspellWithDicts (d: [d.en d.en-computers d.en-science]);
  in {
   nixpkgs.config.allowUnfree = true;

    imports = [
      ./homebrew.nix
      ./skhd.nix
      ./yabai.nix
    ];

    environment.systemPackages = with pkgs; [
      gnupg
      myaspell
      neovim
      skhd
    ];

    environment.variables.EDITOR = "nvim";

    programs.gnupg.agent.enable = true;

    services.nix-daemon.enable = true;
    nix.package = pkgs.nix;

    nix.settings.experimental-features = "nix-command flakes";

    programs.zsh.enable = true;

    system.stateVersion = 5;

    nixpkgs.hostPlatform = "aarch64-darwin";

    users.users.jjanzen = {
      name = "jjanzen";
      home = "/Users/jjanzen";
    };
  }
#+end_src