linted
This commit is contained in:
atagen 2025-02-02 16:57:31 +11:00
parent 4e99a0e323
commit 7485de646a
95 changed files with 2743 additions and 2282 deletions

View file

@ -2,15 +2,17 @@
config,
lib,
pkgs,
mainUser,
inputs,
...
}: {
}:
{
imports = [
./configuration.nix
];
services.ollama.enable = true;
services.ollama = {
enable = true;
user = "ollama";
};
system.stateVersion = "22.11"; # Did you read the comment?
@ -24,9 +26,17 @@
];
};
boot.initrd.availableKernelModules = ["xhci_pci" "ahci" "usbcore" "sd_mod"];
boot.initrd.kernelModules = [];
boot.kernelModules = ["kvm-amd" "i2c-dev"];
boot.initrd.availableKernelModules = [
"xhci_pci"
"ahci"
"usbcore"
"sd_mod"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [
"kvm-amd"
"i2c-dev"
];
boot.kernelParams = [
"mitigations=off"
# "acpi_enforce_resources=lax"
@ -38,7 +48,8 @@
"vt.global_cursor_default=0"
];
boot.kernelPackages = pkgs.linuxPackages_xanmod_latest;
boot.kernelPackages = pkgs.linuxPackagesFor pkgs.linuxPackages_cachyos;
# pkgs.linuxPackages_xanmod_latest;
boot.supportedFilesystems = {
ntfs = true;
btrfs = true;
@ -53,7 +64,10 @@
hardware.cpu.amd.updateMicrocode = true;
environment.pathsToLink = ["/share/xdg-desktop-portal" "/share/applications"];
environment.pathsToLink = [
"/share/xdg-desktop-portal"
"/share/applications"
];
environment.sessionVariables = {
NIXOS_OZONE_WL = "1";
# ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE = "fg=5";
@ -66,7 +80,7 @@
EDITOR = "hx";
};
nix.settings.trusted-users = ["bolt"];
nix.settings.trusted-users = [ "bolt" ];
virtualisation.lxc = {
unprivilegedContainers = true;
@ -82,7 +96,7 @@
};
};
services.xserver.videoDrivers = ["nvidia"];
services.xserver.videoDrivers = [ "nvidia" ];
hardware.nvidia = {
package = config.boot.kernelPackages.nvidiaPackages.latest;
modesetting.enable = true;
@ -108,19 +122,15 @@
# motherboard = "amd";
# };
hardware.ckb-next = {
enable = true;
# package = inputs.nixpkgs-stable.legacyPackages.x86_64-linux.ckb-next;
};
hardware.ckb-next.enable = true;
environment.systemPackages = builtins.attrValues {
inherit
(pkgs)
inherit (pkgs)
wl-clipboard
wl-clipboard-x11
xclip
;
};
programs.fuse.userAllowOther = true;
fileSystems = {
"/" = {
@ -136,18 +146,34 @@
"/data" = {
device = "/dev/disk/by-uuid/39D4F78C658E8B56";
fsType = "ntfs";
options = ["rw" "uid=1000" "gid=100"];
options = [
"rw"
"uid=1000"
"gid=100"
];
};
};
swapDevices = [
{device = "/dev/disk/by-uuid/9c006925-e0e9-4165-bc0c-508ae2d1bfce";}
{ device = "/dev/disk/by-uuid/9c006925-e0e9-4165-bc0c-508ae2d1bfce"; }
];
# networking.nftables.enable = true;
networking.firewall = {
# allowedUDPPorts = [1900];
# allowedTCPPorts = [8200 2234];
allowedTCPPorts = [2234];
allowedTCPPorts = [ 2234 ];
};
services.open-webui = {
enable = true;
port = 8088;
environment = {
DO_NOT_TRACK = "True";
SCARF_NO_ANALYTICS = "True";
ANONYMIZED_TELEMETRY = "False";
WEBUI_AUTH = "False";
DATABASE_URL = "sqlite:///${config.services.open-webui.stateDir}/newdb.db";
};
};
}