Fix thinker
This commit is contained in:
parent
ce92349ce5
commit
4230501cc1
6 changed files with 17 additions and 18 deletions
|
@ -63,11 +63,9 @@
|
||||||
};
|
};
|
||||||
# TODO: figure out what I can't have an optiona/default 'name' attribute here so I can DRY with "standard"
|
# TODO: figure out what I can't have an optiona/default 'name' attribute here so I can DRY with "standard"
|
||||||
thinker = {disks ? ["/dev/vda"], ...}: {
|
thinker = {disks ? ["/dev/vda"], ...}: {
|
||||||
# this is my standard partitioning scheme for my machines: an LUKS-encrypted
|
|
||||||
# btrfs volume
|
|
||||||
disko.devices = {
|
disko.devices = {
|
||||||
disk = {
|
disk = {
|
||||||
vda = {
|
vdb = {
|
||||||
type = "disk";
|
type = "disk";
|
||||||
device = builtins.elemAt disks 0;
|
device = builtins.elemAt disks 0;
|
||||||
content = {
|
content = {
|
||||||
|
|
|
@ -1,7 +0,0 @@
|
||||||
{
|
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
||||||
}
|
|
|
@ -2,7 +2,6 @@
|
||||||
# These should be stuff you would like to share with others, not your personal configurations.
|
# These should be stuff you would like to share with others, not your personal configurations.
|
||||||
{
|
{
|
||||||
common = import ./common.nix;
|
common = import ./common.nix;
|
||||||
amd = import ./amd.nix;
|
|
||||||
melee = import ./melee.nix;
|
melee = import ./melee.nix;
|
||||||
desktop-usage = import ./desktop-usage.nix;
|
desktop-usage = import ./desktop-usage.nix;
|
||||||
intel = import ./intel.nix;
|
intel = import ./intel.nix;
|
||||||
|
|
|
@ -15,11 +15,12 @@
|
||||||
(modulesPath + "/installer/scan/not-detected.nix")
|
(modulesPath + "/installer/scan/not-detected.nix")
|
||||||
inputs.disko.nixosModules.disko
|
inputs.disko.nixosModules.disko
|
||||||
flake.diskoConfigurations.standard
|
flake.diskoConfigurations.standard
|
||||||
|
inputs.hardware.nixosModules.common-cpu-amd
|
||||||
|
inputs.hardware.nixosModules.common-pc-ssd
|
||||||
]
|
]
|
||||||
++ (with outputs.nixosModules; [
|
++ (with outputs.nixosModules; [
|
||||||
# If you want to use modules your own flake exports (from modules/nixos):
|
# If you want to use modules your own flake exports (from modules/nixos):
|
||||||
# melee
|
# melee
|
||||||
amd
|
|
||||||
desktop-usage
|
desktop-usage
|
||||||
podman
|
podman
|
||||||
postgres
|
postgres
|
||||||
|
|
|
@ -1,11 +1,12 @@
|
||||||
{
|
{
|
||||||
outputs,
|
inputs,
|
||||||
|
# outputs,
|
||||||
config,
|
config,
|
||||||
modulesPath,
|
modulesPath,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
imports = [
|
imports = [
|
||||||
outputs.nixosModules.amd
|
inputs.hardware.nixosModules.common-cpu-amd
|
||||||
(modulesPath + "/installer/scan/not-detected.nix")
|
(modulesPath + "/installer/scan/not-detected.nix")
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -3,8 +3,8 @@
|
||||||
inputs,
|
inputs,
|
||||||
outputs,
|
outputs,
|
||||||
lib,
|
lib,
|
||||||
config,
|
# config,
|
||||||
pkgs,
|
# pkgs,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
networking.hostName = "thinker";
|
networking.hostName = "thinker";
|
||||||
|
@ -23,6 +23,7 @@
|
||||||
])
|
])
|
||||||
++ [
|
++ [
|
||||||
inputs.hardware.nixosModules.lenovo-thinkpad-t480
|
inputs.hardware.nixosModules.lenovo-thinkpad-t480
|
||||||
|
inputs.hardware.nixosModules.common-pc-laptop-ssd
|
||||||
# ./relative-module.nix
|
# ./relative-module.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -31,8 +32,14 @@
|
||||||
# need to measure percentage lost per day, but I think it's around 10%/day
|
# 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
|
# it looks like I may have had hibernation working -- see ../old/third.nix
|
||||||
|
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
boot = {
|
||||||
boot.loader.systemd-boot.enable = true;
|
loader = {
|
||||||
|
efi.canTouchEfiVariables = true;
|
||||||
|
systemd-boot.enable = true;
|
||||||
|
};
|
||||||
|
kernelParams = ["boot.shell_on_fail"];
|
||||||
|
initrd.availableKernelModules = ["xhci_pci" "nvme" "ahci"];
|
||||||
|
};
|
||||||
hardware.bluetooth.enable = true;
|
hardware.bluetooth.enable = true;
|
||||||
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
||||||
services.printing.enable = true; # I own a printer in the year of our Lord 2023
|
services.printing.enable = true; # I own a printer in the year of our Lord 2023
|
||||||
|
|
Loading…
Reference in a new issue