got nvidia propritary Drivers working{
This commit is contained in:
parent
92fea90ac6
commit
9ba38635df
9 changed files with 170 additions and 96 deletions
103
hosts/katana.nix
103
hosts/katana.nix
|
|
@ -1,11 +1,12 @@
|
|||
{ config, pkgs, lib, self,inputs, ... }:
|
||||
{config, pkgs, lib, self,inputs, ... }:
|
||||
|
||||
{
|
||||
system.stateVersion = "23.05";
|
||||
# Hardware
|
||||
|
||||
hardware = {
|
||||
enableRedistributableFirmware = lib.mkDefault true;
|
||||
cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
bluetooth = {
|
||||
enable = true; # enables support for Bluetooth
|
||||
powerOnBoot = true; # powers up the default Bluetooth controller on boot
|
||||
|
|
@ -24,11 +25,10 @@
|
|||
efi.canTouchEfiVariables = true;
|
||||
};
|
||||
initrd = {
|
||||
availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usb_storage" "sd_mod" ];
|
||||
availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usb_storage" "sd_mod"];
|
||||
kernelModules = [ ];
|
||||
};
|
||||
kernelModules = [ "kvm-intel" ];
|
||||
extraModulePackages = [ ];
|
||||
# Prevent tampering of the pkgstore
|
||||
readOnlyNixStore = true;
|
||||
};
|
||||
|
|
@ -53,15 +53,23 @@
|
|||
networking = {
|
||||
hostName = "katana"; # Define your hostname.
|
||||
networkmanager.enable = true; #Enable Network Manager
|
||||
firewall = {
|
||||
checkReversePath = "loose";
|
||||
allowedTCPPorts = [ ];
|
||||
allowedUDPPorts = [ 1990 2021 ];
|
||||
extraCommands = ''
|
||||
iptables -I INPUT -m pkttype --pkt-type multicast -j ACCEPT
|
||||
iptables -A INPUT -m pkttype --pkt-type multicast -j ACCEPT
|
||||
'';
|
||||
};
|
||||
# ┏━━━━━━━━━┳━━━━━━┳━━━━━━━━━━━━━━━━━━━━━┓
|
||||
# ┃ Port # ┃ Type ┃ Purpose ┃
|
||||
# ┣━━━━━━━━━╋━━━━━━╋━━━━━━━━━━━━━━━━━━━━━┫
|
||||
# ┃ 1990 ┃ UDP ┃ Bambu Printer Comms ┃
|
||||
# ┃ 2021 ┃ UDP ┃ Bambu Printer Comms ┃
|
||||
# ┗━━━━━━━━━┻━━━━━━┻━━━━━━━━━━━━━━━━━━━━━┛
|
||||
firewall = {
|
||||
checkReversePath = "loose";
|
||||
allowedTCPPorts = [ ];
|
||||
allowedUDPPorts = [ 1990 2021 ];
|
||||
|
||||
# Both iptables commands are to get multicast working for orca slicer for my bambu printer
|
||||
extraCommands = ''
|
||||
iptables -I INPUT -m pkttype --pkt-type multicast -j ACCEPT
|
||||
iptables -A INPUT -m pkttype --pkt-type multicast -j ACCEPT
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
|
|
@ -84,19 +92,20 @@
|
|||
|
||||
programs.steam.enable = true;
|
||||
|
||||
# Services
|
||||
services = {
|
||||
pcscd.enable = true;
|
||||
blueman.enable = false;
|
||||
pulseaudio.enable = false;
|
||||
printing.enable = true;
|
||||
xserver = {
|
||||
xkb = {
|
||||
layout = "us";
|
||||
variant = "";
|
||||
};
|
||||
# Services
|
||||
services = {
|
||||
flatpak.enable = true; #flatpak
|
||||
pcscd.enable = true; #yubikey
|
||||
blueman.enable = false; #bluetooth
|
||||
pulseaudio.enable = false; #Audio
|
||||
printing.enable = true; #Printing
|
||||
xserver = {
|
||||
xkb = {
|
||||
layout = "us";
|
||||
variant = "";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# Package Manager
|
||||
nixpkgs = {
|
||||
|
|
@ -120,25 +129,24 @@
|
|||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
gparted # Drive Partition Manger
|
||||
bluez # Bluetooth Stack
|
||||
# blueman # Bluetooth Management
|
||||
home-manager # Dotfiles Management
|
||||
pkg-config # Determine lib locations for linking during compliation
|
||||
gparted # Drive Partition Manger
|
||||
bluez # Bluetooth Stack
|
||||
home-manager # Dotfiles Management
|
||||
pkg-config # Determine lib locations for linking during compliation
|
||||
ripgrep # regex parser written in rust
|
||||
openssl # SSL TLS Protocol
|
||||
tree # Filetree to stdout
|
||||
eza # LS rewritten in rust
|
||||
zsh # Prefered Shell
|
||||
dig #dns lookup
|
||||
rage #file encryption
|
||||
age-plugin-yubikey #plugin for rage to manage yubi-2fa
|
||||
sops #file based secrets operations
|
||||
direnv #used for development environments
|
||||
gcc # Gnu C Compiler
|
||||
bottom # Top rewritten in rust
|
||||
felix-fm # File browser tui written in rust
|
||||
discord # Discord for comms with friends
|
||||
openssl # SSL TLS Protocol
|
||||
tree # Filetree to stdout
|
||||
eza # LS rewritten in rust
|
||||
zsh # Prefered Shell
|
||||
dig #dns lookup
|
||||
rage #file encryption
|
||||
age-plugin-yubikey #plugin for rage to manage yubi-2fa
|
||||
sops #file based secrets operations
|
||||
direnv #used for development environments
|
||||
gcc # Gnu C Compiler
|
||||
bottom # Top rewritten in rust
|
||||
felix-fm # File browser tui written in rust
|
||||
discord # Discord for comms with friends
|
||||
neovim # Modal Text Editor
|
||||
brave # Web Browser
|
||||
libation # Backup audible libraries
|
||||
|
|
@ -148,8 +156,8 @@
|
|||
yubioath-flutter # Yubico Authenticator Client
|
||||
lazygit # Git tui written in rust
|
||||
glow # Markdown renderer for terminal
|
||||
inputs.sk-extract.packages.${system}.default
|
||||
inputs.yunodo.packages.${system}.default
|
||||
inputs.sk-extract.packages.${system}.default
|
||||
inputs.yunodo.packages.${system}.default
|
||||
signal-desktop
|
||||
bat #cat but better in rust
|
||||
xclip #fixes nvim clipboard
|
||||
|
|
@ -159,6 +167,11 @@
|
|||
openscad #cad software for 3d modeling programattically
|
||||
orca-slicer #3d printer slicer
|
||||
wishlist #ssh bastion
|
||||
fd # required for nvim config telescope
|
||||
rustdesk #remote tech support
|
||||
pciutils #lspci
|
||||
lshw # for getting bus ids for PRIME
|
||||
dracut # for lsinitrd
|
||||
];
|
||||
|
||||
# Fonts
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue