updated nixos

This commit is contained in:
essse-est
2026-09-12 06:49:33 -05:00
parent d9214ffabd
commit c91432d2b8
7 changed files with 260 additions and 50 deletions
+36 -48
View File
@@ -5,65 +5,53 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
{ {
nixpkgs.overlays = [ (final: prev: { imports = [ # Include the results of the hardware scan.
inherit (prev.lixPackageSets.stable)
nixpkgs-review
nix-eval-jobs
nix-fast-build
colmena;
}) ];
nix.package = pkgs.lixPackageSets.stable.lix;
imports =
[
./hardware-configuration.nix ./hardware-configuration.nix
./pkg.nix ./pkg/dev.nix
./services.nix ./pkg/core.nix
]; ./pkg/userland.nix
programs.nix-ld.libraries = with pkgs; [ ];
fontconfig
wayland
libx11
libxcursor
libxext
libxi
];
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;
networking.hostName = "f1ndm3"; # Use latest kernel.
boot.kernelPackages = pkgs.linuxKernel.packages.linux_7_1;
networking.hostName = "fzfound"; # Define your hostname.
# Configure network connections interactively with nmcli or nmtui.
networking.networkmanager.enable = true; networking.networkmanager.enable = true;
nix.settings.experimental-features = [ "nix-command" "flakes" ];
# Set your time zone.
time.timeZone = "America/Chicago"; time.timeZone = "America/Chicago";
i18n.defaultLocale = "en_US.UTF-8";
services.pipewire = {
users.users.supa = { enable = true;
isNormalUser = true; pulse.enable = true;
extraGroups = [ "wheel" "libvirtd" ];
}; };
users.defaultUserShell = pkgs.bash; # Define a user account. Don't forget to set a password with passwd.
programs.neovim.defaultEditor = true; users.users.esse = {
isNormalUser = true;
# graphics extraGroups = [ "wheel" "docker" "disk" ]; # Enable sudo for the user.
};
hardware.graphics.enable = true; users.groups.libvirtd.members = ["esse"];
hardware.nvidia.open = true;
# firewall
networking.firewall.allowedTCPPorts = [ ];
networking.firewall.allowedUDPPorts = [ ];
networking.firewall.enable = true;
# virtualisation
virtualisation.libvirtd.enable = true; virtualisation.libvirtd.enable = true;
virtualisation.spiceUSBRedirection.enable = true; virtualisation.spiceUSBRedirection.enable = true;
security.polkit.enable = true;
security.pam.services.swaylock = {};
nixpkgs.config.allowUnfree = 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;
# Copy the NixOS configuration file and link it from the resulting system # Copy the NixOS configuration file and link it from the resulting system
# (/run/current-system/configuration.nix). This is useful in case you # (/run/current-system/configuration.nix). This is useful in case you
+27
View File
@@ -0,0 +1,27 @@
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1788039129,
"narHash": "sha256-pa4Q0qErvCvzCaaUph7Sm37RhR4xvPrYI8Lgz6k85+A=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "d2f67949798825fe853f7c5d0492b8bf016d3f88",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}
+12
View File
@@ -0,0 +1,12 @@
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs = { self, nixpkgs, ... }@inputs: {
nixosConfigurations.fzfound = nixpkgs.lib.nixosSystem {
modules = [
./configuration.nix
];
};
};
}
+40
View File
@@ -0,0 +1,40 @@
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }:
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/f30ad54f-7598-46b2-b484-0a652c1d805c";
fsType = "xfs";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/08B2-36C3";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
};
fileSystems."/mnt/1tb1" =
{ device = "/dev/disk/by-uuid/9edf6659-16f6-4d6f-898f-c32fb849710a";
fsType = "xfs";
};
fileSystems."/mnt/1tb2" =
{ device = "/dev/disk/by-uuid/4770e6c5-33d4-4921-ad4b-877504c77446";
fsType = "xfs";
};
swapDevices =
[ { device = "/dev/disk/by-uuid/a6f63a27-2bdc-46aa-9e0c-56ec680bbf4f"; }
];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}
+41
View File
@@ -0,0 +1,41 @@
{ config, lib, pkgs, ... }:
{
# kde
services = {
desktopManager.plasma6.enable = true;
displayManager.ly.enable = true;
};
environment.plasma6.excludePackages = with pkgs.kdePackages; [
plasma-browser-integration
konsole
kate
okular
gwenview
elisa
];
qt.enable = true;
environment.systemPackages = with pkgs; [
qadwaitadecorations-qt6
qt6.qtsvg
];
# drivers
hardware.graphics.enable = true;
services.xserver.videoDrivers = [ "nvidia" ];
hardware.nvidia.open = true;
hardware.nvidia.modesetting.enable = true;
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
"nvidia-x11"
"nvidia-settings"
"nvidia-persistenced"
];
}
+54
View File
@@ -0,0 +1,54 @@
{ config, lib, pkgs, ... }:
{
environment.systemPackages = with pkgs; [
autoconf
automake
bat
bat-extras.batdiff
bazelisk
binutils
bison
clang
clang-tools
cloudflared
cron
debugedit
fakeroot
findutils
gawk
gcc
gettext
git
git-lfs
github-cli
gnumake
groff
gzip
jdk17
jdk25
jdk8
libtool
m4
mdformat
meson
mise
ncurses
ninja
nodejs_26
pkgconf
python3
shellcheck
shfmt
texinfo
unrar
unzip
vulkan-tools
wget
wmctrl
xprop
xxd
zip
];
}
+48
View File
@@ -0,0 +1,48 @@
{ config, lib, pkgs, ... }:
{
environment.systemPackages = with pkgs; [
audacity
btop
daggerfall-unity
dig
discord
fastfetch
filezilla
firefox
foot
fzf
gamemode
gimp-with-plugins
heroic
htop
hyfetch
jellyfin
jellyfin-desktop
kdePackages.dolphin
kitty
lutris
mangohud
neovim
nix-search-tv
prismlauncher
protontricks
qbittorrent
rofi
sgdboop
tmux
vlc
vscodium-fhs
wineWow64Packages.staging
wineWow64Packages.waylandFull
winetricks
wpgtk
];
programs.steam.enable = true;
programs.virt-manager.enable = true;
# break in case of emergency
services.flatpak.enable = true;
}