nix/systems/x86_64-linux/hashirama/default.nix
Ameya Shenoy 4998e822a7 feat: init
Signed-off-by: Ameya Shenoy <shenoy.ameya@gmail.com>
2024-11-11 01:48:40 +05:30

80 lines
1.8 KiB
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{ 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?
}