adding galandor

This commit is contained in:
Chris Cochrun 2026-06-03 19:55:10 -05:00
parent 561fb03793
commit d2fe60c8e8
3 changed files with 349 additions and 0 deletions

View file

@ -115,6 +115,24 @@
nixos-hardware.nixosModules.common-pc-laptop
];
};
galandor = lib.nixosSystem {
inherit system;
pkgs = pkgsForSystem;
specialArgs = {
stable = stable;
inherit inputs;
};
modules = [
(nixpkgs + "/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix")
./systems/galandor/configuration.nix
nixos-hardware.nixosModules.common-cpu-intel
nixos-hardware.nixosModules.common-cpu-intel
nixos-hardware.nixosModules.common-gpu-nvidia-prime
nixos-hardware.nixosModules.common-gpu-nvidia-ada-lovelace
nixos-hardware.nixosModules.common-hidpi
nixos-hardware.nixosModules.common-pc-laptop
];
};
syl = lib.nixosSystem {
inherit system;
pkgs = pkgsForSystem;

View file

@ -0,0 +1,247 @@
{ lib, config, pkgs, callPackage, inputs, modulesPath, ... }:
{
imports = [
# ./hardware-configuration.nix
# ../../pkgs/base-packages.nix
(modulesPath + "/installer/scan/not-detected.nix")
./pkgs.nix
../../modules/base.nix
];
boot.initrd.availableKernelModules = [ "xhci_pci" "thunderbolt" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" "acpi_call" ];
boot.extraModulePackages = with config.boot.kernelPackages; [ acpi_call ];
networking.hostName = "nixbook";
isoImage.squashfsCompression = "gzip -Xcompression-level 1";
# boot.initrd.kernelModules = [ "i915" ];
hardware.cpu.amd.updateMicrocode =
lib.mkDefault config.hardware.enableRedistributableFirmware;
# hardware.cpu.intel.updateMicrocode =
# lib.mkDefault config.hardware.enableRedistributableFirmware;
hardware.acpilight.enable = lib.mkDefault true;
# networking.interfaces.wlp170s0.useDHCP = true;
# networking.useDHCP = false;
hardware.uinput.enable = true;
hardware.bluetooth.enable = true;
networking.enableB43Firmware = true;
# Use the systemd-boot EFI boot loader.
boot = {
kernelPackages = pkgs.linuxPackages_zen;
kernelParams = [ "mem_sleep_default=deep" "nvme.noacpi=1" ];
};
boot.supportedFilesystems = [ "ntfs" ];
services = {
desktopManager.cosmic.enable = true;
};
# services.displayManager.cosmic-greeter.enable = true;
services.desktopManager.plasma6.enable = true;
services.displayManager.sddm = {
enable = true;
enableHidpi = true;
wayland.enable = true;
settings = {
Autologin = {
Session = "cosmic.desktop";
User = "abbie";
};
};
};
programs.nix-ld.enable = true;
# security.pam.services.kwallet = {
# name = "kwallet";
# enableKwallet = true;
# };
fonts.fontconfig.useEmbeddedBitmaps = true;
fonts.fontDir.enable = true;
fonts.packages = with pkgs; [
nerd-fonts.victor-mono
noto-fonts
noto-fonts-cjk-sans
noto-fonts-emoji
liberation_ttf
mplus-outline-fonts.githubRelease
dina-font
proggyfonts
];
security.pam.services = {
sddm.enableKwallet = true;
greetd.enableKwallet = true;
};
xdg.portal = {
enable = true;
extraPortals = [ pkgs.kdePackages.xdg-desktop-portal-kde ];
};
services.avahi = {
enable = true;
nssmdns4 = true;
};
# Enable sound.
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
jack.enable = true;
wireplumber.enable = true;
};
# Needed for some pipewire progs and other gtk apps
programs.dconf.enable = true;
environment.variables = {
SAL_USE_VCLPLUGIN = "kf5";
# GTK_USE_PORTAL = "1";
# Fixing Qt apps in other environments
# Thought I needed this but apparently they are working fine without it.
# QT_XCB_GL_INTEGRATION = "xcb_egl";
# QT_QPA_PLATFORM_PLUGIN_PATH = "${pkgs.qt5.qtbase.bin}/lib/qt-${pkgs.qt5.qtbase.qtCompatVersion}/plugins/platforms";
NIXOS_OZONE_WL = "1";
_JAVA_AWT_WM_NONEREPARENTING = "1";
# DISABLE_QT5_COMPAT = "0";
GDK_BACKEND = "wayland";
ANKI_WAYLAND = "1";
WLR_DRM_NO_ATOMIC = "1";
QT_AUTO_SCREEN_SCALE_FACTOR = "1";
QT_QPA_PLATFORM = "wayland";
# QT_WAYLAND_DISABLE_WINDOWDECORATION = "1";
# QT_QPA_PLATFORMTHEME = "qt5ct";
MOZ_ENABLE_WAYLAND = "1";
MOZ_DBUS_REMOTE = "1";
WLR_BACKEND = "vulkan";
WLR_RENDERER = "vulkan";
XDG_SESSION_TYPE = "wayland";
# Remember that this causes issues in some games use "unset SDL_VIDEODRIVER &&"
SDL_VIDEODRIVER = "wayland";
CLUTTER_BACKEND = "wayland";
WLR_NO_HARDWARE_CURSORS = "1";
};
programs.partition-manager.enable = true;
programs.kdeconnect.enable = true;
# Turn on flatpak
services.flatpak.enable = true;
# Configure keymap in X11
services.xserver.xkb.layout = "us";
services.xserver.videoDrivers = lib.mkDefault [ "modesetting" ];
# Enable CUPS to print documents.
services.printing.enable = true;
services.printing.drivers =
[ pkgs.gutenprint pkgs.gutenprintBin pkgs.cnijfilter2 ];
services.usbmuxd.enable = true;
services.fstrim.enable = true;
# virtualisation.libvirtd = {
# enable = true;
# qemu = {
# runAsRoot = false;
# ovmf = {
# enable = true;
# packages = [
# pkgs.OVMFFull.fd
# pkgs.pkgsCross.aarch64-multiplatform.OVMF.fd
# ];
# };
# swtpm.enable = true;
# };
# };
# services.samba-wsdd.enable = true;
# services.samba = {
# enable = true;
# shares = {
# public = {
# path = "/home/abbie";
# "read only" = false;
# browsable = true;
# "guest ok" = true;
# comment = "Share";
# };
# };
# };
# nixpkgs.config.packageOverrides = pkgs: {
# vaapiIntel = pkgs.vaapiIntel.override { enableHybridCodec = true; };
# };
hardware.graphics = {
enable = true;
enable32Bit = true;
extraPackages = with pkgs; [
libvdpau-va-gl
vaapiVdpau
libva1
mesa
intel-media-driver # LIBVA_DRIVER_NAME=iHD
vaapiIntel # LIBVA_DRIVER_NAME=i965 (older but works better for Firefox/Chromium)
];
};
hardware.amdgpu.initrd.enable = lib.mkDefault true;
# systemd.services.display-manager = {
# wants = [
# "systemd-user-sessions.service"
# "multi-user.target"
# "network-online.target"
# ];
# after = [
# "systemd-user-sessions.service"
# "multi-user.target"
# "network-online.target"
# ];
# };
# Enable touchpad support (enabled default in most desktopManager).
services.libinput.enable = true;
services.xserver.dpi = 144;
# Define a user account. Don't forget to set a password with passwd.
users.users.abbie = {
isNormalUser = true;
initialPassword = "abbie";
extraGroups = [ "adbusers" "wheel" "networkmanager" "input" "uinput" "dialout" ];
};
services.fwupd.enable = true;
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.
# programs.mtr.enable = true;
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
};
# Enable the OpenSSH daemon.
services.openssh.enable = true;
# Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether.
# networking.firewall.enable = false;
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave
# this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "21.11"; # Did you read the comment?
}

84
systems/galandor/pkgs.nix Normal file
View file

@ -0,0 +1,84 @@
{ pkgs, lib, config, ... }:
{
environment.systemPackages = with pkgs; [
exfat
exfatprogs
zellij
wget
killall
gnumake
smartmontools
git
p7zip
zip
gzip
usbutils
binutils
eza
nushell
yt-dlp
bat
rsync
jq
ripgrep
fd
socat
ffmpeg-full
imagemagick
libheif
trash-cli
htop
btop
nvtopPackages.full
bc
sysstat
procs
pandoc
samba
pinentry
pinentry-qt
# caffeine-ng
hunspell
hunspellDicts.en_US-large
openssh
openssl
xdg-utils
hardinfo2
brightnessctl
mpc-cli
brave
kdePackages.kwallet-pam
aria2
kdePackages.kwallet
glxinfo
vulkan-tools
wayland-utils
nextcloud-client
papirus-icon-theme
phinger-cursors
gzip
# inkscape
kdePackages.ark
kdePackages.ffmpegthumbs
kdePackages.okular
kdePackages.kdegraphics-thumbnailers
kdePackages.kdesdk-thumbnailers
luanti
libreoffice-fresh
vlc
any-nix-shell
wtype
bluez-tools
mediainfo
libmediainfo
rubberband
pamixer
playerctl
gimp
power-profiles-daemon
python3
wireguard-tools
cosmic-player
];
}