2023-06-17 23:46:16 +02:00
|
|
|
{ pkgs, ... }: {
|
|
|
|
|
|
|
|
boot.loader = {
|
|
|
|
grub.enable = false;
|
|
|
|
generic-extlinux-compatible.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
networking = {
|
|
|
|
hostName = "cherry";
|
|
|
|
interfaces.eth0.useDHCP = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
nix = {
|
|
|
|
# TODO: Set up strawberry as a substituter
|
|
|
|
# TODO: Set up nixbuild.net
|
|
|
|
# TODO: Figure out how to make it safe to use other machines as remote
|
|
|
|
# builders.
|
|
|
|
distributedBuilds = false;
|
|
|
|
buildMachines = [];
|
|
|
|
};
|
|
|
|
|
|
|
|
documentation.enable = false;
|
|
|
|
|
|
|
|
fileSystems."/" = {
|
|
|
|
device = "/dev/disk/by-label/NIXOS_SD";
|
|
|
|
fsType = "ext4";
|
|
|
|
};
|
|
|
|
|
2023-06-17 23:52:17 +02:00
|
|
|
system.stateVersion = "21.11";
|
|
|
|
|
2023-06-17 23:46:16 +02:00
|
|
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
|
|
|
|
|
|
|
# User for running the website service
|
|
|
|
users.users."website" = {
|
|
|
|
isSystemUser = true;
|
2023-06-17 23:52:17 +02:00
|
|
|
group = "website";
|
2023-06-17 23:46:16 +02:00
|
|
|
};
|
2023-06-17 23:52:17 +02:00
|
|
|
users.groups."website" = {};
|
2023-06-17 23:46:16 +02:00
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
vim
|
|
|
|
git
|
|
|
|
] ++ (import ../../shared/env.nix pkgs);
|
|
|
|
|
|
|
|
users.users."root" = {
|
|
|
|
# Allow access to this server from all the machines
|
|
|
|
openssh.authorizedKeys.keyFiles = [
|
|
|
|
../dev-lt-63/riley.pub
|
|
|
|
../strawberry/riley.pub
|
|
|
|
../lime/riley.pub
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|