summaryrefslogtreecommitdiffstats
path: root/configuration.nix
blob: 7424c2eca697f6f8111b8e35d2fa81a0ef70ac81 (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
inputs:

{ config, pkgs, modulesPath, lib, ... }:

let
  optionalImport = path:
    lib.optional (builtins.pathExists path) path;
in
{
  imports = [
    (import ./common/default.nix inputs)
  ];

  environment.systemPackages = with pkgs; [
    dnsutils
    dogdns
    elinks
    fd
    file
    gnupg
    hddtemp
    jq
    lm_sensors
    lsof
    ncdu
    nethogs
    nix-prefetch-scripts
    unstable.alejandra
    progress
    psmisc
    ripgrep
    shellcheck
    shfmt
    smartmontools
    tmux
    tree
    vim
    wget
    wipe
  ];

  users.extraUsers.minijackson = {
    isNormalUser = true;
    extraGroups = [ "users" "wheel" ];
    openssh.authorizedKeys.keys = [ "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCmyjB5yuU8GK3ZVFznELVEwXN7zzjQJcPYZ89YCGTANjPHpHxZv5R9/kgjTtIKrqqHdTvfr8V8sao9Nr7PhtcV9UywrFn+kplyGf9WDl2oDF9eZprX3beR9zwDj/YIcFRx3wXk4JK/ioZJjcVZ3+xWPixiFplvHIyMsTjKfgRplntHpvoyLM8vURjLOCdPr6SRPReVXuSR2DRlVO7q7y+4FwA1FKAndg9YACoM1g2bEJ6eGyCPp2kFde+GvMv1y6FlBS1OFddGmBpUJzJ4mQ4ebqDVFsKQMx1xCkiz0l7tfVpXqXToHF+baTESEKbC4654PunD99BC0J4otHKrerdmX0HdTgHKtAnslSwRD5NZVAojk/CR3DiSQYFSO9OhFVjHNQsc1zpoKPtJYMe1ax3pcvc+XLCrKLUdHH8x9rVGefZXwIyLrrGrB7fVlyIyX7j04dNALQZiuFOKCInaYypVLHLy0k+buhQlVqKCS6N1xP5O6JiWUKXFYYyoRmSoX9+bfPiwsMrPL+rYXkee0K67BI1NiFAYPmdFFM0jtdFaYuvgEAWw7b9WyWyO/JAdHRwtlqfAqraPBrb4sldvQfLBm8RdORBYMaVbg4EUKMOJjIeAAK+7xWPtg2XeJNnsje/IsWaVXIBx2IAC50uAnIZ/ksw5lyAZP+HyGIHhCAQChQ== minijackson@riseup.net" ];
  };

  system.autoUpgrade = {
    enable = true;
    flake = "/etc/nixos/";
    flags = [
      "--update-input"
      "nixpkgs"
      "--update-input"
      "nixpkgs-unstable"
      "--update-input"
      "nixos-config-reborn"
      "--update-input"
      "nixos-config-reborn-secrets"
      "--update-input"
      "nixos-hardware"
      "--commit-lock-file"
    ];
  };
}