This commit is contained in:
parent
fe94362c7b
commit
886ee38989
2 changed files with 0 additions and 177 deletions
|
@ -12,7 +12,6 @@ in
|
||||||
bigtower = stableHost ./bigtower.nix { };
|
bigtower = stableHost ./bigtower.nix { };
|
||||||
rascal = stableHost ./rascal.nix { };
|
rascal = stableHost ./rascal.nix { };
|
||||||
flipflop = host ./flipflop.nix { };
|
flipflop = host ./flipflop.nix { };
|
||||||
thablet = host ./thablet.nix { };
|
|
||||||
|
|
||||||
generic-headless = stableHost ./generic-headless.nix { };
|
generic-headless = stableHost ./generic-headless.nix { };
|
||||||
generic = stableHost ./generic.nix { };
|
generic = stableHost ./generic.nix { };
|
||||||
|
|
|
@ -1,176 +0,0 @@
|
||||||
{
|
|
||||||
pkgs,
|
|
||||||
lib,
|
|
||||||
config,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
{
|
|
||||||
networking.hostName = "thablet";
|
|
||||||
|
|
||||||
boot.loader.systemd-boot.enable = true;
|
|
||||||
|
|
||||||
services.fprintd = {
|
|
||||||
# TODO: am I missing a driver? see arch wiki for this h/w
|
|
||||||
enable = false;
|
|
||||||
# tod.enable = true;
|
|
||||||
# tod.driver = pkgs.libfprint-2-tod1-goodix;
|
|
||||||
};
|
|
||||||
|
|
||||||
environment.systemPackages =
|
|
||||||
#with pkgs;
|
|
||||||
[ ];
|
|
||||||
|
|
||||||
# https://wiki.archlinux.org/title/Lenovo_ThinkPad_X1_Yoga_(Gen_3)#Using_acpi_call
|
|
||||||
systemd.services.activate-touch-hack = {
|
|
||||||
enable = true;
|
|
||||||
description = "Touch wake Thinkpad X1 Yoga 3rd gen hack";
|
|
||||||
|
|
||||||
unitConfig = {
|
|
||||||
After = [
|
|
||||||
"suspend.target"
|
|
||||||
"hibernate.target"
|
|
||||||
"hybrid-sleep.target"
|
|
||||||
"suspend-then-hibernate.target"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
serviceConfig = {
|
|
||||||
ExecStart = ''
|
|
||||||
/bin/sh -c "echo '\\_SB.PCI0.LPCB.EC._Q2A' > /proc/acpi/call"
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
wantedBy = [
|
|
||||||
"suspend.target"
|
|
||||||
"hibernate.target"
|
|
||||||
"hybrid-sleep.target"
|
|
||||||
"suspend-then-hibernate.target"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [
|
|
||||||
"xhci_pci"
|
|
||||||
"nvme"
|
|
||||||
"usb_storage"
|
|
||||||
"sd_mod"
|
|
||||||
];
|
|
||||||
boot.initrd.kernelModules = [ ];
|
|
||||||
boot.kernelModules = [
|
|
||||||
"kvm-intel"
|
|
||||||
"acpi_call"
|
|
||||||
];
|
|
||||||
boot.extraModulePackages = with config.boot.kernelPackages; [ acpi_call ];
|
|
||||||
|
|
||||||
hardware = {
|
|
||||||
cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
||||||
graphics = {
|
|
||||||
enable = true;
|
|
||||||
enable32Bit = true;
|
|
||||||
extraPackages = with pkgs; [
|
|
||||||
intel-media-driver
|
|
||||||
intel-ocl
|
|
||||||
intel-vaapi-driver
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
hardware.bluetooth = {
|
|
||||||
enable = true;
|
|
||||||
powerOnBoot = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
services.power-profiles-daemon = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
networking = {
|
|
||||||
firewall =
|
|
||||||
let
|
|
||||||
terraria = 7777;
|
|
||||||
stardew-valley = 24642;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
allowedTCPPorts = [
|
|
||||||
terraria
|
|
||||||
stardew-valley
|
|
||||||
];
|
|
||||||
allowedUDPPorts = [
|
|
||||||
terraria
|
|
||||||
stardew-valley
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
home-manager.users.daniel = {
|
|
||||||
home = {
|
|
||||||
pointerCursor = {
|
|
||||||
size = 40;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.hyprlock.settings = {
|
|
||||||
label = [
|
|
||||||
{
|
|
||||||
monitor = "";
|
|
||||||
font_size = 32;
|
|
||||||
|
|
||||||
halign = "center";
|
|
||||||
valign = "center";
|
|
||||||
text_align = "center";
|
|
||||||
color = "rgba(255, 255, 255, 0.5)";
|
|
||||||
|
|
||||||
position = "0 -500";
|
|
||||||
font_family = "IosevkaLyteTerm";
|
|
||||||
text = "cmd[update:30000] acpi";
|
|
||||||
|
|
||||||
shadow_passes = 3;
|
|
||||||
shadow_size = 1;
|
|
||||||
shadow_color = "rgba(0, 0, 0, 1.0)";
|
|
||||||
shadow_boost = 1.0;
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
services.hypridle =
|
|
||||||
let
|
|
||||||
secondsPerMinute = 60;
|
|
||||||
lockSeconds = 10 * secondsPerMinute;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
settings = {
|
|
||||||
listener = [
|
|
||||||
{
|
|
||||||
timeout = lockSeconds + 55;
|
|
||||||
on-timeout = ''systemctl suspend'';
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
wayland.windowManager.hyprland = {
|
|
||||||
settings = {
|
|
||||||
exec-once = [
|
|
||||||
"eww open bar0"
|
|
||||||
];
|
|
||||||
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
|
|
||||||
monitor = [
|
|
||||||
"eDP-1,2560x1440@60Hz,0x0,1.25"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
wayland.windowManager.sway = {
|
|
||||||
config = {
|
|
||||||
output = {
|
|
||||||
"AU Optronics 0x2236 Unknown" = {
|
|
||||||
mode = "2560x1440@60Hz";
|
|
||||||
position = "0,0";
|
|
||||||
scale = toString 1.25;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
system.stateVersion = "24.05";
|
|
||||||
}
|
|
Loading…
Add table
Reference in a new issue