Add initial support for grub

This commit is contained in:
Jimbo 2024-10-19 19:59:55 -04:00
parent 865afe8ab3
commit b0074a081a
8 changed files with 16 additions and 13 deletions

View file

@ -12,7 +12,6 @@
./swaylock ./swaylock
]; ];
# Enable Sway and write some scripts
wayland.windowManager.sway = { wayland.windowManager.sway = {
enable = true; enable = true;
package = null; package = null;

View file

@ -1,4 +1,4 @@
{ pkgs, config, ... }: { config, ... }:
{ {
wayland.windowManager.sway = { wayland.windowManager.sway = {
config = { config = {

View file

@ -127,8 +127,8 @@
"${primeMod}+Ctrl+Return" = ''exec foot ssh ${config.ips.server}''; "${primeMod}+Ctrl+Return" = ''exec foot ssh ${config.ips.server}'';
# Display Brightness and Keyboard Brightness # Display Brightness and Keyboard Brightness
"${secMod}+equal" = ''exec light -A 5''; "${primeMod}+equal" = ''exec light -A 5'';
"${secMod}+minus" = ''exec light -U 5''; "${primeMod}+minus" = ''exec light -U 5'';
"XF86KbdBrightnessUp" = ''exec light -s sysfs/leds/smc::kbd_backlight -A 5''; "XF86KbdBrightnessUp" = ''exec light -s sysfs/leds/smc::kbd_backlight -A 5'';
"XF86KbdBrightnessDown" = ''exec light -s sysfs/leds/smc::kbd_backlight -U 5''; "XF86KbdBrightnessDown" = ''exec light -s sysfs/leds/smc::kbd_backlight -U 5'';
@ -233,13 +233,8 @@
"${primeMod}+${secMod}+Left" = ''resize shrink width ${resizeAmount} px or 5 ppt''; "${primeMod}+${secMod}+Left" = ''resize shrink width ${resizeAmount} px or 5 ppt'';
"${primeMod}+${secMod}+Right" = ''resize grow width ${resizeAmount} px or 5 ppt''; "${primeMod}+${secMod}+Right" = ''resize grow width ${resizeAmount} px or 5 ppt'';
# Adjust gap size
"${primeMod}+Shift+equal" = ''gaps inner current set 5'';
"${primeMod}+equal" = ''gaps inner current plus 5'';
"${primeMod}+minus" = ''gaps inner current minus 5'';
# Scratchpads # Scratchpads
"Ctrl+Shift+Escape" = ''[app_id="gotop"] scratchpad show, move position center, resize set 1216 888''; "Ctrl+Shift+Delete" = ''[app_id="gotop"] scratchpad show, move position center, resize set 1216 888'';
"${primeMod}+Shift+m" = ''[app_id="music"] scratchpad show, move position center, resize set 1006 657''; "${primeMod}+Shift+m" = ''[app_id="music"] scratchpad show, move position center, resize set 1006 657'';
"${primeMod}+Shift+v" = ''[app_id="sound"] scratchpad show, move position center, resize set 1000 800''; "${primeMod}+Shift+v" = ''[app_id="sound"] scratchpad show, move position center, resize set 1000 800'';
"${primeMod}+Shift+Backslash" = ''[app_id="com.github.wwmm.easyeffects"] scratchpad show, move position center, resize set 1000 800''; "${primeMod}+Shift+Backslash" = ''[app_id="com.github.wwmm.easyeffects"] scratchpad show, move position center, resize set 1000 800'';

View file

@ -1,4 +1,4 @@
{ pkgs, config, ... }: { config, ... }:
{ {
wayland.windowManager.sway = { wayland.windowManager.sway = {
config = { config = {

View file

@ -1,4 +1,4 @@
{ config, pkgs, ... }: { config, ... }:
{ {
wayland.windowManager.sway = { wayland.windowManager.sway = {
enable = true; enable = true;

View file

@ -12,7 +12,6 @@
(builtins.readFile ../../../../../hosts/lacros/id_ed25519.pub) (builtins.readFile ../../../../../hosts/lacros/id_ed25519.pub)
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJahAoF74BY6GCTsFkt1ADKaraFgJJozW1Y1aBTLK0j9 pixel9" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJahAoF74BY6GCTsFkt1ADKaraFgJJozW1Y1aBTLK0j9 pixel9"
]; ];
extraGroups = [ extraGroups = [
"wheel" "wheel"
"audio" "audio"

View file

@ -0,0 +1,9 @@
{ ... }:
{
boot.loader.grub = {
enable = true;
efiSupport = true;
efiInstallAsRemovable = true;
device = "nodev";
};
}

View file

@ -8,6 +8,7 @@
capslock = "overload(control, esc)"; capslock = "overload(control, esc)";
esc = "capslock"; esc = "capslock";
control = "f14"; control = "f14";
scrolllock = "esc";
}; };
}; };
}; };