home/natto: add fcitx and misc changes

Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
2023-01-23 15:43:52 +05:30
parent de2688145e
commit 969eb05a7a
7 changed files with 28 additions and 15 deletions

1
.gitattributes vendored Normal file
View File

@@ -0,0 +1 @@
flake.lock linguist-generated

View File

@@ -5,6 +5,7 @@
modules = [ modules = [
./natto ./natto
./modules/secret.nix ./modules/secret.nix
inputs.hyprland.homeManagerModules.default
]; ];
pkgs = self.legacyPackages.x86_64-linux; pkgs = self.legacyPackages.x86_64-linux;
extraSpecialArgs = { extraSpecialArgs = {

View File

@@ -263,6 +263,8 @@ For autocomplete
(use-package rustic) (use-package rustic)
(use-package wgsl-mode)
(use-package nix-mode (use-package nix-mode
:mode "\\.nix\\'") :mode "\\.nix\\'")
(add-to-list 'lsp-language-id-configuration '(nix-mode . "nix")) (add-to-list 'lsp-language-id-configuration '(nix-mode . "nix"))

View File

@@ -28,7 +28,7 @@ urgentWinColor = "#dc322f"
miscColor = inactiveWinColor miscColor = inactiveWinColor
myBorderWidth = 2 myBorderWidth = 2
myTerminal = "/usr/bin/env st" myTerminal = "st"
myFocusFollowsMouse = True myFocusFollowsMouse = True
myNormalBorderColor = bgColor myNormalBorderColor = bgColor
myModMask = mod4Mask myModMask = mod4Mask
@@ -57,9 +57,6 @@ myKeys conf@(XConfig {XMonad.modMask = modMask}) = M.fromList $
, ((modMask, xK_d), , ((modMask, xK_d),
spawn "dmenu_run -l 20") spawn "dmenu_run -l 20")
, ((shiftMask .|. mod1Mask, xK_v),
spawn "clipmenu")
, ((modMask, xK_s), , ((modMask, xK_s),
spawn "dmenu_websearch") spawn "dmenu_websearch")
@@ -111,7 +108,7 @@ myKeys conf@(XConfig {XMonad.modMask = modMask}) = M.fromList $
spawn "light -U 5") spawn "light -U 5")
, ((modMask .|. shiftMask, xK_F1), , ((modMask .|. shiftMask, xK_F1),
spawn "setxkbmap us-colemak") spawn "setxkbmap us colemak_dh")
, ((modMask .|. shiftMask, xK_F2), , ((modMask .|. shiftMask, xK_F2),
spawn "setxkbmap us basic") spawn "setxkbmap us basic")
@@ -122,6 +119,9 @@ myKeys conf@(XConfig {XMonad.modMask = modMask}) = M.fromList $
, ((modMask .|. shiftMask, xK_F4), , ((modMask .|. shiftMask, xK_F4),
spawn "setxkbmap in guru") spawn "setxkbmap in guru")
, ((modMask .|. shiftMask, xK_F5),
spawn "setxkbmap colemak dhz")
, ((modMask, xK_space), , ((modMask, xK_space),
sendMessage NextLayout) sendMessage NextLayout)

View File

@@ -3,7 +3,7 @@ let
mymacs = config: # with inputs.emacs-overlay.packages.${pkgs.system}; already resolved with overlay mymacs = config: # with inputs.emacs-overlay.packages.${pkgs.system}; already resolved with overlay
with pkgs; emacsWithPackagesFromUsePackage { with pkgs; emacsWithPackagesFromUsePackage {
inherit config; inherit config;
package = emacsNativeComp; package = emacsGit;
alwaysEnsure = true; alwaysEnsure = true;
alwaysTangle = true; alwaysTangle = true;
extraEmacsPackages = epkgs: with epkgs; [ extraEmacsPackages = epkgs: with epkgs; [

View File

@@ -4,7 +4,6 @@
# A/V, codec and media stuff # A/V, codec and media stuff
ffmpeg-full ffmpeg-full
sox
pamixer pamixer
mpdas mpdas
mpv mpv
@@ -12,9 +11,7 @@
pulseaudio pulseaudio
pavucontrol pavucontrol
spotify spotify
noisetorch
imagemagick imagemagick
(qjackctl.override { jackSession = true; })
# Utils # Utils
rage rage
@@ -30,7 +27,6 @@
xorg.xmodmap xorg.xmodmap
p7zip p7zip
unrar unrar
glxinfo
sxiv sxiv
vim vim
jmtpfs jmtpfs
@@ -39,9 +35,9 @@
(inputs.nbfc.packages.${pkgs.system}.nbfc-client-c) (inputs.nbfc.packages.${pkgs.system}.nbfc-client-c)
(flake.packages.${pkgs.system}.customscripts) (flake.packages.${pkgs.system}.customscripts)
translate-shell translate-shell
w3m
powertop powertop
cachix cachix
undervolt
# GUI utils # GUI utils
(xfce.thunar.override { (xfce.thunar.override {
@@ -66,17 +62,13 @@
arc-theme arc-theme
arc-icon-theme arc-icon-theme
authy authy
calibre
gnome.zenity gnome.zenity
stalonetray stalonetray
obs-studio
# Wine and games and stuff # Wine and games and stuff
steam steam
wineWowPackages.stable wineWowPackages.stable
winetricks winetricks
citra
yuzu
# (inputs.nix-gaming.packages.${pkgs.system}.osu-stable) # (inputs.nix-gaming.packages.${pkgs.system}.osu-stable)
(flake.packages.${pkgs.system}.tlauncher) (flake.packages.${pkgs.system}.tlauncher)
mangohud mangohud

View File

@@ -9,7 +9,16 @@
LV2_PATH = lib.makeSearchPath "lib/lv2" (with pkgs; [ calf ]); LV2_PATH = lib.makeSearchPath "lib/lv2" (with pkgs; [ calf ]);
TERM = "st-24bits"; TERM = "st-24bits";
QT_QPA_PLATFORMTHEME = "gtk2"; QT_QPA_PLATFORMTHEME = "gtk2";
QT_X11_NO_MITSHM = "1";
HM_CONF_DIR = "/etc/nixos";
}; };
shellAliases = rec {
ec = "emacsclient";
ecc = ec + " -c";
ecnw = ec + " -nw";
};
file = with config; { file = with config; {
stalonetray = { stalonetray = {
source = ./config/stalonetrayrc; source = ./config/stalonetrayrc;
@@ -35,4 +44,12 @@
}; };
}; };
}; };
i18n = {
inputMethod = {
# enabled = "fcitx5";
# fcitx5.addons = with pkgs; [ fcitx5-m17n fcitx5-mozc ];
enabled = "fcitx";
fcitx.engines = with pkgs.fcitx-engines; [ m17n mozc ];
};
};
} }