mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-01-06 15:36:33 +01:00
86 lines
2 KiB
Nix
86 lines
2 KiB
Nix
{ config, pkgs, lib, ... }:
|
|
|
|
{
|
|
jopejoe1 = {
|
|
local.enable = true;
|
|
nix.enable = true;
|
|
user = {
|
|
jopejoe1.enable = true;
|
|
root.enable = true;
|
|
};
|
|
ssh.enable = true;
|
|
};
|
|
|
|
boot.initrd.availableKernelModules = [ "ahci" "nvme" ];
|
|
boot.initrd.kernelModules = [ ];
|
|
boot.kernelModules = [ "kvm-amd" ];
|
|
boot.extraModulePackages = [ ];
|
|
boot.loader = {
|
|
efi = {
|
|
canTouchEfiVariables = true;
|
|
efiSysMountPoint = "/boot";
|
|
};
|
|
grub = {
|
|
enable = true;
|
|
efiSupport = true;
|
|
device = "nodev";
|
|
};
|
|
};
|
|
|
|
networking = {
|
|
useDHCP = false;
|
|
interfaces."enp41s0" = {
|
|
ipv4.addresses = [{ address = "85.10.200.204 "; prefixLength = 26; }];
|
|
ipv6.addresses = [{ address = "2a01:4f8:a0:31e5::"; prefixLength = 64; }];
|
|
};
|
|
defaultGateway = "85.10.200.193";
|
|
defaultGateway6 = { address = "fe80::1"; interface = "enp41s0"; };
|
|
};
|
|
|
|
time.timeZone = "Europe/Berlin";
|
|
|
|
services.openssh.settings.PermitRootLogin = lib.mkForce "yes";
|
|
|
|
services.openssh.ports = [ 2222 ];
|
|
|
|
console = {
|
|
enable = true;
|
|
};
|
|
disko.devices = {
|
|
disk = {
|
|
vdb = {
|
|
device = "/dev/disk/by-id/nvme-SAMSUNG_MZVL2512HCJQ-00B00_S675NX0RA55622";
|
|
type = "disk";
|
|
content = {
|
|
type = "table";
|
|
format = "gpt";
|
|
partitions = [
|
|
{
|
|
name = "ESP";
|
|
start = "1M";
|
|
end = "500M";
|
|
bootable = true;
|
|
content = {
|
|
type = "filesystem";
|
|
format = "vfat";
|
|
mountpoint = "/boot";
|
|
};
|
|
}
|
|
{
|
|
name = "root";
|
|
start = "500M";
|
|
end = "100%";
|
|
part-type = "primary";
|
|
bootable = true;
|
|
content = {
|
|
type = "filesystem";
|
|
format = "ext4";
|
|
mountpoint = "/";
|
|
};
|
|
}
|
|
];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|