Configuration for pang13

This commit is contained in:
Elnu 2023-09-23 13:06:15 -07:00
parent 7734fbcd64
commit f342ac6f9d
10 changed files with 138 additions and 6 deletions

5
hosts/pang13/apps.nix Normal file
View file

@ -0,0 +1,5 @@
{ pkgs, ... }:
{
home.packages = with pkgs; [ ];
}

40
hosts/pang13/default.nix Normal file
View file

@ -0,0 +1,40 @@
{ config, pkgs, lib, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
];
services.blueman.enable = true;
services.tailscale.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.loader.grub = {
enable = true;
efiSupport = true;
enableCryptodisk = true;
device = "nodev";
useOSProber = true;
};
boot.initrd.luks.devices = {
crypted = {
device = "/dev/disk/by-uuid/24bc9d4e-fc76-4b70-ba95-8533c416a9d0";
preLVM = true;
};
};
# Support mounting NTFS partitions
boot.supportedFilesystems = [ "ntfs" ];
# audio controls and polybar module don't work on pipewire
hardware.pulseaudio = {
enable = true;
support32Bit = true;
};
services.pipewire.enable = lib.mkForce false;
}

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 = [ "nvme" "xhci_pci" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ "dm-snapshot" ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-label/nixos";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-label/boot";
fsType = "vfat";
};
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.enp1s0.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp2s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
hardware.system76.enableAll = true;
}

9
hosts/pang13/home.nix Normal file
View file

@ -0,0 +1,9 @@
{ ... }:
{
imports = [
(import ./apps.nix)
(import ../thinkpads/i3.nix)
(import ../thinkpads/polybar.nix)
];
}