about summary refs log tree commit diff
path: root/nix/hosts/vm/default.nix
blob: a6dff3a9925d74268bef317f7ca4c7112667463d (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
{ pkgs, ... }: {
  imports = [
    ./hardware.nix
  ];

  boot.tmp.cleanOnBoot = true;
  zramSwap.enable = false;

  networking = {
    hostName = "nixos";
    domain = "";
  };

  services.openssh.enable = true;

  users.users.root.openssh.authorizedKeys.keys = [
    ''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINBkozy+X96u5ciX766bJ/AyQ3xm1tXZTIr5+4PVFZFi''
  ];

  system.stateVersion = "23.11";

  environment = {
    systemPackages = with pkgs; [
      git
      jq
      vim
    ];
  };
}