Skip to content

Commit df9d453

Browse files
committed
rm qmk, via, virtualbox, xkb
1 parent 077f651 commit df9d453

File tree

2 files changed

+2
-76
lines changed

2 files changed

+2
-76
lines changed

nix/configuration.nix

Lines changed: 0 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@
88
fj = import ./firejail.nix;
99
dns = ["8.8.8.8" "8.8.4.4"];
1010
unst = import ./nixpkgs-unstable.nix;
11-
vkdoom = import ./vkdoom.nix {inherit pkgs;};
12-
# xkb = pkgs.writeText "xkb-layout" (builtins.readFile ./../cfg/.Xmodmap);
13-
# yewtube = import ./yewtube.nix;
14-
qmk-setup = import ./qmk-setup.nix;
1511
lockCmd = "${pkgs.swaylock}/bin/swaylock --color=000000";
1612
home-manager = builtins.fetchTarball {
1713
url = "https://github.com/nix-community/home-manager/archive/8d5e27b4807d25308dfe369d5a923d87e7dbfda3.tar.gz";
@@ -279,9 +275,6 @@
279275
in {
280276
imports =
281277
[
282-
# (import "${nixos-hardware}/common/cpu/intel")
283-
# (import "${nixos-hardware}/common/pc/laptop")
284-
# (import "${nixos-hardware}/common/pc/laptop/ssd")
285278
(import "${home-manager}/nixos")
286279
(import ./rigtora.nix)
287280
]
@@ -538,11 +531,6 @@ in {
538531
};
539532
};
540533

541-
#
542-
# Keyboards
543-
#
544-
hardware.keyboard.qmk.enable = true;
545-
546534
#
547535
# TODO : remove when this is fixed
548536
# https://github.com/NixOS/nixpkgs/issues/180175
@@ -558,53 +546,8 @@ in {
558546
package = kmonad-pkg;
559547
keyboards.miniM = mkTkl "/dev/input/by-id/usb-Unicomp_Inc_U_AP1_4_87k_Kbrd_v7_57-event-kbd";
560548
keyboards.k995p = mk100 "/dev/input/by-id/usb-CATEX_TECH._104EC-XRGB_CA2017090001-event-kbd";
561-
keyboards.maxfit61 = mk60p "/dev/input/by-id/usb-FANTECH_MAXFIT61_Mechanical_Keyboard-event-kbd";
562549
keyboards.feker80 = mkAlice "/dev/input/by-id/usb-Telink_FEKER_Alice80-event-kbd";
563550
keyboards.aks068 = mkAlice "/dev/input/by-id/usb-RDR_AKS068-event-kbd";
564-
keyboards.md600 = {
565-
device = "/dev/input/by-id/usb-Mistel_MD600-event-kbd";
566-
defcfg = {
567-
enable = true;
568-
fallthrough = true;
569-
allowCommands = false;
570-
};
571-
config = ''
572-
(defalias
573-
fst (layer-toggle fst-layer)
574-
snd (layer-toggle snd-layer)
575-
til (around lsft grv)
576-
ltab (around lsft tab)
577-
)
578-
(defsrc
579-
esc 1 2 3 4 5 6 7 8 9 0 - = bspc
580-
tab q w e r t y u i o p [ ] \
581-
caps a s d f g h j k l ; ' ret
582-
lsft z x c v b n m , . / rsft
583-
lctl lmet lalt spc spc ralt rctl
584-
)
585-
(deflayer qwerty
586-
_ _ _ _ _ _ _ _ _ _ _ _ _ _
587-
esc _ _ _ _ _ _ _ _ _ _ _ _ _
588-
@fst _ _ _ _ _ _ _ _ _ _ _ _
589-
_ _ _ _ _ _ _ _ _ _ _ ret
590-
_ _ _ _ _ _ _
591-
)
592-
(deflayer fst-layer
593-
_ f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12 _
594-
@snd _ _ _ _ _ _ _ _ _ _ _ _ grv
595-
_ _ _ slck _ _ lft down up rght _ _ _
596-
_ _ _ _ _ _ _ _ _ _ _ _
597-
_ _ ralt tab tab _ _
598-
)
599-
(deflayer snd-layer
600-
_ brdn bru _ _ _ _ prev pp next mute vold volu _
601-
_ _ _ _ _ _ _ _ _ _ _ _ _ @til
602-
_ _ _ _ _ _ home pgdn pgup end _ _ _
603-
_ _ _ _ _ _ _ _ _ _ _ _
604-
_ _ _ @ltab @ltab _ _
605-
)
606-
'';
607-
};
608551
keyboards.a275 = {
609552
device = "/dev/input/by-path/platform-i8042-serio-0-event-kbd";
610553
defcfg = {
@@ -667,21 +610,18 @@ in {
667610
services.tor.enable = true;
668611
hardware.sane.enable = true;
669612
hardware.sane.extraBackends = [pkgs.hplip];
670-
# hardware.sane.extraBackends = [pkgs.sane-airscan];
671613
services.ipp-usb.enable = true;
672614
services.printing.enable = true;
673615
services.printing.drivers = [pkgs.hplip];
674616
services.fail2ban.enable = true;
675617
services.tor.client.enable = true;
676618
networking.firewall.enable = true;
677619
networking.nameservers = dns;
678-
virtualisation.virtualbox.host.enable = true;
679620
virtualisation.containers.enable = true;
680621
virtualisation.podman.enable = true;
681622
virtualisation.podman.dockerCompat = true;
682623
virtualisation.podman.dockerSocket.enable = true;
683624
virtualisation.podman.defaultNetwork.settings.dns_enabled = true;
684-
users.extraGroups.vboxusers.members = [config.services.functora.userName];
685625
networking.extraHosts = blocked-hosts;
686626

687627
users.groups.plugdev = {};
@@ -827,8 +767,6 @@ in {
827767
tor-browser-bundle-bin
828768
kooha
829769
mpv
830-
qmk
831-
qmk-setup
832770
# cura
833771
git-lfs
834772
lesspass-cli
@@ -838,9 +776,6 @@ in {
838776
# quickget macos monterey
839777
# quickemu --vm macos-monterey.conf --public-dir ./Public --extra_args "-cpu host,+vmx"
840778
quickemu
841-
pavucontrol
842-
via
843-
vial
844779
usbutils
845780
simple-scan
846781
system-config-printer
@@ -889,10 +824,6 @@ in {
889824
".config/qutebrowser/blocked-hosts".text = blocked-hosts;
890825
".config/mps-youtube/config.json".source = ../cfg/yewtube.json;
891826
".config/warpd/config".source = ../cfg/warpd.txt;
892-
# ".xkb" = {
893-
# source = ./xkb;
894-
# recursive = true;
895-
# };
896827
".config/nvim/coc-settings.json".source = ../cfg/coc-settings.json;
897828
};
898829
programs.i3status-rust = {
@@ -1111,13 +1042,6 @@ in {
11111042
seat = {"*" = {hide_cursor = "2000";};};
11121043
input = {
11131044
"*" = {
1114-
#
1115-
# NOTE : Moved from xkb to kmonad
1116-
# for better cross-system compatibility.
1117-
# Also can add 'compose:ralt' option if
1118-
# advanced symbol composition is needed.
1119-
#
1120-
# xkb_file = "~/.xkb/keymap/custom";
11211045
xkb_layout = "us,ru";
11221046
xkb_variant = "altgr-intl,";
11231047
xkb_options = "grp:sclk_toggle";

nix/misc.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ in
101101
mkOci = {
102102
srv,
103103
img,
104+
env ? {},
104105
cfg ? [],
105106
mnt ? [],
106107
}: {
@@ -129,6 +130,7 @@ in
129130
# TODO : remove after bugfix https://github.com/NixOS/nixpkgs/issues/272480
130131
#
131132
extraOptions = ["--network=host"];
133+
environment = env;
132134
volumes =
133135
(map (x: x + ":" + x + ":ro") cfg)
134136
++ (map (x: x + ":" + x) mnt);

0 commit comments

Comments
 (0)