Add fcitx, Nord Qt and lightdm, abstracted ~/.bashrc

inky
Elnu 2 years ago
parent 527b75331d
commit b808c6d94c

@ -1,15 +0,0 @@
alias v=`which vim`
git=`which git`
alias g=$git
alias ga="$git add"
alias gc="$git commit -m"
alias gu="ga . && gc" # u for update
alias gs="$git status"
alias gi="$git init"
alias gp="$git push"
alias gf="$git pull" # f for fetch
alias gC="$git clone"
alias goops="$git reset --soft HEAD^"
alias rm="trash-put"

@ -7,15 +7,22 @@
xserver = { xserver = {
enable = true; enable = true;
libinput = { libinput = {
enable = true; enable = true; touchpad = { naturalScrolling = true;
touchpad = {
naturalScrolling = true;
tapping = true; tapping = true;
}; };
}; };
xkbOptions = "caps:escape"; xkbOptions = "caps:escape";
displayManager = { displayManager = {
lightdm.enable = true; lightdm = {
enable = true;
greeters.gtk = {
enable = true;
theme = {
name = "Nordic";
package = pkgs.nordic;
};
};
};
autoLogin = { autoLogin = {
enable = true; enable = true;
user = "elnu"; user = "elnu";
@ -29,6 +36,9 @@
}; };
}; };
# To prevent `Unit dconf.service not found.` after theming GTK in HM
programs.dconf.enable = true;
sound.enable = true; sound.enable = true;
hardware.pulseaudio.enable = true; hardware.pulseaudio.enable = true;
nixpkgs.config.pulseaudio = true; nixpkgs.config.pulseaudio = true;

@ -1,5 +1,9 @@
{ config, pkgs, user, ... }: { config, pkgs, user, ... }:
let
theme = pkgs.nordic;
themeName = "Nordic";
in
{ {
imports = [ imports = [
../vim.nix ../vim.nix
@ -17,12 +21,12 @@
gtk = { gtk = {
enable = true; enable = true;
iconTheme = { iconTheme = {
name = "Nordic"; name = "${themeName}";
package = pkgs.nordic; package = "${theme}";
}; };
theme = { theme = {
name = "Nordic"; name = "${themeName}";
package = pkgs.nordic; package = "${theme}";
}; };
gtk3.extraConfig = { gtk3.extraConfig = {
# Remove minimize, maximize, and close buttons # 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 = { home = {
username = "${user}"; username = "${user}";
homeDirectory = "/home/${user}"; homeDirectory = "/home/${user}";
@ -47,16 +62,36 @@
firefox firefox
discord discord
gnome.nautilus gnome.nautilus
];
file = { # Configuration applications
".bashrc" = { fcitx5-configtool
source = ../.bashrc; ];
};
};
sessionVariables = { sessionVariables = {
EDITOR = "vim"; 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…
Cancel
Save