Compare commits
9
Commits
46271e24bb
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9abc47a8e1 | ||
|
|
d63409dad8 | ||
|
|
66f9e08617 | ||
|
|
36b1f78886 | ||
|
|
15be29ba2a | ||
|
|
eab86bebc7 | ||
|
|
a0d9135695 | ||
|
|
d7894065f7 | ||
|
|
6a66db0b20 |
@@ -0,0 +1,16 @@
|
|||||||
|
{
|
||||||
|
self,
|
||||||
|
moduleWithSystem,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
flake.nixosModules.cad = moduleWithSystem ({...}: let
|
||||||
|
modules = with self.nixosModules; [
|
||||||
|
freecad
|
||||||
|
openscad
|
||||||
|
prusa-slicer
|
||||||
|
];
|
||||||
|
in {
|
||||||
|
imports = modules;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
{...}: {
|
||||||
|
# Screenshot capture, region selection, annotation, and clipboard support for
|
||||||
|
# the Hyprland screenshot keybinds managed in the dotfiles repo.
|
||||||
|
flake.nixosModules.freecad = {pkgs, ...}: {
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
freecad
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
{...}: {
|
||||||
|
flake.nixosModules.moonlight = {pkgs, ...}: {
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
moonlight-qt
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
{...}: {
|
||||||
|
# Screenshot capture, region selection, annotation, and clipboard support for
|
||||||
|
# the Hyprland screenshot keybinds managed in the dotfiles repo.
|
||||||
|
flake.nixosModules.openscad = {pkgs, ...}: {
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
openscad
|
||||||
|
openscad-lsp
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -5,5 +5,6 @@
|
|||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
quickshell
|
quickshell
|
||||||
];
|
];
|
||||||
|
qt.enable = true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,13 @@
|
|||||||
|
{...}: {
|
||||||
|
# TODO: previously injected SLSsteam via LD_AUDIT from the sls-steam flake. Now stock.
|
||||||
|
flake.nixosModules.sunshine = {pkgs, ...}: {
|
||||||
|
services.sunshine = {
|
||||||
|
enable = true;
|
||||||
|
autoStart = true;
|
||||||
|
capSysAdmin = true;
|
||||||
|
openFirewall = true;
|
||||||
|
settings.output_name = "DP-3"
|
||||||
|
};
|
||||||
|
hardware.uinput.enable = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
{...}: {
|
||||||
|
# Yazi a cli file explorer.
|
||||||
|
flake.nixosModules.yazi = {pkgs, ...}: {
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
yazi
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -24,6 +24,7 @@
|
|||||||
printing
|
printing
|
||||||
via
|
via
|
||||||
nextcloud
|
nextcloud
|
||||||
|
sunshine
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,6 +19,13 @@
|
|||||||
obsidian
|
obsidian
|
||||||
discord
|
discord
|
||||||
gaming
|
gaming
|
||||||
|
winbox
|
||||||
|
cad
|
||||||
|
prusa-slicer
|
||||||
|
netops
|
||||||
|
via
|
||||||
|
t480UsbWakeup
|
||||||
|
moonlight
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,6 +7,13 @@
|
|||||||
networking = {
|
networking = {
|
||||||
hostName = "t480";
|
hostName = "t480";
|
||||||
};
|
};
|
||||||
|
services.logind.settings.Login = {
|
||||||
|
HandleLidSwitch = "suspend";
|
||||||
|
HandleLidSwitchDocked = "ignore";
|
||||||
|
};
|
||||||
|
services.fwupd = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,19 @@
|
|||||||
|
{...}: {
|
||||||
|
flake.nixosModules.t480UsbWakeup = {...}: {
|
||||||
|
services.udev.extraRules = ''
|
||||||
|
# Wake the T480 from S3 suspend via a keyboard plugged into a built-in USB
|
||||||
|
# port. The dock connects over the Thunderbolt-3 controller (3c:00.0), which
|
||||||
|
# powers down in S3 and cannot detect a cold replug — so dock-connected input
|
||||||
|
# cannot wake the machine after an unplug-triggered suspend. The built-in xHCI
|
||||||
|
# (00:14.0) stays wake-capable in S3, so a keyboard on a built-in port works.
|
||||||
|
#
|
||||||
|
# Arm ONLY the keyboard itself (match by VID:PID — the USB bus path is
|
||||||
|
# unstable across re-enumeration). Deliberately do NOT arm the built-in root
|
||||||
|
# hubs: arming a whole root hub makes it wake on hub-level events (USB-C PD
|
||||||
|
# negotiation, the SD card reader, internal peripherals), causing spurious
|
||||||
|
# self-wakes. A leaf device's remote-wakeup propagates through the hub without
|
||||||
|
# the hub's own wakeup flag being set.
|
||||||
|
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="320f", ATTR{idProduct}=="5055", ATTR{power/wakeup}="enabled"
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -36,6 +36,7 @@
|
|||||||
extraGroups = [
|
extraGroups = [
|
||||||
"networkmanager"
|
"networkmanager"
|
||||||
"wheel"
|
"wheel"
|
||||||
|
"uinput"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
hyprland
|
hyprland
|
||||||
sddm
|
sddm
|
||||||
network
|
network
|
||||||
|
yazi
|
||||||
];
|
];
|
||||||
in {
|
in {
|
||||||
imports = modules;
|
imports = modules;
|
||||||
|
|||||||
Reference in New Issue
Block a user