Compare commits
7 Commits
a2cd4d6ad1
...
3f4212b771
Author | SHA1 | Date |
---|---|---|
Oystein Kristoffer Tveit | 3f4212b771 | |
Oystein Kristoffer Tveit | 96a2a3b3a0 | |
Oystein Kristoffer Tveit | b57028ef20 | |
Oystein Kristoffer Tveit | 8568505299 | |
Oystein Kristoffer Tveit | fb934bf0af | |
Oystein Kristoffer Tveit | db0ec4e425 | |
Oystein Kristoffer Tveit | f3bcaad18b |
|
@ -21,6 +21,7 @@ in {
|
||||||
./programs/ncmpcpp.nix
|
./programs/ncmpcpp.nix
|
||||||
./programs/neovim.nix
|
./programs/neovim.nix
|
||||||
./programs/newsboat
|
./programs/newsboat
|
||||||
|
./programs/taskwarrior.nix
|
||||||
./programs/tmux.nix
|
./programs/tmux.nix
|
||||||
./programs/zsh
|
./programs/zsh
|
||||||
|
|
||||||
|
@ -40,6 +41,7 @@ in {
|
||||||
./programs/zathura.nix
|
./programs/zathura.nix
|
||||||
|
|
||||||
./services/dunst.nix
|
./services/dunst.nix
|
||||||
|
./services/fcitx5.nix
|
||||||
./services/mpd.nix
|
./services/mpd.nix
|
||||||
./services/picom.nix
|
./services/picom.nix
|
||||||
./services/polybar.nix
|
./services/polybar.nix
|
||||||
|
|
|
@ -10,6 +10,8 @@
|
||||||
duf
|
duf
|
||||||
duff
|
duff
|
||||||
ffmpeg
|
ffmpeg
|
||||||
|
file
|
||||||
|
gh-dash
|
||||||
gpg-tui
|
gpg-tui
|
||||||
graphviz
|
graphviz
|
||||||
httpie
|
httpie
|
||||||
|
@ -45,8 +47,6 @@
|
||||||
rsync
|
rsync
|
||||||
# sc-im
|
# sc-im
|
||||||
slack-term
|
slack-term
|
||||||
taskwarrior
|
|
||||||
taskwarrior-tui
|
|
||||||
tea
|
tea
|
||||||
tealdeer
|
tealdeer
|
||||||
terminal-parrot
|
terminal-parrot
|
||||||
|
|
|
@ -12,6 +12,8 @@
|
||||||
signByDefault = true;
|
signByDefault = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
lfs.enable = true;
|
||||||
|
|
||||||
delta = {
|
delta = {
|
||||||
enable = true;
|
enable = true;
|
||||||
options = {
|
options = {
|
||||||
|
|
|
@ -332,12 +332,12 @@
|
||||||
window_border_color = "green";
|
window_border_color = "green";
|
||||||
active_window_border = "red";
|
active_window_border = "red";
|
||||||
|
|
||||||
# visualizer_fifo_path = "/tmp/mpd.fifo";
|
visualizer_fifo_path = "/tmp/mpd.fifo";
|
||||||
# visualizer_output_name = "my_fifo";
|
visualizer_output_name = "Visualizer feed";
|
||||||
# visualizer_sync_interval = "30";
|
visualizer_sync_interval = "30";
|
||||||
# visualizer_in_stereo = "no";
|
visualizer_in_stereo = "no";
|
||||||
# visualizer_type = "spectrum"; # spectrum, ellipse, wave_filled, wave
|
visualizer_type = "spectrum"; # spectrum, ellipse, wave_filled, wave
|
||||||
# visualizer_look = "+█"; # wave | spectrum, ellipse, wave_filled
|
visualizer_look = "+█"; # wave | spectrum, ellipse, wave_filled
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,14 @@
|
||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
programs.taskwarrior = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.taskwarrior3;
|
||||||
|
config = rec {
|
||||||
|
report.minimal.filter = "(status:pending or status:waiting)";
|
||||||
|
report.minimal.labels = "ID,Project,Tags,Description";
|
||||||
|
report.minimal.sort = "project+,id+";
|
||||||
|
|
||||||
|
uda.taskwarrior-tui.task-report.next.filter = report.minimal.filter;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -0,0 +1,115 @@
|
||||||
|
{ pkgs, lib, config, ... }:
|
||||||
|
let
|
||||||
|
im = config.i18n.inputMethod;
|
||||||
|
cfg = im.fcitx5;
|
||||||
|
fcitx5Package = pkgs.libsForQt5.fcitx5-with-addons.override { inherit (cfg) addons; };
|
||||||
|
in
|
||||||
|
{
|
||||||
|
i18n.inputMethod = {
|
||||||
|
enabled = "fcitx5";
|
||||||
|
fcitx5.addons = with pkgs; [
|
||||||
|
fcitx5-mozc
|
||||||
|
fcitx5-gtk
|
||||||
|
# fcitx5-chinese-addons
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
xdg.configFile = let
|
||||||
|
format = pkgs.formats.ini { };
|
||||||
|
in {
|
||||||
|
"fcitx5/profile".source = format.generate "fcitx5-profile" {
|
||||||
|
"Groups/0" = {
|
||||||
|
Name = "Default";
|
||||||
|
"Default Layout" = "us";
|
||||||
|
DefaultIM = "mozc";
|
||||||
|
};
|
||||||
|
"Groups/0/Items/0" = {
|
||||||
|
Name = "keyboard-us";
|
||||||
|
Layout = "";
|
||||||
|
};
|
||||||
|
"Groups/0/Items/1" = {
|
||||||
|
Name = "keyboard-no";
|
||||||
|
Layout = "";
|
||||||
|
};
|
||||||
|
"Groups/0/Items/2" = {
|
||||||
|
Name = "mozc";
|
||||||
|
Layout = "";
|
||||||
|
};
|
||||||
|
GroupOrder = {
|
||||||
|
"0" = "Default";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
"fcitx5/config".source = format.generate "fcitx5-config" {
|
||||||
|
Hotkey = {
|
||||||
|
# Enumerate when press trigger key repeatedly
|
||||||
|
EnumerateWithTriggerKeys = "True";
|
||||||
|
# Temporally switch between first and current Input Method
|
||||||
|
AltTriggerKeys = "";
|
||||||
|
# Enumerate Input Method Forward
|
||||||
|
EnumerateForwardKeys = "";
|
||||||
|
# Enumerate Input Method Backward
|
||||||
|
EnumerateBackwardKeys = "";
|
||||||
|
# Skip first input method while enumerating
|
||||||
|
EnumerateSkipFirst = "False";
|
||||||
|
};
|
||||||
|
|
||||||
|
"Hotkey/TriggerKeys" = {
|
||||||
|
"0" = "Control+space";
|
||||||
|
"1" = "Zenkaku_Hankaku";
|
||||||
|
"2" = "Hangul";
|
||||||
|
};
|
||||||
|
|
||||||
|
"Hotkey/EnumerateGroupForwardKeys"."0" = "Super+space";
|
||||||
|
"Hotkey/EnumerateGroupBackwardKeys"."0" = "Shift+Super+space";
|
||||||
|
"Hotkey/ActivateKeys"."0" = "Hangul_Hanja";
|
||||||
|
"Hotkey/DeactivateKeys"."0" = "Hangul_Romaja";
|
||||||
|
"Hotkey/PrevPage"."0" = "Up";
|
||||||
|
"Hotkey/NextPage"."0" = "Down";
|
||||||
|
"Hotkey/PrevCandidate"."0" = "Shift+Tab";
|
||||||
|
"Hotkey/NextCandidate"."0" = "Tab";
|
||||||
|
"Hotkey/TogglePreedit"."0" = "Control+Alt+P";
|
||||||
|
|
||||||
|
Behaviour = {
|
||||||
|
# Active By Default
|
||||||
|
ActiveByDefault = "False";
|
||||||
|
# Share Input State
|
||||||
|
ShareInputState = "All";
|
||||||
|
# Show preedit in application
|
||||||
|
PreeditEnabledByDefault = "True";
|
||||||
|
# Show Input Method Information when switch input method
|
||||||
|
ShowInputMethodInformation = "True";
|
||||||
|
# Show Input Method Information when changing focus
|
||||||
|
showInputMethodInformationWhenFocusIn = "False";
|
||||||
|
# Show compact input method information
|
||||||
|
CompactInputMethodInformation = "True";
|
||||||
|
# Show first input method information
|
||||||
|
ShowFirstInputMethodInformation = "True";
|
||||||
|
# Default page size
|
||||||
|
DefaultPageSize = 5;
|
||||||
|
# Override Xkb Option
|
||||||
|
OverrideXkbOption = "False";
|
||||||
|
# Custom Xkb Option
|
||||||
|
CustomXkbOption = "";
|
||||||
|
# Force Enabled Addons
|
||||||
|
EnabledAddons = "";
|
||||||
|
# Force Disabled Addons
|
||||||
|
DisabledAddons = "";
|
||||||
|
# Preload input method to be used by default
|
||||||
|
PreloadInputMethod = "True";
|
||||||
|
# Allow input method in the password field
|
||||||
|
AllowInputMethodForPassword = "False";
|
||||||
|
# Show preedit text when typing password
|
||||||
|
ShowPreeditForPassword = "False";
|
||||||
|
# Interval of saving user data in minutes
|
||||||
|
AutoSavePeriod = 30;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
systemd.user.services.fcitx5-daemon = {
|
||||||
|
Service.Restart="on-failure";
|
||||||
|
Service.ExecStart = lib.mkForce "${fcitx5Package}/bin/fcitx5";
|
||||||
|
Service.ExecReload = "/bin/kill -HUP $MAINPID";
|
||||||
|
};
|
||||||
|
}
|
|
@ -4,6 +4,22 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
musicDirectory = config.xdg.userDirs.music;
|
musicDirectory = config.xdg.userDirs.music;
|
||||||
playlistDirectory = "${musicDirectory}/playlists/MPD";
|
playlistDirectory = "${musicDirectory}/playlists/MPD";
|
||||||
|
network.startWhenNeeded = true;
|
||||||
|
|
||||||
|
# TODO: make the path specific to the user unit
|
||||||
|
extraConfig = ''
|
||||||
|
audio_output {
|
||||||
|
type "fifo"
|
||||||
|
name "Visualizer feed"
|
||||||
|
path "/tmp/mpd.fifo"
|
||||||
|
format "44100:16:2"
|
||||||
|
}
|
||||||
|
|
||||||
|
audio_output {
|
||||||
|
type "pulse"
|
||||||
|
name "PulseAudio"
|
||||||
|
}
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -133,11 +133,17 @@ in {
|
||||||
# Systemd related aliases
|
# Systemd related aliases
|
||||||
|
|
||||||
"Systemd Stuff" = {
|
"Systemd Stuff" = {
|
||||||
scr = "sudo systemctl restart";
|
sc = "systemctl";
|
||||||
|
scu = "systemctl --user";
|
||||||
|
|
||||||
scs = "systemctl status";
|
scs = "systemctl status";
|
||||||
|
scus = "systemctl --user status";
|
||||||
|
|
||||||
scc = "systemctl cat";
|
scc = "systemctl cat";
|
||||||
scf = "systemctl list-units --failed";
|
scuc = "systemctl --user cat";
|
||||||
je = "journalctl -eu";
|
|
||||||
|
jeu = "journalctl -eu";
|
||||||
|
jeuu = "journalctl --user -eu";
|
||||||
};
|
};
|
||||||
|
|
||||||
# ░█▀▀░█▀█░█▀▀░▀█▀░█░█░█▀█░█▀▄░█▀▀
|
# ░█▀▀░█▀█░█▀▀░▀█▀░█░█░█▀█░█▀▄░█▀▀
|
||||||
|
|
|
@ -158,54 +158,7 @@ in {
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
i18n = {
|
i18n.defaultLocale = "en_US.UTF-8";
|
||||||
defaultLocale = "en_US.UTF-8";
|
|
||||||
inputMethod = lib.mkIf (!machineVars.headless) {
|
|
||||||
# enabled = "fcitx";
|
|
||||||
# engines = with pkgs.fcitx-engines; [ mozc ];
|
|
||||||
enabled = "fcitx5";
|
|
||||||
fcitx5.addons = with pkgs; [
|
|
||||||
fcitx5-mozc
|
|
||||||
fcitx5-gtk
|
|
||||||
# fcitx5-chinese-addons
|
|
||||||
];
|
|
||||||
|
|
||||||
fcitx5.ignoreUserConfig = true;
|
|
||||||
fcitx5.settings.inputMethod = {
|
|
||||||
"Groups/0" = {
|
|
||||||
"Name" = "Default";
|
|
||||||
"Default Layout" = "ch";
|
|
||||||
"DefaultIM" = "mozc";
|
|
||||||
};
|
|
||||||
"Groups/0/Items/0" = {
|
|
||||||
"Name" = "keybord-us";
|
|
||||||
"Layout" = null;
|
|
||||||
};
|
|
||||||
"Groups/0/Items/1" = {
|
|
||||||
"Name" = "keybord-no";
|
|
||||||
"Layout" = null;
|
|
||||||
};
|
|
||||||
"Groups/0/Items/2" = {
|
|
||||||
"Name" = "mozc";
|
|
||||||
"Layout" = null;
|
|
||||||
};
|
|
||||||
"GroupOrder" = {
|
|
||||||
"0" = "Default";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
systemd.user.services."fcitx5" = lib.mkIf (config.i18n.inputMethod.enabled == "fcitx5") {
|
|
||||||
description = "Fcitx5 IME";
|
|
||||||
wantedBy = [ "graphical.target" ];
|
|
||||||
serviceConfig = {
|
|
||||||
Type = "simple";
|
|
||||||
ExecStart = "${config.i18n.inputMethod.package}/bin/fcitx5";
|
|
||||||
ExecReload = "/bin/kill -HUP $MAINPID";
|
|
||||||
Restart="on-failure";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
environment = {
|
environment = {
|
||||||
variables = {
|
variables = {
|
||||||
|
|
|
@ -9,6 +9,12 @@
|
||||||
./services/stable-diffusion.nix
|
./services/stable-diffusion.nix
|
||||||
./services/tailscale.nix
|
./services/tailscale.nix
|
||||||
./services/keybase.nix
|
./services/keybase.nix
|
||||||
|
boot.binfmt.emulatedSystems = [
|
||||||
|
"x86_64-windows"
|
||||||
|
"aarch64-linux"
|
||||||
|
"armv7l-linux"
|
||||||
|
];
|
||||||
|
|
||||||
nix.settings.system-features = [
|
nix.settings.system-features = [
|
||||||
"kvm"
|
"kvm"
|
||||||
"benchmark"
|
"benchmark"
|
||||||
|
|
Loading…
Reference in New Issue