Added keybindings
This commit is contained in:
@@ -38,4 +38,9 @@
|
|||||||
|
|
||||||
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
||||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
|
|
||||||
|
# # Keyboard light
|
||||||
|
# services.udev.extraRules = ''
|
||||||
|
# SUBSYSTEM=="usb", ATTR{idVendor}=="048d", ATTR{idProduct}=="c101", MODE="0666"
|
||||||
|
# '';
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ in
|
|||||||
];
|
];
|
||||||
|
|
||||||
samfelag.modules.desktop.i3.extraKeybindings = lib.mkIf i3Cfg.enable {
|
samfelag.modules.desktop.i3.extraKeybindings = lib.mkIf i3Cfg.enable {
|
||||||
"${i3Cfg.mod}+Control+3" = "exec ${pkgs.firefox}/bin/firefox";
|
"${i3Cfg.mod}+Shift+i" = "exec ${pkgs.firefox}/bin/firefox";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ in
|
|||||||
];
|
];
|
||||||
|
|
||||||
samfelag.modules.desktop.i3.extraKeybindings = lib.mkIf i3Cfg.enable {
|
samfelag.modules.desktop.i3.extraKeybindings = lib.mkIf i3Cfg.enable {
|
||||||
"${i3Cfg.mod}+Control+0" = "exec ${pkgs.spotify}/bin/spotify";
|
"${i3Cfg.mod}+Shift+m" = "exec ${pkgs.spotify}/bin/spotify";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,6 +3,9 @@
|
|||||||
with lib;
|
with lib;
|
||||||
let
|
let
|
||||||
cfg = config.samfelag.modules.editors.emacs;
|
cfg = config.samfelag.modules.editors.emacs;
|
||||||
|
i3Cfg = config.samfelag.modules.desktop.i3;
|
||||||
|
emacsWithPackages = with pkgs; ((emacsPackagesFor emacsNativeComp).emacsWithPackages
|
||||||
|
(epkgs: [epkgs.vterm]));
|
||||||
in {
|
in {
|
||||||
options.samfelag.modules.editors.emacs = {
|
options.samfelag.modules.editors.emacs = {
|
||||||
enable = mkEnableOption "emacs";
|
enable = mkEnableOption "emacs";
|
||||||
@@ -33,8 +36,8 @@ in {
|
|||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
## Emacs itself
|
## Emacs itself
|
||||||
binutils
|
binutils
|
||||||
((emacsPackagesFor emacsNativeComp).emacsWithPackages
|
emacsWithPackages
|
||||||
(epkgs: [ epkgs.vterm ]))
|
|
||||||
# emacsPgtkGcc
|
# emacsPgtkGcc
|
||||||
|
|
||||||
## Doom dependencies
|
## Doom dependencies
|
||||||
@@ -107,5 +110,9 @@ in {
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
samfelag.modules.desktop.i3.extraKeybindings = lib.mkIf i3Cfg.enable {
|
||||||
|
"${i3Cfg.mod}+Shift+e" = "exec ${emacsWithPackages}/bin/emacs";
|
||||||
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ with lib.my;
|
|||||||
config = {
|
config = {
|
||||||
user = {
|
user = {
|
||||||
description = "The primary user account";
|
description = "The primary user account";
|
||||||
extraGroups = [ "wheel" ];
|
extraGroups = [ "wheel" "networkmanager" ];
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
home = "/home/${config.user.name}";
|
home = "/home/${config.user.name}";
|
||||||
group = "users";
|
group = "users";
|
||||||
|
|||||||
Reference in New Issue
Block a user