nix/systems/x86_64-linux/hashirama/default.nix

81 lines
1.8 KiB
Nix
Raw Normal View History

{ modulesPath, pkgs, inputs, ... }: {
imports = [ # Include the results of the hardware scan.
(modulesPath + "/installer/scan/not-detected.nix")
(modulesPath + "/profiles/qemu-guest.nix")
./disko-config.nix
inputs.disko.nixosModules.disko
];
# basic setup
time.timeZone = "Asia/Kolkata";
networking = {
hostName = "hashirama";
firewall = {
enable = true;
allowedTCPPorts = [
80 # paperless
443 # paperless
];
};
};
snowflake = {
locale = "en_US.UTF-8";
extraPackages = [ ];
core = {
openssh.enable = true;
latestKernel = true;
};
hardware = {
isEfi = false;
diskDevice = "/dev/sda";
isInitrdLuksUnlockingEnabled = true;
};
user = {
enable = true;
users = {
cc = {
isNormalUser = true;
shell = pkgs.bash;
description = "Ameya Shenoy";
extraGroups = [
"wheel" # Enable sudo for the user.
"docker"
];
initialHashedPassword =
"$y$j9T$cfmQcJ67WPKPEhsIbH2aC.$m8bDYq5dZrfx8NdU57jKbRc1nFuSB7iKdnAka6/u9R0";
authorizedKeys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKJnFvU6nBXEuZF08zRLFfPpxYjV3o0UayX0zTPbDb7C eden-thinkpad-zephyrus-cell"
];
};
};
};
services = {
tika = { enable = true; };
redis = {
enable = true;
servers = {
saturobi = {
enable = true;
port = 6379;
};
};
};
paperless = {
enable = true;
domain = "paperless.codingcoffee.me";
};
nginx = {
enable = true;
acmeEmail = "letsencrypt@codingcoffee.me";
};
};
};
system.stateVersion = "24.05"; # Did you read the comment?
}