Merge remote-tracking branch 'origin/main' into separate-big-files
This commit is contained in:
@ -18,15 +18,24 @@
|
||||
...
|
||||
}: {
|
||||
#Assign Swap to the PC
|
||||
#swapDevices = [{
|
||||
# device = "/swapfile";
|
||||
# size = 16 * 1024; # 16GB
|
||||
#}];
|
||||
swapDevices = [
|
||||
{
|
||||
device = "/swapfile";
|
||||
size = 34 * 1024; # 34GB
|
||||
#randomEncryption.enable = true; #Doesnt work with hybernation
|
||||
}
|
||||
];
|
||||
nix = {
|
||||
settings.nix-path = config.nix.nixPath;
|
||||
nixPath = ["nixpkgs=${inputs.nixpkgs}"];
|
||||
};
|
||||
|
||||
imports = [
|
||||
inputs.nix-index-database.nixosModules.nix-index
|
||||
inputs.home-manager.nixosModules.home-manager
|
||||
inputs.grub2-themes.nixosModules.default
|
||||
inputs.nix-flatpak.nixosModules.nix-flatpak
|
||||
inputs.aagl.nixosModules.default
|
||||
./hardware-configuration.nix
|
||||
|
||||
./firefox
|
||||
@ -38,8 +47,10 @@
|
||||
|
||||
# Bootloader.
|
||||
boot = {
|
||||
kernelPackages = pkgs.linuxPackages_latest;
|
||||
kernelParams = ["quiet" "splash"];
|
||||
initrd = {
|
||||
systemd.enable = true; #For swap to automatically work
|
||||
verbose = false;
|
||||
kernelModules = ["amdgpu"];
|
||||
};
|
||||
@ -124,22 +135,6 @@
|
||||
|
||||
# List services that you want to enable:
|
||||
services = {
|
||||
ollama = {
|
||||
enable = false;
|
||||
# Optional: load models on startup
|
||||
#loadModels = [ ... ];
|
||||
};
|
||||
|
||||
open-webui = {
|
||||
enable = true;
|
||||
package = pkgs.open-webui;
|
||||
#environment = {
|
||||
# DATA_DIR = "/var/lib/open-webui"; # System-wide writable dir
|
||||
# OLLAMA_API_BASE_URL = "http://127.0.0.1:11434";
|
||||
#};
|
||||
#openFirewall = true;
|
||||
};
|
||||
|
||||
fprintd.enable = true;
|
||||
fprintd.tod.enable = true;
|
||||
fprintd.tod.driver = pkgs.libfprint-2-tod1-goodix;
|
||||
@ -198,6 +193,8 @@
|
||||
};
|
||||
|
||||
fonts = {
|
||||
fontDir.enable = true;
|
||||
|
||||
packages = with pkgs; [
|
||||
font-awesome
|
||||
nerd-fonts.jetbrains-mono
|
||||
@ -222,10 +219,42 @@
|
||||
programs = {
|
||||
steam.enable = true;
|
||||
|
||||
gamemode.enable = true;
|
||||
|
||||
gamescope.enable = true;
|
||||
|
||||
nix-index-database.comma.enable = true;
|
||||
|
||||
direnv = {
|
||||
enable = true;
|
||||
silent = true; # Suppresses direnv's output in the terminal
|
||||
nix-direnv.enable = true;
|
||||
};
|
||||
|
||||
ssh.askPassword = lib.mkForce "${pkgs.kdePackages.ksshaskpass}/bin/ksshaskpass";
|
||||
|
||||
sleepy-launcher.enable = true; #Zenless zone zero launcher
|
||||
|
||||
#In order for dynamically linked executables to work
|
||||
nix-ld.enable = true;
|
||||
nix-ld = {
|
||||
enable = true;
|
||||
#To ensure that the neccesary libraries are included in the wrapper
|
||||
libraries = with pkgs; [
|
||||
wayland
|
||||
libadwaita
|
||||
gtk4
|
||||
gtk3
|
||||
glib
|
||||
gdk-pixbuf
|
||||
pango
|
||||
cairo
|
||||
libGL
|
||||
openssl
|
||||
dbus
|
||||
fontconfig
|
||||
freetype
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
# Configure console keymap
|
||||
@ -276,7 +305,7 @@
|
||||
users.users.${username} = {
|
||||
isNormalUser = true;
|
||||
description = "Cookiez";
|
||||
extraGroups = ["networkmanager" "wheel" "docker"];
|
||||
extraGroups = ["networkmanager" "wheel" "docker" "gamemode"];
|
||||
packages = with pkgs; [
|
||||
#User Packages Here
|
||||
];
|
||||
@ -290,7 +319,7 @@
|
||||
# dockerCompat = true;
|
||||
#};
|
||||
|
||||
waydroid.enable = true;
|
||||
waydroid.enable = false;
|
||||
};
|
||||
|
||||
environment = {
|
||||
@ -341,7 +370,16 @@
|
||||
};
|
||||
|
||||
#Allow Nix Commands
|
||||
nix.settings.experimental-features = ["nix-command" "flakes"];
|
||||
nix.settings = {
|
||||
experimental-features = ["nix-command" "flakes"];
|
||||
|
||||
max-substitution-jobs = 32;
|
||||
http-connections = 50;
|
||||
|
||||
#Both needed for sleepy-launcher to work
|
||||
extra-substituters = ["https://ezkea.cachix.org" "https://nix-community.cachix.org"];
|
||||
extra-trusted-public-keys = ["ezkea.cachix.org-1:ioBmUbJTZIKsHmWWXPe1FSFbeVe+afhfgqgTSNd34eI=" "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="];
|
||||
};
|
||||
|
||||
# Allow unfree packages
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
Reference in New Issue
Block a user