2023-07-02 10:28:50 +00:00
|
|
|
|
|
|
|
{ config, pkgs, inputs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
imports =
|
|
|
|
[
|
2023-07-07 07:22:46 +00:00
|
|
|
../shared/shared-configuration.nix
|
|
|
|
./kernighan-hardware.nix
|
2023-09-27 11:58:32 +00:00
|
|
|
../shared/services/syncthing.nix
|
2023-09-27 14:38:38 +00:00
|
|
|
../shared/services/gitweb.nix
|
2023-09-27 15:38:33 +00:00
|
|
|
../shared/services/miniflux.nix
|
2023-09-27 11:58:32 +00:00
|
|
|
../shared/services/nginx.nix
|
2023-09-27 18:40:04 +00:00
|
|
|
../shared/services/radicale.nix
|
2023-07-02 10:28:50 +00:00
|
|
|
];
|
|
|
|
|
2023-07-06 13:09:04 +00:00
|
|
|
networking = {
|
|
|
|
hostName = "kernighan";
|
2023-07-07 15:42:17 +00:00
|
|
|
firewall = {
|
2023-09-27 08:26:55 +00:00
|
|
|
enable = false;
|
2023-07-07 15:42:17 +00:00
|
|
|
};
|
2023-07-06 13:09:04 +00:00
|
|
|
};
|
2023-07-02 10:28:50 +00:00
|
|
|
|
2023-09-27 08:26:55 +00:00
|
|
|
boot = {
|
|
|
|
loader.systemd-boot.enable = true;
|
|
|
|
loader.efi.canTouchEfiVariables = true;
|
|
|
|
initrd.kernelModules = [ "virtio_gpu" ];
|
|
|
|
kernelParams = [ "console=tty" ];
|
|
|
|
};
|
2023-07-02 10:28:50 +00:00
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
2023-09-27 18:40:04 +00:00
|
|
|
apacheHttpd # Because we need htpasswd for Radicale, annoyingly
|
2023-09-27 10:14:13 +00:00
|
|
|
cifs-utils # To mount Storage Box
|
2023-07-02 10:28:50 +00:00
|
|
|
git
|
2023-09-27 12:30:41 +00:00
|
|
|
git-crypt
|
|
|
|
gnupg
|
2023-07-05 08:23:31 +00:00
|
|
|
vim
|
2023-07-02 10:28:50 +00:00
|
|
|
];
|
2023-09-29 09:38:28 +00:00
|
|
|
|
|
|
|
virtualisation.docker = {
|
|
|
|
enable = true;
|
|
|
|
storageDriver = "btrfs";
|
|
|
|
logDriver = "json-file";
|
|
|
|
};
|
|
|
|
|
|
|
|
users.users.kamal = {
|
|
|
|
isNormalUser = true;
|
|
|
|
extraGroups = [
|
|
|
|
"docker"
|
|
|
|
];
|
|
|
|
openssh.authorizedKeys.keyFiles = [
|
|
|
|
../../users/tsv/authorized_keys
|
|
|
|
];
|
|
|
|
};
|
2023-07-02 10:28:50 +00:00
|
|
|
}
|