Commit for generation 220

This commit is contained in:
2024-10-10 03:53:44 -04:00
parent 4398bfefb5
commit 25525c533d
311 changed files with 2566 additions and 8784 deletions

View File

@@ -0,0 +1,10 @@
{ pkgs, ... }:
{
boot = {
loader.systemd-boot.enable = true;
loader.efi.canTouchEfiVariables = true;
loader.systemd-boot.configurationLimit = 10;
boot.kernelPackages = pkgs.linuxPackages_latest;
};
}

View File

@@ -0,0 +1,14 @@
{ inputs, nixpkgs, self, ... }:
{
imports =
[ (import ./bootloader.nix) ]
++ [ (import ./fonts.nix) ]
++ [ (import ./hardware.nix) ]
++ [ (import ./network.nix) ]
++ [ (import ./packages.nix) ]
++ [ (import ./programs.nix) ]
++ [ (import ./services.nix) ]
++ [ (import ./system.nix) ]
++ [ (import ./users.nix) ];
}

View File

@@ -0,0 +1,9 @@
{ pkgs, ... }:
{
fonts.packages = with pkgs; [
times-newer-roman
nerdfonts
jetbrains-mono
];
}

View File

@@ -0,0 +1,57 @@
# 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 = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "uas" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/a687e4e2-8665-43f1-9d62-3e3f21423579";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/6EAD-2C48";
fsType = "vfat";
options = [ "fmask=0022" "dmask=0022" ];
};
fileSystems."/home" =
{ device = "/dev/nvme0n1p5";
fsType = "ext4";
};
fileSystems."/home/pagedmov/steamlib" =
{ device = "/dev/nvme0n1p1";
fsType = "ext4";
};
swapDevices = [ ];
# 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.enp14s0.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp15s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware = {
cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
keyboard.uhk.enable = true;
amdgpu.amdvlk.enable = true;
bluetooth = {
enable = true;
powerOnBoot = true;
};
};
}

View File

@@ -0,0 +1,15 @@
{ pkgs, ... }:
{
networking = {
networkmanager.enable = true;
hostName = "glasshaus";
hosts = {
"192.168.1.163" = [ "glasshaus.info" ];
};
firewall = {
enable = true;
allowedTCPPorts = [ 30000 ];
};
};
}

View File

@@ -0,0 +1,71 @@
{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [
alsa-lib
alsa-utils
bc
cava
clang
clang-tools
cmake
fail2ban
feh
ffmpeg-full
fuse
fzf
git
gnumake
gst_all_1.gstreamer
htop
hyprland
hyprland-workspaces
hyprpaper
hyprpicker
imagemagick
inetutils
kitty
libclang
libcxx
lolcat
lsof
lua-language-server
luarocks
mesa
mpd
mullvad
neofetch
nix-index
nix-prefetch-scripts
nixos-option
nix-search-cli
openssl
p7zip
pamixer
parted
pass
pavucontrol
pkg-config
playerctl
protonmail-bridge
protontricks
pyright
quintom-cursor-theme
socat
sox
stress
tor
tree
unrar
unzip
usbutils
vim
vscode-langservers-extracted
vulkan-loader
wget
wine
wl-clipboard
xpad
xwaylandvideobridge
];
}

View File

@@ -0,0 +1,20 @@
{ pkgs, ... }:
{
programs = {
steam.enable = true;
hyprland.enable = true;
zsh.enable = true;
nix-ld = {
enable = true;
libraries = with pkgs; [
stdenv.cc.cc
ffmpeg-full
];
};
gnupg.agent = {
enable = true;
enableSSHSupport = true;
};
};
}

View File

@@ -0,0 +1,18 @@
{ pkgs, ...}:
{
services = {
pipewire = {
enable = true;
pulse.enable = true;
wireplumber.enable = true;
alsa.enable = true;
alsa.support32Bit = true;
};
udev.enable = true;
dbus.enable = true;
mullvad-vpn.enable = true;
blueman.enable = true;
openssh.enable = true;
};
}

View File

@@ -0,0 +1,34 @@
{ pkgs, ... }:
{
system.stateVersion = "24.05";
nixpkgs.config.allowUnfree = true;
nix = {
settings = {
auto-optimise-store = true;
experimental-features = [ "nix-command" "flakes" ];
substituters = [ "https://nix-gaming.cachix.org" ];
};
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 7d";
};
};
environment = {
variables = {
XCURSOR_SIZE = "24";
PATH = "${pkgs.clang-tools}/bin:$PATH";
};
shells = with pkgs; [
zsh
bash
];
};
time.timeZone = "America/New_York";
i18n.defaultLocale = "en_US.UTF-8";
}

View File

@@ -0,0 +1,32 @@
{ inputs, pkgs, ... }:
{
imports = [ inputs.home-manager.nixosModules.home-manager ];
home-manager = {
useUserPackages = true;
useGlobalPkgs = true;
backupFileExtension = "backup";
extraSpecialArgs = { inherit inputs; };
users.pagedmov = {
imports = [ ./../home ];
home.username = "pagedmov";
home.homeDirectory = "/home/pagedmov";
home.stateVersion = "24.05";
programs.home-manager.enable = true;
pointerCursor = {
name = "Quintom_Ink";
size = 36;
package = pkgs.quintom-cursor-theme;
};
};
};
users.users.pagedmov = {
isNormalUser = true;
shell = pkgs.zsh;
extraGroups = [ "wheel" ];
};
security.sudo.extraConfig = ''
pagedmov ALL=(ALL) NOPASSWD: /run/current-system/sw/bin/nixos-rebuild
'';
nix.settings.allowed-users = [ "pagedmov" ];
}