1
0
Fork 0

feat: Move kmscon config to options

This commit is contained in:
lwad 2024-03-26 22:45:13 +00:00
parent 09cfd67dc8
commit f1cdfa9d32
6 changed files with 25 additions and 24 deletions

View File

@ -68,7 +68,6 @@ in {
xsession.numlock.enable = true;
};
imports = [
./programs/wireshark.nix
../lwad
];
lwad = {

View File

@ -1,20 +0,0 @@
{ pkgs, ... }:
{
services.kmscon = {
enable = true;
extraConfig = ''
xkb-layout=gb
xkb-options=caps:escape
'';
fonts = [{
name = "FiraCode Nerd Font";
package = (pkgs.nerdfonts.override { fonts = [ "FiraCode" ]; });
}];
hwRender = true;
};
programs.tmux.extraConfig = ''
bind -n m-k run-shell -b "light -A 1"
bind -n m-j run-shell -b "light -U 1"
'';
}

View File

@ -6,6 +6,7 @@
./git.nix
./i3
./imunes.nix
./kmscon.nix
./librewolf.nix
./neovim
./task.nix

View File

@ -0,0 +1,23 @@
{ config, lib, pkgs, ... }:
with lib; {
options.lwad.applications.kmscon.enable = mkEnableOption "kmscon";
config = mkIf config.lwad.applications.kmscon.enable {
services.kmscon = {
enable = true;
extraConfig = ''
xkb-layout=gb
xkb-options=caps:escape
'';
fonts = [{
name = "FiraCode Nerd Font";
package = (pkgs.nerdfonts.override { fonts = [ "FiraCode" ]; });
}];
hwRender = true;
};
programs.tmux.extraConfig = mkIf config.lwad.utilities.terminal.enable ''
bind -n m-k run-shell -b "light -A 1"
bind -n m-j run-shell -b "light -U 1"
'';
};
}

View File

@ -31,7 +31,6 @@
};
imports = [
../components/desktop-environment.nix
../components/programs/kmscon.nix
../lwad
./hardware-configuration.nix
];

View File

@ -6,8 +6,7 @@
home.stateVersion = "22.11";
services.cbatticon.enable = true;
};
imports =
[ ./hardware-configuration.nix ../components/programs/kmscon.nix ../lwad ];
imports = [ ./hardware-configuration.nix ../lwad ];
lwad = {
applications.i3 = {
audioControls = {