shitcoding moment

This commit is contained in:
AlmiriQ 2025-12-01 13:47:27 +07:00
parent 8e31bd6c02
commit 58475e433e
28 changed files with 703 additions and 258 deletions

View file

@ -2,25 +2,13 @@
{
boot = {
supportedFilesystems = [ "bcachefs" ];
initrd.kernelModules = [ "amdgpu" ];
loader = {
efi = {
canTouchEfiVariables = true;
efiSysMountPoint = "/boot/efi";
};
grub = {
enable = true;
device = "nodev";
efiSupport = true;
configurationLimit = 8;
gfxmodeEfi = "1920x1080";
forceInstall = true;
extraEntries = ''
menuentry "UEFI Firmware Setup" {
fwsetup
}
'';
};
};
loader.systemd-boot.enable = true;
};
}
}

View file

@ -5,7 +5,6 @@
libusb1,
glibc,
libGL,
xorg,
makeWrapper,
qtx11extras,
wrapQtAppsHook,
@ -78,4 +77,4 @@ in
platforms = [ "x86_64-linux" ];
license = licenses.unfree;
};
}
}

View file

@ -1,23 +1,40 @@
{ config, pkgs, ... }:
{ pkgs, ... }:
{
hardware.graphics.enable = true;
hardware.graphics.enable32Bit = true;
hardware.amdgpu.opencl.enable = true;
systemd.tmpfiles.rules = [
"L+ /opt/rocm/hip - - - - ${pkgs.rocmPackages.clr}"
];
hardware.graphics.extraPackages = with pkgs; [
rocmPackages.clr.icd
];
hardware.amdgpu.overdrive.enable = true;
hardware.amdgpu.overdrive.ppfeaturemask = "0xffffffff";
environment.systemPackages = with pkgs; [ lact ];
systemd.packages = with pkgs; [ lact ];
systemd.services.lact.wantedBy = [ "multi-user.target" ];
systemd.services.lact.enable = true;
programs.corectrl.enable = true;
environment.systemPackages = with pkgs.rocmPackages; [
rocblas
hipblas
clr
rocm-runtime
rocminfo
clr
hipcc
];
systemd.tmpfiles.rules =
let
rocmEnv = pkgs.symlinkJoin {
name = "rocm-combined";
paths = with pkgs.rocmPackages; [
rocblas
hipblas
clr
rocm-runtime
rocminfo
clr
hipcc
];
};
in [
"L+ /opt/rocm - - - - ${rocmEnv}"
];
}

View file

@ -4,35 +4,45 @@
{ config, lib, pkgs, modulesPath, ... }:
{
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
fileSystems."/" = {
device = "/dev/disk/by-uuid/a0aed18c-fc58-4285-96eb-7f169f79fd32";
fsType = "btrfs";
options = [ "subvol=@" "compress=zstd" ];
};
fileSystems."/" =
{ device = "UUID=997643ea-122d-447e-99a6-5409579bff71";
fsType = "bcachefs";
};
fileSystems."/boot/efi" = {
device = "/dev/disk/by-uuid/D950-5ABC";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/24F0-6DE2";
fsType = "vfat";
options = [ "fmask=0022" "dmask=0022" ];
};
fileSystems."/home" = {
device = "/dev/disk/by-uuid/d2a83fff-f8db-4b53-ab01-40ccfaf0dc3e";
fsType = "btrfs";
options = [ "compress=zstd" ];
};
fileSystems."/home" =
{ device = "UUID=d2d6508b-3660-486a-b3bf-91c05dbedf2f";
fsType = "bcachefs";
};
swapDevices = [ ];
fileSystems."/mnt/ssd" =
{ device = "UUID=940782e8-eb09-4453-bbaf-5892564af55e";
fsType = "bcachefs";
};
networking.useDHCP = lib.mkDefault true;
swapDevices = [ ];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
# still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true;
# networking.interfaces.eno1.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}

View file

@ -1,4 +1,4 @@
{ config, pkgs, ... }:
{ ... }:
{
imports = [
@ -7,6 +7,7 @@
./packages.nix
./services/ssh.nix
./services/sudo.nix
./services/syncthing.nix
./hardware/hardware-configuration.nix
./hardware/audio.nix
./hardware/graphics.nix
@ -16,7 +17,9 @@
networking.hostName = "aqore-nix";
system.stateVersion = "25.05";
home-manager.backupFileExtension = "backup";
system.stateVersion = "25.11";
nix = {
settings = {

View file

@ -1,4 +1,4 @@
{ config, pkgs, pkgs-unstable, ... }:
{ pkgs, pkgs-unstable, ... }:
{
nixpkgs.config.allowUnfree = true;
@ -9,12 +9,13 @@
services.desktopManager.plasma6.enable = true;
programs = {
amnezia-vpn.enable = true;
nix-ld.enable = true;
appimage = {
enable = true;
binfmt = true;
};
nekoray = {
throne = {
enable = true;
tunMode.enable = true;
};
@ -34,11 +35,8 @@
git.enable = true;
};
nixpkgs.config.permittedInsecurePackages = [
"openssl-1.1.1w"
];
environment.systemPackages = with pkgs; [
# Internet
# Internet
telegram-desktop
qbittorrent
nicotine-plus
@ -47,14 +45,12 @@
# media
gimp
krita
jellyfin-media-player
vlc
audacity
qpwgraph
kdePackages.kdenlive
cava
# programming
sublime4
pkgs-unstable.zed-editor
firebase-tools
bun
nodejs
@ -64,6 +60,7 @@
gnumake
cmake
gcc
nixd
# games
prismlauncher
vcmi
@ -83,19 +80,18 @@
# wine, wayland and other crutches
wineWowPackages.stable
wineWowPackages.waylandFull
xwayland-satellite
pciutils
kdePackages.wallpaper-engine-plugin
kdePackages.qtwebengine
kdePackages.xwaylandvideobridge
(pkgs.libsForQt5.callPackage ./hardware/deco01-v3-driver.nix {})
(python3.withPackages (ps: with ps; [ websockets ]))
(python3.withPackages (ps: with ps; [
websockets
(ps.torch.override { rocmSupport = true; })
]))
];
fonts.packages = with pkgs; [
noto-fonts
noto-fonts-cjk-sans
noto-fonts-emoji
noto-fonts-color-emoji
nerd-fonts.fira-code
];
}
}

View file

@ -0,0 +1,36 @@
{ ... }:
{
services = {
syncthing = {
enable = true;
group = "users";
user = "in5ar";
dataDir = "/home/in5ar/Documents";
configDir = "/home/in5ar/.config/syncthing";
overrideDevices = true;
overrideFolders = true;
settings = {
devices = {
"likho" = { id = "FGFH7II-IX7RTPY-VNDJRDJ-CILUQMZ-W3KVCNW-MPWCNZD-RJI4O54-G5HSQAN"; };
"reine" = { id = "6IJXCEC-SYB7HYK-CP6SVB2-SQI55YX-IYHBDWM-TIP3F6S-4CSXT4O-72YTWA3"; };
"lucren" = { id = "SRWLK27-BQ65MC3-QKUHDV2-UMSF2XH-5GZSSVL-NLKXV7X-R6DPUZY-Y2GQFQR"; };
};
folders = {
"albzx-qw9rs" = {
path = "/mnt/ssd/replica/Models/";
devices = [ "likho" ];
};
"alteya-music" = {
path = "/home/in5ar/Alteya/Music/";
devices = [ "reine" ];
};
"persona5" = {
path = "/home/in5ar/P5R/archives/";
devices = [ "lucren" ];
};
};
};
};
};
}

View file

@ -1,23 +1,19 @@
{ config, pkgs, ... }:
{ pkgs, ... }:
{
users.groups.remote = {};
users.users = {
almiriqi = {
in5ar = {
isNormalUser = true;
description = "Almiriq!Iwasaki";
description = "IN5-AR";
extraGroups = [ "wheel" ];
initialPassword = "iqirimla";
shell = pkgs.fish;
};
maria = {
isNormalUser = true;
description = "Maria Arusu";
extraGroups = [ "wheel" "remote" ];
initialPassword = "airam";
};
root = {
initialPassword = "toor";
};
};
}
}

View file

@ -1,20 +1,22 @@
{ config, pkgs, ... }:
{ pkgs, ... }:
{
home.stateVersion = "25.05";
home.username = "almiriqi";
home.homeDirectory = "/home/almiriqi";
home.username = "in5ar";
home.homeDirectory = "/home/in5ar";
home.packages = (import ./packages.nix) pkgs;
fonts.fontconfig.enable = true;
programs.home-manager.enable = true;
programs.git = {
enable = true;
userName = "AlmiriQ";
userEmail = "al.quali.4ef@gmail.com";
settings.user = {
email = "al.quali.4ef@gmail.com";
name = "AlmiriQ";
};
};
}
}