mirror of
https://github.com/traxys/Nixfiles.git
synced 2026-03-21 03:36:08 +01:00
78 lines
1.8 KiB
Nix
78 lines
1.8 KiB
Nix
{
|
||
boot.initrd = {
|
||
enable = true;
|
||
availableKernelModules = ["amdgpu" "r8169"];
|
||
|
||
# secrets = {
|
||
# "/etc/secrets/initrd/keyfile" = "/etc/secrets/initrd/keyfile";
|
||
# };
|
||
# kernelParams = [ "iomem=relaxed" ];
|
||
network.ssh = {
|
||
enable = true;
|
||
port = 8022;
|
||
};
|
||
};
|
||
boot.loader = {
|
||
efi.canTouchEfiVariables = true;
|
||
systemd-boot.enable = true;
|
||
};
|
||
|
||
boot.kernelParams = [
|
||
"video=HDMI-A-1:1920x1080@75"
|
||
"video=DP-2:1920x1080@75"
|
||
];
|
||
|
||
networking = {
|
||
hostName = "ZeNixComputa";
|
||
interfaces = {
|
||
enp4s0 = {
|
||
useDHCP = true;
|
||
wakeOnLan.enable = true;
|
||
};
|
||
};
|
||
firewall.allowedTCPPorts = [8080 8085 5201];
|
||
};
|
||
|
||
time.timeZone = "Europe/Paris";
|
||
|
||
users.users = {
|
||
traxys.uid = 1000;
|
||
guest = {
|
||
isNormalUser = true;
|
||
home = "/home/guest";
|
||
};
|
||
};
|
||
|
||
hardware.ckb-next.enable = true;
|
||
|
||
services.postgresql = {
|
||
enable = true;
|
||
ensureUsers = [
|
||
{
|
||
name = "traxys";
|
||
ensurePermissions = {
|
||
"DATABASE \"list\"" = "ALL PRIVILEGES";
|
||
"DATABASE \"regalade\"" = "ALL PRIVILEGES";
|
||
};
|
||
}
|
||
];
|
||
ensureDatabases = ["list" "regalade"];
|
||
};
|
||
|
||
hardware.cpu.amd.updateMicrocode = true;
|
||
|
||
nix.extraOptions = ''
|
||
keep-outputs = true
|
||
keep-derivations = true
|
||
'';
|
||
|
||
boot.binfmt.emulatedSystems = ["aarch64-linux"];
|
||
|
||
# This value determines the NixOS release from which the default
|
||
# settings for stateful data, like file locations and database versions
|
||
# on your system were taken. It‘s perfectly fine and recommended to leave
|
||
# this value at the release version of the first install of this system.
|
||
# Before changing this value read the documentation for this option
|
||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
||
system.stateVersion = "22.05"; # Did you read the comment?
|
||
}
|