-
Notifications
You must be signed in to change notification settings - Fork 9
/
lima.nix
43 lines (37 loc) · 998 Bytes
/
lima.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
41
42
43
{ config, modulesPath, pkgs, lib, ... }:
{
imports = [
(modulesPath + "/profiles/qemu-guest.nix")
./lima-init.nix
];
nix.settings.experimental-features = [ "nix-command" "flakes" ];
# ssh
services.openssh.enable = true;
services.openssh.permitRootLogin = "yes";
users.users.root.password = "nixos";
security = {
sudo.wheelNeedsPassword = false;
};
# system mounts
boot.loader.grub = {
device = "nodev";
efiSupport = true;
efiInstallAsRemovable = true;
};
fileSystems."/boot" = {
device = "/dev/vda1"; # /dev/disk/by-label/ESP
fsType = "vfat";
};
fileSystems."/" = {
device = "/dev/disk/by-label/nixos";
autoResize = true;
fsType = "ext4";
options = [ "noatime" "nodiratime" "discard" ];
};
# misc
boot.kernelPackages = pkgs.linuxPackages_latest;
# pkgs
environment.systemPackages = with pkgs; [
vim
];
}