aboutsummaryrefslogtreecommitdiff
path: root/medkit-configuration.nix
blob: cb287b1d0286341d415a9f2578bd9c42e50b0d79 (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
{ config, lib, pkgs, ... }: {
  boot.loader.grub.enable = false;
  boot.loader.generic-extlinux-compatible.enable = true;
  boot.kernelParams = [
    "earlyprintk" "console=ttyMV0,115200" "earlycon=ar3700_uart,0xd0012000"
    "boot.shell_on_fail"
  ];
  boot.kernelPackages = pkgs.linuxPackages_latest;
  boot.supportedFilesystems = [ "btrfs" "vfat" "ntfs" ];

  zramSwap = {
    enable = true;
    memoryPercent = 100;
  };
  swapDevices = [{
    device = "/dev/mmcblk1p2";
    priority = 0;
  }];

  fileSystems = {
    "/" = {
      device = "/dev/mmcblk1p1";
      fsType = "btrfs";
    };
  };

  networking.hostName = "nixturris";

  i18n.supportedLocales = ["en_US.UTF-8/UTF-8" "cs_CZ.UTF-8/UTF-8"];
  nix = {
    package = pkgs.nixFlakes;
    extraOptions = "experimental-features = nix-command flakes";
  };

  programs.vim.defaultEditor = true;

  #services.sentinel.enable = true;

  services.openssh = {
    enable = true;
    passwordAuthentication = true;
    permitRootLogin = "yes";
  };

  environment.systemPackages =  with pkgs; [
    nixos-option
    htop
  ];

  users = {
    mutableUsers = false;
    users.root.password = "nixturris";
  };

}