Added initial files

This commit is contained in:
baduhai 2022-11-29 17:36:21 -03:00
commit 0c97384a8d
20 changed files with 874 additions and 0 deletions

View file

@ -0,0 +1,39 @@
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }:
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "sd_mod" "sdhci_pci" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/2321ee32-a952-4a4b-bba0-bb25f616a4a5";
fsType = "ext4";
};
boot.initrd.luks.devices."luks-008bb7cb-917c-4dda-93fe-542c2285bafb".device = "/dev/disk/by-uuid/008bb7cb-917c-4dda-93fe-542c2285bafb";
fileSystems."/boot/efi" =
{ device = "/dev/disk/by-uuid/36B4-C473";
fsType = "vfat";
};
swapDevices = [ ];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
# still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp0s20f3.useDHCP = lib.mkDefault true;
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}

View file

@ -0,0 +1,53 @@
(defcfg
input (device-file "/dev/input/by-path/platform-i8042-serio-0-event-kbd")
output (uinput-sink "KMonad Virtal Keyboard"
"/run/current-system/sw/bin/sleep 1 && /run/current-system/sw/bin/setxkbmap -option compose:ralt")
cmp-seq ralt
cmp-seq-delay 5
fallthrough true
allow-cmd false
)
(defalias
ovrvw M-w #|Overview button|#
cps (multi-tap 150 rsft caps) #|Caps lock replacement|#
medkey (multi-tap 200 KeyNextSong KeyPreviousSong) #|Play-pause key|#
mute (multi-tap 200 KeyMute M-KeyMute) #|Mute audio and mic|#
#|Handling function key|#
fk (layer-toggle fkeys)
fkk (layer-switch fkeys)
fks (multi-tap 200 @fk @fkk)
fkout (layer-switch default)
fko (multi-tap 200 @fk @fkout)
)
(defsrc
esc f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f13
grv 1 2 3 4 5 6 7 8 9 0 - = bspc
tab q w e r t y u i o p [ ] ret
lmet a s d f g h j k l ; ' \
lsft 102d z x c v b n m , . / rsft
lctl lalt spc ralt rctl up
left down rght
)
(deflayer default
esc KeyBack KeyForward KeyRefresh f11 @ovrvw brdn brup @mute pp @medkey del
grv 1 2 3 4 5 6 7 8 9 0 - = bspc
tab q w e r t y u i o p [ ] ret
lmet a s d f g h j k l ; ' \
lsft @fks z x c v b n m , . / @cps
lctl lalt spc ralt rctl up
left down rght
)
(deflayer fkeys
f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12
_ _ _ _ _ _ _ _ _ kp/ kp* kp- KeyHome _
_ prnt _ _ _ _ _ _ 7 8 9 kp+ pgup _
_ _ _ _ _ _ _ _ 4 5 6 kprt pgdn
_ @fko _ _ _ _ _ _ _ 1 2 3 KeyEnd
_ _ _ 0 . _
_ _ _
)