mirror of
https://gitlab.com/ahoneybun/nix-configs.git
synced 2025-05-12 11:14:02 -06:00
merge branch 'main' of gitlab.com:ahoneybun/nix-configs
This commit is contained in:
commit
f6bc61441f
2 changed files with 43 additions and 2 deletions
8
homelab/kavita/default.nix
Normal file
8
homelab/kavita/default.nix
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
{ config, pkgs, lib, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
services.kavita = {
|
||||||
|
enable = true;
|
||||||
|
# tokenKeyFile = "/home/aaronh/TokenKey"; # Update depending on the setup
|
||||||
|
};
|
||||||
|
}
|
|
@ -7,11 +7,34 @@
|
||||||
#./home-assistant.nix
|
#./home-assistant.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader = {
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
systemd-boot.enable = true;
|
||||||
|
efi.canTouchEfiVariables = true;
|
||||||
|
};
|
||||||
|
|
||||||
boot.kernelParams = [ "console=tty0" ];
|
boot.kernelParams = [ "console=tty0" ];
|
||||||
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
|
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
|
||||||
|
|
||||||
|
# You can find the swraid ARRAY information with this command
|
||||||
|
# sudo mdadm --detail --scan >> mdadm.conf
|
||||||
|
# Now just copy that information into the line
|
||||||
|
|
||||||
|
# The MAILADDR is to fix a warning for swraid
|
||||||
|
|
||||||
|
boot.swraid = {
|
||||||
|
enable = true;
|
||||||
|
mdadmConf = ''
|
||||||
|
ARRAY /dev/md/edi:DATA metadata=1.2 UUID=f0384881:84c12f70:3dcad802:653ccc30
|
||||||
|
MAILADDR root
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems = {
|
||||||
|
"/home/aaronh/DATA" = {
|
||||||
|
device = "/dev/md127";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
nix.settings.extra-platforms = [ "aarch64-linux" ];
|
nix.settings.extra-platforms = [ "aarch64-linux" ];
|
||||||
nix.buildMachines = [{
|
nix.buildMachines = [{
|
||||||
hostName = "localhost";
|
hostName = "localhost";
|
||||||
|
@ -21,6 +44,15 @@
|
||||||
maxJobs = 8;
|
maxJobs = 8;
|
||||||
}];
|
}];
|
||||||
|
|
||||||
|
# Define user accounts
|
||||||
|
users.users.aaronh = {
|
||||||
|
description = "Aaron Honeycutt";
|
||||||
|
home = "/home/aaronh";
|
||||||
|
extraGroups = [ "wheel" "networkmanager" "adm"];
|
||||||
|
isNormalUser = true;
|
||||||
|
hashedPassword = "$6$aAcbLtqiqzySifls$jdKMOQjoWITHD/dWNNZVUH/qNc6aoJ7v4zYofi0U7IJSVTbmOfChS3mzaJbp57AodjdPNKPrnrip8Nlh2Qanx.";
|
||||||
|
};
|
||||||
|
|
||||||
networking.hostName = "EDI";
|
networking.hostName = "EDI";
|
||||||
networking.firewall = {
|
networking.firewall = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -32,6 +64,7 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
# Enable the OpenSSH daemon.
|
# Enable the OpenSSH daemon.
|
||||||
|
services.openssh.enable = true;
|
||||||
services.openssh.settings = {
|
services.openssh.settings = {
|
||||||
PermitRootLogin = "no";
|
PermitRootLogin = "no";
|
||||||
};
|
};
|
Loading…
Add table
Add a link
Reference in a new issue