mirror of
https://github.com/blahai/nyx.git
synced 2025-01-18 19:10:21 +00:00
Compare commits
6 commits
c7d7ed6734
...
cfdc1a7830
Author | SHA1 | Date | |
---|---|---|---|
cfdc1a7830 | |||
30c2cb62b1 | |||
8055d2c8c1 | |||
c3dbd37098 | |||
3d6c12f67a | |||
4b26899d0e |
9 changed files with 131 additions and 34 deletions
|
@ -19,7 +19,7 @@
|
|||
};
|
||||
efi.canTouchEfiVariables = true;
|
||||
};
|
||||
kernelPackages = pkgs.linuxPackages_cachyos;
|
||||
kernelPackages = pkgs.linuxPackages_zen;
|
||||
kernel = {
|
||||
sysctl ={
|
||||
"vm.max_map_count" = 2147483642;
|
||||
|
@ -27,13 +27,6 @@
|
|||
};
|
||||
};
|
||||
|
||||
virtualisation = {
|
||||
docker = {
|
||||
enable = true;
|
||||
storageDriver = "btrfs";
|
||||
};
|
||||
};
|
||||
|
||||
zramSwap = {
|
||||
enable = true;
|
||||
algorithm = "zstd";
|
||||
|
@ -82,19 +75,8 @@
|
|||
};
|
||||
};
|
||||
|
||||
cloudflared = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
gnome.gnome-keyring.enable = true;
|
||||
|
||||
pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
jack.enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
hardware.pulseaudio.enable = false;
|
||||
|
@ -103,7 +85,7 @@
|
|||
users.users.pingu = {
|
||||
isNormalUser = true;
|
||||
description = "Elissa";
|
||||
extraGroups = [ "networkmanager" "wheel" "docker" ];
|
||||
extraGroups = [ "networkmanager" "wheel" "input" "render" ];
|
||||
shell = pkgs.fish;
|
||||
packages = with pkgs; [
|
||||
floorp
|
||||
|
@ -192,12 +174,16 @@
|
|||
};
|
||||
};
|
||||
|
||||
qt.enable = true;
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
age
|
||||
ssh-to-age
|
||||
sops
|
||||
cloudflared
|
||||
inputs.zen-browser.packages."${pkgs.system}".specific
|
||||
cava
|
||||
socat
|
||||
btrfs-progs
|
||||
btop
|
||||
hyprcursor
|
||||
|
@ -243,6 +229,8 @@
|
|||
material-design-icons
|
||||
material-symbols
|
||||
imagemagick
|
||||
wireguard-tools
|
||||
mission-center
|
||||
];
|
||||
|
||||
fonts.packages = with pkgs; [
|
||||
|
|
|
@ -9,8 +9,8 @@
|
|||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "nvme" "ahci" "xhci_pci" "usbhid" "hid_generic" "uas" "sd_mod" ];
|
||||
boot.initrd.kernelModules = [ "amdgpu" ];
|
||||
boot.kernelModules = [ "kvm-amd" "amd-pstate" "amdgpu" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-amd" "amd-pstate" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" =
|
||||
|
|
|
@ -43,11 +43,16 @@
|
|||
|
||||
networking = {
|
||||
enableIPv6 = false; # Had to disable for now due to problems with resolving
|
||||
firewall = { allowedTCPPorts = [
|
||||
firewall = {
|
||||
allowedTCPPorts = [
|
||||
80 # HTTP
|
||||
443 # HTTPS
|
||||
222 # git over ssh
|
||||
]; };
|
||||
];
|
||||
allowedUDPPorts = [
|
||||
25565 # minecraft
|
||||
];
|
||||
};
|
||||
hostName = "theia";
|
||||
nameservers = [ "1.1.1.1" "8.8.8.8" "9.9.9.9" ];
|
||||
domain = "theia.blahai.gay";
|
||||
|
@ -76,6 +81,31 @@
|
|||
|
||||
services = {
|
||||
|
||||
earlyoom = {
|
||||
enable = true;
|
||||
extraArgs = let
|
||||
avoid = lib.concatStringsSep "|" [
|
||||
"cryptsetup"
|
||||
"dbus-.*"
|
||||
"gpg-agent"
|
||||
"ssh-agent"
|
||||
"sshd"
|
||||
"systemd"
|
||||
"systemd-.*"
|
||||
"bash"
|
||||
"fish"
|
||||
"n?vim"
|
||||
];
|
||||
prefer =
|
||||
lib.concatStringsSep "|" [ "dotnet" "java.*" "nix" "npm" "node" ];
|
||||
in [
|
||||
"-g"
|
||||
"--avoid '(^|/)(${avoid})'" # things that we want to avoid killing
|
||||
"--prefer '(^|/)(${prefer})'" # things we want to remove fast
|
||||
];
|
||||
|
||||
};
|
||||
|
||||
caddy = {
|
||||
enable = true;
|
||||
virtualHosts = {
|
||||
|
@ -109,9 +139,7 @@
|
|||
|
||||
uptime-kuma = {
|
||||
enable = true;
|
||||
settings = {
|
||||
PORT = "3001";
|
||||
};
|
||||
settings = { PORT = "3001"; };
|
||||
};
|
||||
|
||||
forgejo = {
|
||||
|
@ -139,18 +167,22 @@
|
|||
|
||||
searx = {
|
||||
enable = true;
|
||||
redisCreateLocally = true;
|
||||
settings = {
|
||||
use_default_settings = true;
|
||||
server = {
|
||||
port = 8888;
|
||||
secret_key = "7360d3df7c08ce681cf6d5122e3e182de2c5205e962766abd3e6dfc8dec1b683";
|
||||
secret_key =
|
||||
"7360d3df7c08ce681cf6d5122e3e182de2c5205e962766abd3e6dfc8dec1b683";
|
||||
};
|
||||
ui = { infinite_scroll = true; };
|
||||
|
||||
general = {
|
||||
instance_name = "searchai";
|
||||
debug = false;
|
||||
};
|
||||
search = {
|
||||
safe_search = 1;
|
||||
safe_search = 0;
|
||||
autocomplete = "google";
|
||||
default_lang = "en";
|
||||
};
|
||||
|
@ -174,6 +206,8 @@
|
|||
};
|
||||
};
|
||||
|
||||
programs = { nix-ld.enable = true; };
|
||||
|
||||
users.users.root = {
|
||||
openssh.authorizedKeys.keys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILPbmiNqoyeKXk/VopFm2cFfEnV4cKCFBhbhyYB69Fuu"
|
||||
|
@ -194,6 +228,24 @@
|
|||
"$y$j9T$cxwKGmzYyC1eLeIysr8r/.$dsxxxV4NvXY.Wpd9LO.RiuMQuy2lYyy2HGrk52BJX08";
|
||||
};
|
||||
|
||||
users.users.minecraft = {
|
||||
isNormalUser = true;
|
||||
openssh.author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RBb5fl+OTztDyENyEiGo2Pr5xYew5oIuVG4+pZZUpjxOPB+uWr8tPct/kuq/hxqJ5byrsv+bW4CNWlRxKiHC0SLtIlkEXKbCIs0IvEjbFv3tS+wSCU9qdb39yZUXknc09GUmd8ZNfsmPNAg4+1irTfSy7R24Wi76B/dEMyb6TUKm1zUfRRnTCTngr7WZAn/UcPDvwUduJu64h99TRWOtU9T2ih33xkfk3zCJpME5s=" # slogo desktop
|
||||
];
|
||||
packages = with pkgs; [
|
||||
openjdk21
|
||||
openjdk17
|
||||
screen
|
||||
|
||||
];
|
||||
initialHashedPassword =
|
||||
"$y$j9T$KpQYYLB6eWfHAUo9.o/uy1$gnj/UlWLrx5XBZDm2GNdjHs2G5D3XxxqqtrCIf5MX43";
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
git
|
||||
curl
|
||||
|
@ -203,5 +255,6 @@
|
|||
zip
|
||||
jq
|
||||
busybox
|
||||
fish
|
||||
];
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
imports = [
|
||||
./starship.nix
|
||||
./fastfetch.nix
|
||||
./fastfetch/fastfetch.nix
|
||||
./fish/default.nix
|
||||
./alacritty/default.nix
|
||||
./foot/default.nix
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{ pkgs, lib, config, ... }: {
|
||||
home.file."Pictures/gay.png".source = ./gay.png;
|
||||
programs.fastfetch = {
|
||||
enable = true;
|
||||
settings = {
|
BIN
modules/home-manager/cli/fastfetch/gay.png
Normal file
BIN
modules/home-manager/cli/fastfetch/gay.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 547 KiB |
|
@ -3,5 +3,6 @@
|
|||
./catppuccin.nix
|
||||
./games/default.nix
|
||||
./services/default.nix
|
||||
./virtualisation.nix
|
||||
];
|
||||
}
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
{ ... }:
|
||||
{
|
||||
imports = [
|
||||
./cloudflared.nix
|
||||
# ./cloudflared.nix
|
||||
./vpn.nix
|
||||
./pipewire.nix
|
||||
];
|
||||
}
|
||||
|
|
53
modules/nixos/virtualisation.nix
Normal file
53
modules/nixos/virtualisation.nix
Normal file
|
@ -0,0 +1,53 @@
|
|||
{ pkgs, lib, config, ... }:
|
||||
{
|
||||
boot = {
|
||||
initrd.kernelModules = lib.mkBefore [
|
||||
"kvm-amd"
|
||||
"vfio_pci"
|
||||
"vfio_iommu_type1"
|
||||
"vfio"
|
||||
|
||||
"amdgpu"
|
||||
];
|
||||
kernelParams = [
|
||||
"amd_iommu=on"
|
||||
"amd_iommu=pt"
|
||||
"kvm.ignore_msrs=1"
|
||||
"vfio-pci.ids=1002:67df,1002:aaf0"
|
||||
];
|
||||
extraModprobeConfig = ''
|
||||
softdep drm pre: vfio-pci
|
||||
'';
|
||||
};
|
||||
|
||||
virtualisation = {
|
||||
libvirtd = {
|
||||
enable = true;
|
||||
onBoot = "ignore";
|
||||
onShutdown = "shutdown";
|
||||
|
||||
qemu = {
|
||||
package = pkgs.qemu_kvm;
|
||||
ovmf.enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
docker = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
programs = {
|
||||
virt-manager = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
users.users.pingu.extraGroups = [ "qemu-libvirtd" "libvirtd" "disk" "kvm" "docker" ];
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
virt-manager
|
||||
];
|
||||
|
||||
|
||||
}
|
Loading…
Reference in a new issue