Working config for fw13 amd

This commit is contained in:
Jurn Wubben 2025-02-14 19:40:27 +00:00
commit b7147ec26e
49 changed files with 1812 additions and 0 deletions

View file

@ -0,0 +1,8 @@
{
imports = [
./greetd.nix
./kanata.nix
./pipewire.nix
./power.nix
];
}

View file

@ -0,0 +1,23 @@
{
config,
lib,
...
}: {
# greetd display manager
services.greetd = let
session = {
command = "${lib.getExe config.programs.uwsm.package} start hyprland-uwsm.desktop";
user = "jsw";
};
in {
enable = true;
settings = {
terminal.vt = 1;
default_session = session;
initial_session = session;
};
};
programs.uwsm.enable = true;
}

View file

@ -0,0 +1,39 @@
{
# keyboard remapping
services.kanata = {
enable = true;
keyboards.default = {
# i know this config is aweful but it does the job.
config = ''
(defsrc
caps d w e b h j k l
)
(deflayer default
@cap _ _ _ _ _ _ _ _
)
(deflayer arrows
_ @tablayer @nextword @nextword @prevword left down up right
)
(deflayer tabs
_ _ _ _ _ @tableft _ _ @tabright
)
(defalias
cap (tap-hold-press 170 170 esc (layer-toggle arrows))
nextword (multi lctrl right)
prevword (multi lctrl left)
tablayer (layer-while-held tabs)
tableft (multi lctrl lshift tab)
tabright (multi lctrl tab)
)
'';
};
};
}

View file

@ -0,0 +1,11 @@
{lib, ...}: {
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
jack.enable = true;
pulse.enable = true;
};
services.pulseaudio.enable = lib.mkForce false;
}

10
system/services/power.nix Normal file
View file

@ -0,0 +1,10 @@
{
services = {
logind = {
powerKey = "suspend-then-hibernate";
powerKeyLongPress = "poweroff";
};
upower.enable = true;
power-profiles-daemon.enable = true;
};
}