forked from pinpox/nixos-images
-
Notifications
You must be signed in to change notification settings - Fork 0
/
machine-config.nix
40 lines (34 loc) · 930 Bytes
/
machine-config.nix
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
{ pkgs, lib, ... }:
with lib; {
imports = [ <nixpkgs/nixos/modules/profiles/qemu-guest.nix> ];
config = {
fileSystems."/" = {
device = "/dev/disk/by-label/nixos";
fsType = "ext4";
autoResize = true;
};
boot.growPartition = true;
boot.kernelParams = [ "console=ttyS0" ];
boot.loader.grub.device = "/dev/vda";
boot.loader.timeout = 0;
programs.ssh.startAgent = false;
services.openssh = {
enable = true;
passwordAuthentication = false;
startWhenNeeded = true;
challengeResponseAuthentication = false;
};
users = {
users.root = {
password = "root"; # Change me!
openssh.authorizedKeys.keyFiles =
[ (builtins.fetchurl { url = "https://github.com/pinpox.keys"; }) ];
};
};
i18n.defaultLocale = "en_US.UTF-8";
console = {
font = "Lat2-Terminus16";
keyMap = "colemak";
};
};
}