Configuration for pang13

inky
Elnu 1 year ago
parent 7734fbcd64
commit f342ac6f9d

@ -45,6 +45,29 @@ in
]; ];
}; };
pang13 = lib.nixosSystem {
inherit system;
specialArgs = { inherit user; };
modules = configImports ++ [
./pang13
./desktop.nix
{
boot.loader.grub.gfxmodeEfi = "1920x1080";
networking.hostName = "pang13";
}
home-manager.nixosModules.home-manager {
home-manager = {
useUserPackages = true;
extraSpecialArgs = hmArgs;
users.${user} = {
imports = desktopHmImports ++ [
(import ./pang13/home.nix)
];
};
};
}
];
};
x220 = lib.nixosSystem { x220 = lib.nixosSystem {
inherit system; inherit system;

@ -80,4 +80,9 @@ in
twitter-color-emoji twitter-color-emoji
]; ];
}; };
hardware.opengl = {
enable = true;
driSupport32Bit = true; # Required for Touhou, Steam
};
} }

@ -22,11 +22,6 @@
allowedUDPPorts = [ config.services.tailscale.port ]; allowedUDPPorts = [ config.services.tailscale.port ];
}; };
hardware.opengl = {
enable = true;
driSupport32Bit = true; # Required for Touhou
};
boot.loader = { boot.loader = {
efi = { efi = {
canTouchEfiVariables = true; canTouchEfiVariables = true;

@ -7,7 +7,7 @@ in
imports = [ imports = [
./apps.nix ./apps.nix
../modules/bash ../modules/bash
../modules/emacs #../modules/emacs
../modules/fcitx5 ../modules/fcitx5
../modules/firefox ../modules/firefox
../modules/git ../modules/git

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

@ -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;
}

@ -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;
}

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

@ -22,4 +22,11 @@
enable = true; enable = true;
touchpad.tapping = true; touchpad.tapping = true;
}; };
# audio controls and polybar module don't work on pipewire
hardware.pulseaudio = {
enable = true;
support32Bit = true;
};
services.pipewire.enable = false;
} }

@ -82,6 +82,14 @@ in with theme.colors;
exec = "/run/current-system/sw/bin/sleep 3 && /etc/profiles/per-user/elnu/bin/aozora air-quality-in-lakewood-aw-341300 --bar 2> /dev/null"; exec = "/run/current-system/sw/bin/sleep 3 && /etc/profiles/per-user/elnu/bin/aozora air-quality-in-lakewood-aw-341300 --bar 2> /dev/null";
interval = 1800; interval = 1800;
}; };
# Have to override because default exec doesn't work
"module/cputemp" = lib.mkForce {
type = "custom/script";
fromat = "<label>";
# tested on pang13
exec = "/etc/profiles/per-user/elnu/bin/sensors | /run/current-system/sw/bin/grep 'temp1:' | /run/current-system/sw/bin/tr -d '+' | /run/current-system/sw/bin/awk '{print $2}'";
interval = 5;
};
"module/filesystem" = { "module/filesystem" = {
type = "internal/fs"; type = "internal/fs";

Loading…
Cancel
Save