aboutsummaryrefslogtreecommitdiff
path: root/modules/core.nix
blob: fd4517bd7595c228edc7db83f7276cc524f02f0d (plain) (blame)
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
{
  config,
  lib,
  pkgs,
  ...
}:
{
  boot = {
    loader = {
      efi.canTouchEfiVariables = true;
      systemd-boot = {
        enable = true;
        editor = false;
        memtest86.enable = true;
      };

      timeout = 1;
    };

    tmp.cleanOnBoot = true;
  };

  documentation.dev.enable = true;
  environment.systemPackages = with pkgs; [
    kakoune
    # useful reference manuals
    man-pages
    man-pages-posix
  ];

  hardware.enableRedistributableFirmware = true;
  nix.settings.experimental-features = [
    "flakes"
    "nix-command"
  ];

  programs = {
    git = {
      enable = true;
      package = pkgs.gitMinimal;
    };

    nano.enable = false;
    zsh = {
      enable = true;
      setOptions = [ "HIST_IGNORE_ALL_DUPS" ];
      shellInit = ''
        PS1="%n@%m %~ %# "
      '';
    };
  };

  users = {
    defaultUserShell = pkgs.zsh;
    users.rosa = {
      enable = lib.mkDefault false;
      description = "Rosa";
      extraGroups = [
        "input"
        "wheel"
      ];
      isNormalUser = true;
      openssh.authorizedKeys.keyFiles = [ ../.ssh/id_rosa.pub ];
    };
  };
}