updated nixos
This commit is contained in:
+35
-47
@@ -5,65 +5,53 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
nixpkgs.overlays = [ (final: prev: {
|
||||
inherit (prev.lixPackageSets.stable)
|
||||
nixpkgs-review
|
||||
nix-eval-jobs
|
||||
nix-fast-build
|
||||
colmena;
|
||||
}) ];
|
||||
nix.package = pkgs.lixPackageSets.stable.lix;
|
||||
|
||||
imports =
|
||||
[
|
||||
imports = [ # Include the results of the hardware scan.
|
||||
./hardware-configuration.nix
|
||||
./pkg.nix
|
||||
./services.nix
|
||||
./pkg/dev.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;
|
||||
|
||||
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;
|
||||
|
||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||
# Set your time zone.
|
||||
time.timeZone = "America/Chicago";
|
||||
i18n.defaultLocale = "en_US.UTF-8";
|
||||
|
||||
|
||||
users.users.supa = {
|
||||
isNormalUser = true;
|
||||
extraGroups = [ "wheel" "libvirtd" ];
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
pulse.enable = true;
|
||||
};
|
||||
|
||||
users.defaultUserShell = pkgs.bash;
|
||||
programs.neovim.defaultEditor = true;
|
||||
|
||||
# graphics
|
||||
|
||||
hardware.graphics.enable = true;
|
||||
hardware.nvidia.open = true;
|
||||
|
||||
|
||||
# firewall
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ ];
|
||||
networking.firewall.allowedUDPPorts = [ ];
|
||||
networking.firewall.enable = true;
|
||||
|
||||
# virtualisation
|
||||
|
||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||
users.users.esse = {
|
||||
isNormalUser = true;
|
||||
extraGroups = [ "wheel" "docker" "disk" ]; # Enable ‘sudo’ for the user.
|
||||
};
|
||||
users.groups.libvirtd.members = ["esse"];
|
||||
virtualisation.libvirtd.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
|
||||
# (/run/current-system/configuration.nix). This is useful in case you
|
||||
|
||||
Generated
+27
@@ -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
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
};
|
||||
outputs = { self, nixpkgs, ... }@inputs: {
|
||||
nixosConfigurations.fzfound = nixpkgs.lib.nixosSystem {
|
||||
modules = [
|
||||
./configuration.nix
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
@@ -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"
|
||||
];
|
||||
|
||||
}
|
||||
@@ -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
|
||||
];
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user