Add fcitx, Nord Qt and lightdm, abstracted ~/.bashrc
This commit is contained in:
parent
527b75331d
commit
b808c6d94c
3 changed files with 59 additions and 29 deletions
|
@ -1,5 +1,9 @@
|
|||
{ config, pkgs, user, ... }:
|
||||
|
||||
let
|
||||
theme = pkgs.nordic;
|
||||
themeName = "Nordic";
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
../vim.nix
|
||||
|
@ -17,12 +21,12 @@
|
|||
gtk = {
|
||||
enable = true;
|
||||
iconTheme = {
|
||||
name = "Nordic";
|
||||
package = pkgs.nordic;
|
||||
name = "${themeName}";
|
||||
package = "${theme}";
|
||||
};
|
||||
theme = {
|
||||
name = "Nordic";
|
||||
package = pkgs.nordic;
|
||||
name = "${themeName}";
|
||||
package = "${theme}";
|
||||
};
|
||||
gtk3.extraConfig = {
|
||||
# Remove minimize, maximize, and close buttons
|
||||
|
@ -30,6 +34,17 @@
|
|||
};
|
||||
};
|
||||
|
||||
qt = {
|
||||
enable = true;
|
||||
platformTheme = "gtk";
|
||||
};
|
||||
|
||||
i18n.inputMethod = {
|
||||
enabled = "fcitx5";
|
||||
# Commented out, not working
|
||||
# fcitx.engines = with pkgs.fcitx-engines; [ anthy ];
|
||||
};
|
||||
|
||||
home = {
|
||||
username = "${user}";
|
||||
homeDirectory = "/home/${user}";
|
||||
|
@ -47,16 +62,36 @@
|
|||
firefox
|
||||
discord
|
||||
gnome.nautilus
|
||||
];
|
||||
|
||||
file = {
|
||||
".bashrc" = {
|
||||
source = ../.bashrc;
|
||||
};
|
||||
};
|
||||
# Configuration applications
|
||||
fcitx5-configtool
|
||||
];
|
||||
|
||||
sessionVariables = {
|
||||
EDITOR = "vim";
|
||||
GTK_IM_MDOULE = "fcitx";
|
||||
QT_IM_MODULE = "fcitx";
|
||||
XMODIFIERS = "@im=fcitx";
|
||||
GLFW_IM_MODULE = "ibus"; # IME support in anthy
|
||||
};
|
||||
};
|
||||
|
||||
programs.bash = {
|
||||
enable = true;
|
||||
shellAliases = {
|
||||
g = "git";
|
||||
ga = "g add";
|
||||
gc = "g commit -m ";
|
||||
gu = "ga . && gc";
|
||||
gs = "g status";
|
||||
gi = "g init";
|
||||
gp = "g push";
|
||||
gf = "g pull";
|
||||
gC = "g clone";
|
||||
goops = "g reset --soft HEAD^";
|
||||
|
||||
v = "vim";
|
||||
rm = "trash-put";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue