Nix-Config/system/kernighan/kernighan.nix

55 lines
1.1 KiB
Nix
Raw Normal View History

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
../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
../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";
firewall = {
2023-09-27 08:26:55 +00:00
enable = false;
};
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
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
}