2022-09-24 22:47:50 +03:00
|
|
|
{ config, lib, pkgs, aspect, inputs, hosts, ... }:
|
2022-02-05 21:42:36 +02:00
|
|
|
|
2022-12-08 17:38:52 +02:00
|
|
|
let
|
|
|
|
inherit (inputs.self.packages.${pkgs.system}) bcachefs-tools linux-bcachefs;
|
|
|
|
in
|
2022-02-05 21:42:36 +02:00
|
|
|
{
|
|
|
|
|
|
|
|
imports = [
|
|
|
|
./hardware-configuration.nix
|
|
|
|
./extras/cachix-upload-daemon.nix
|
2022-09-24 22:47:50 +03:00
|
|
|
./extras/custom-kernel.nix
|
2022-02-05 21:42:36 +02:00
|
|
|
./extras/ddcci-backlight.nix
|
|
|
|
./extras/fbi-downloader.nix
|
2023-03-03 01:24:34 +02:00
|
|
|
./extras/invokeai.nix
|
2022-10-22 03:36:48 +03:00
|
|
|
./extras/ipfs-cluster.nix
|
2023-02-11 03:13:07 +02:00
|
|
|
./extras/nvidia-ml.nix
|
2022-02-05 21:42:36 +02:00
|
|
|
(import ../../users "desktop").users.max
|
|
|
|
inputs.agenix.nixosModules.age
|
|
|
|
]
|
|
|
|
++ ( with inputs.nixos-hardware.nixosModules; [
|
|
|
|
common-cpu-amd
|
|
|
|
])
|
|
|
|
++ aspect.sets.desktop
|
|
|
|
++ (with aspect.modules; [
|
|
|
|
persistence
|
|
|
|
nix-builder
|
|
|
|
games
|
|
|
|
lidarr
|
|
|
|
prowlarr
|
|
|
|
]);
|
|
|
|
|
|
|
|
boot.loader.systemd-boot.enable = true;
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
|
2022-12-08 17:38:52 +02:00
|
|
|
boot.kernelPackages = lib.mkForce (pkgs.linuxPackagesFor (linux-bcachefs.override {
|
2022-09-24 22:47:50 +03:00
|
|
|
ignoreConfigErrors = true;
|
|
|
|
}));
|
|
|
|
|
2022-12-08 17:38:52 +02:00
|
|
|
nixpkgs.overlays = lib.singleton (_: _: {
|
|
|
|
inherit bcachefs-tools;
|
|
|
|
});
|
|
|
|
|
2022-02-05 21:42:36 +02:00
|
|
|
networking.hostName = "TITAN";
|
|
|
|
|
|
|
|
time.timeZone = "Europe/Vienna";
|
|
|
|
|
|
|
|
i18n.defaultLocale = "en_US.UTF-8";
|
|
|
|
console = {
|
|
|
|
font = "";
|
|
|
|
keyMap = "de";
|
|
|
|
};
|
|
|
|
|
|
|
|
services.xserver.layout = "de";
|
|
|
|
|
|
|
|
services.xserver.libinput.enable = true;
|
|
|
|
|
|
|
|
services.openssh.enable = true;
|
|
|
|
|
2022-08-28 02:54:55 +03:00
|
|
|
system.stateVersion = "22.05";
|
2022-02-05 21:42:36 +02:00
|
|
|
|
|
|
|
services.fstrim.enable = true;
|
|
|
|
|
|
|
|
users.mutableUsers = false;
|
|
|
|
|
|
|
|
virtualisation.podman.enable = true;
|
2022-06-01 21:01:41 +03:00
|
|
|
|
|
|
|
services.xserver.displayManager.gdm.autoSuspend = false;
|
2022-06-15 00:50:44 +03:00
|
|
|
|
|
|
|
boot.supportedFilesystems = [ "bcachefs" ];
|
2022-08-28 17:58:07 +03:00
|
|
|
|
2023-05-01 19:29:17 +03:00
|
|
|
boot.tmp = {
|
|
|
|
useTmpfs = true;
|
|
|
|
tmpfsSize = "75%";
|
|
|
|
};
|
2022-10-08 13:16:37 +03:00
|
|
|
|
|
|
|
networking.nat = {
|
|
|
|
enable = true;
|
|
|
|
externalInterface = "enp24s0";
|
|
|
|
internalIPs = [
|
|
|
|
"10.100.3.0/24"
|
|
|
|
];
|
|
|
|
};
|
2022-02-05 21:42:36 +02:00
|
|
|
}
|
|
|
|
|