Fix thinker

This commit is contained in:
Daniel Flanagan 2023-10-04 13:49:48 -05:00
parent ce92349ce5
commit 4230501cc1
Signed by: lytedev
GPG key ID: 5B2020A0F9921EF4
6 changed files with 17 additions and 18 deletions

View file

@ -63,11 +63,9 @@
};
# TODO: figure out what I can't have an optiona/default 'name' attribute here so I can DRY with "standard"
thinker = {disks ? ["/dev/vda"], ...}: {
# this is my standard partitioning scheme for my machines: an LUKS-encrypted
# btrfs volume
disko.devices = {
disk = {
vda = {
vdb = {
type = "disk";
device = builtins.elemAt disks 0;
content = {

View file

@ -1,7 +0,0 @@
{
config,
lib,
...
}: {
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}

View file

@ -2,7 +2,6 @@
# These should be stuff you would like to share with others, not your personal configurations.
{
common = import ./common.nix;
amd = import ./amd.nix;
melee = import ./melee.nix;
desktop-usage = import ./desktop-usage.nix;
intel = import ./intel.nix;

View file

@ -15,11 +15,12 @@
(modulesPath + "/installer/scan/not-detected.nix")
inputs.disko.nixosModules.disko
flake.diskoConfigurations.standard
inputs.hardware.nixosModules.common-cpu-amd
inputs.hardware.nixosModules.common-pc-ssd
]
++ (with outputs.nixosModules; [
# If you want to use modules your own flake exports (from modules/nixos):
# melee
amd
desktop-usage
podman
postgres

View file

@ -1,11 +1,12 @@
{
outputs,
inputs,
# outputs,
config,
modulesPath,
...
}: {
imports = [
outputs.nixosModules.amd
inputs.hardware.nixosModules.common-cpu-amd
(modulesPath + "/installer/scan/not-detected.nix")
];

View file

@ -3,8 +3,8 @@
inputs,
outputs,
lib,
config,
pkgs,
# config,
# pkgs,
...
}: {
networking.hostName = "thinker";
@ -23,6 +23,7 @@
])
++ [
inputs.hardware.nixosModules.lenovo-thinkpad-t480
inputs.hardware.nixosModules.common-pc-laptop-ssd
# ./relative-module.nix
];
@ -31,8 +32,14 @@
# need to measure percentage lost per day, but I think it's around 10%/day
# it looks like I may have had hibernation working -- see ../old/third.nix
boot.loader.efi.canTouchEfiVariables = true;
boot.loader.systemd-boot.enable = true;
boot = {
loader = {
efi.canTouchEfiVariables = true;
systemd-boot.enable = true;
};
kernelParams = ["boot.shell_on_fail"];
initrd.availableKernelModules = ["xhci_pci" "nvme" "ahci"];
};
hardware.bluetooth.enable = true;
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
services.printing.enable = true; # I own a printer in the year of our Lord 2023