2023-05-10 04:31:23 +02:00
|
|
|
{ config, lib, nixpkgs, home-manager, hyprland, ... }: {
|
2023-05-09 20:03:54 +02:00
|
|
|
imports = [ home-manager.nixosModule ];
|
|
|
|
home-manager.users.user = { pkgs, ... }: {
|
2023-05-11 18:38:42 +02:00
|
|
|
xdg = { userDirs = { enable = true; }; };
|
2023-05-10 18:52:01 +02:00
|
|
|
home.file.".icons/default/index.theme".text = ''
|
|
|
|
[icon theme]
|
|
|
|
Inherits=phinger-cursors
|
|
|
|
'';
|
|
|
|
xresources.properties = {
|
|
|
|
"Xft.hinting" = true;
|
|
|
|
"Xft.antialias" = true;
|
|
|
|
"Xft.autohint" = false;
|
|
|
|
"Xft.lcdfilter" = "lcddefault";
|
|
|
|
"Xft.hintstyle" = "hintfull";
|
|
|
|
"Xft.rgba" = "rgb";
|
|
|
|
};
|
2023-05-10 18:52:23 +02:00
|
|
|
xdg.configFile."xfce4/helpers.rc".text = ''
|
|
|
|
TerminalEmulator=kitty
|
|
|
|
TerminalEmulatorDismissed=true
|
|
|
|
'';
|
2023-05-11 13:30:41 +02:00
|
|
|
xdg.configFile."mozc/ibus_config.textproto".text = ''
|
|
|
|
engines {
|
|
|
|
name : "mozc-jp"
|
|
|
|
longname : "Mozc"
|
|
|
|
layout : "default"
|
|
|
|
layout_variant : ""
|
|
|
|
layout_option : ""
|
|
|
|
rank : 80
|
|
|
|
}
|
|
|
|
active_on_launch: True
|
|
|
|
'';
|
2023-05-11 18:38:42 +02:00
|
|
|
xdg.configFile."ranger/rc.conf".text = ''
|
|
|
|
set line_numbers absolute
|
|
|
|
set padding_right false
|
|
|
|
set vcs_aware true
|
|
|
|
set show_hidden true
|
|
|
|
set confirm_on_delete always
|
|
|
|
set save_console_history false
|
|
|
|
set mouse_enabled false
|
|
|
|
set tilde_in_titlebar true
|
|
|
|
|
|
|
|
alias r rename
|
|
|
|
alias d delete
|
|
|
|
|
|
|
|
map DD shell trash %s
|
|
|
|
|
|
|
|
set use_preview_script true
|
|
|
|
set preview_files true
|
|
|
|
set preview_images true
|
|
|
|
set preview_images_method kitty
|
|
|
|
'';
|
2023-05-10 19:51:05 +02:00
|
|
|
gtk = {
|
|
|
|
enable = true;
|
|
|
|
cursorTheme = {
|
|
|
|
package = pkgs.phinger-cursors;
|
|
|
|
name = "phinger-cursors";
|
|
|
|
};
|
|
|
|
gtk3.extraConfig = {
|
|
|
|
gtk-decoration-layout = "menu:";
|
|
|
|
gtk-xft-antialias = 1;
|
|
|
|
gtk-xft-hinting = 1;
|
|
|
|
gtk-xft-hintstyle = "hintfull";
|
|
|
|
gtk-xft-rgba = "rgb";
|
|
|
|
gtk-recent-files-enabled = false;
|
|
|
|
};
|
|
|
|
iconTheme = {
|
|
|
|
package = pkgs.fluent-icon-theme;
|
|
|
|
name = "Fluent";
|
|
|
|
};
|
|
|
|
};
|
2023-05-09 20:03:54 +02:00
|
|
|
programs.kitty = {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
|
|
|
enable_audio_bell = false;
|
|
|
|
allow_remote_control = true;
|
|
|
|
dynamic_background_opacity = true;
|
2023-05-10 18:50:13 +02:00
|
|
|
background_opacity = "0.95";
|
2023-05-09 20:03:54 +02:00
|
|
|
close_on_child_death = true;
|
2023-05-10 18:50:13 +02:00
|
|
|
cursor_blink_interval = 0;
|
|
|
|
wayland_titlebar_color = "background";
|
|
|
|
listen_on = "unix:/tmp/kitty";
|
|
|
|
open_url_with = "librewolf";
|
2023-05-11 18:38:42 +02:00
|
|
|
window_padding_width = 5;
|
|
|
|
tab_bar_margin_width = 5;
|
2023-05-09 20:03:54 +02:00
|
|
|
};
|
|
|
|
};
|
2023-05-10 18:50:13 +02:00
|
|
|
xdg.configFile."kitty/diff.conf".text = ''
|
|
|
|
map d scroll_to next-page
|
|
|
|
map u scroll_to prev-page
|
|
|
|
map g scroll_to start
|
|
|
|
map G scroll_to end
|
|
|
|
'';
|
2023-05-11 13:30:41 +02:00
|
|
|
programs.bat = { enable = true; };
|
2023-05-09 20:03:54 +02:00
|
|
|
programs.swaylock = {
|
|
|
|
package = pkgs."swaylock-effects";
|
|
|
|
settings = {
|
|
|
|
show-keyboard-layout = true;
|
|
|
|
daemonize = true;
|
|
|
|
effect-blur = "5x2";
|
|
|
|
clock = true;
|
|
|
|
indicator = true;
|
|
|
|
font-size = 25;
|
|
|
|
indicator-radius = 85;
|
|
|
|
indicator-thickness = 16;
|
|
|
|
screenshots = true;
|
|
|
|
fade-in = 1;
|
|
|
|
};
|
|
|
|
};
|
2023-05-10 18:52:58 +02:00
|
|
|
services.dunst = {
|
|
|
|
enable = true;
|
2023-05-11 06:29:03 +02:00
|
|
|
settings = {
|
|
|
|
global = {
|
|
|
|
geometry = "1870x5-25+45";
|
|
|
|
width = 350;
|
|
|
|
separator_height = 5;
|
|
|
|
padding = 24;
|
|
|
|
horizontal_padding = 24;
|
|
|
|
frame_width = 3;
|
|
|
|
idle_threshold = 120;
|
|
|
|
alignment = "center";
|
|
|
|
word_wrap = "yes";
|
|
|
|
transparency = 5;
|
|
|
|
format = "<b>%s</b>: %b";
|
|
|
|
markup = "full";
|
|
|
|
min_icon_size = 128;
|
|
|
|
max_icon_size = 128;
|
|
|
|
};
|
|
|
|
};
|
2023-05-10 18:52:58 +02:00
|
|
|
};
|
2023-05-09 20:03:54 +02:00
|
|
|
programs.waybar = {
|
|
|
|
enable = true;
|
2023-05-10 04:31:23 +02:00
|
|
|
package = hyprland.packages."x86_64-linux".waybar-hyprland;
|
2023-05-09 20:03:54 +02:00
|
|
|
settings = {
|
|
|
|
mainBar = {
|
|
|
|
layer = "bottom";
|
|
|
|
position = "top";
|
|
|
|
height = 30;
|
2023-05-11 18:38:42 +02:00
|
|
|
modules-left = [ "hyprland/window" ];
|
|
|
|
modules-center = [ "wlr/workspaces" ];
|
|
|
|
modules-right =
|
|
|
|
[ "tray" "wireplumber" "backlight" "battery" "clock" ];
|
2023-05-09 20:03:54 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2023-05-10 17:41:46 +02:00
|
|
|
programs.zathura = {
|
|
|
|
enable = true;
|
|
|
|
options = {
|
|
|
|
guioptions = "v";
|
|
|
|
adjust-open = "width";
|
|
|
|
statusbar-basename = true;
|
|
|
|
render-loading = false;
|
|
|
|
scroll-step = 120;
|
|
|
|
};
|
|
|
|
};
|
2023-05-11 06:45:04 +02:00
|
|
|
programs.feh = {
|
2023-05-10 19:51:21 +02:00
|
|
|
enable = true;
|
2023-05-11 06:45:04 +02:00
|
|
|
keybindings = {
|
|
|
|
toggle_actions = null;
|
|
|
|
toggle_aliasing = null;
|
|
|
|
toggle_caption = null;
|
|
|
|
toggle_filenames = "d";
|
|
|
|
toggle_exif = null;
|
|
|
|
save_filelist = null;
|
|
|
|
toggle_fixed_geometry = "g";
|
|
|
|
toggle_pause = "h";
|
|
|
|
toggle_info = null;
|
|
|
|
toggle_keep_vp = null;
|
|
|
|
toggle_menu = null;
|
|
|
|
next_img = [ "k" "Right" ];
|
|
|
|
toggle_pointer = "a";
|
|
|
|
prev_img = [ "j" "Left" ];
|
|
|
|
quit = "q";
|
|
|
|
reload_image = null;
|
|
|
|
save_image = null;
|
|
|
|
toggle_fullscreen = "f";
|
|
|
|
size_to_image = "w";
|
|
|
|
close = null;
|
|
|
|
jump_random = "z";
|
|
|
|
prev_dir = null;
|
|
|
|
next_dir = null;
|
|
|
|
orient_3 = null;
|
|
|
|
orient_1 = null;
|
|
|
|
flip = null;
|
|
|
|
mirror = null;
|
|
|
|
action_0 = null;
|
|
|
|
action_1 = null;
|
|
|
|
action_2 = null;
|
|
|
|
action_3 = null;
|
|
|
|
action_4 = null;
|
|
|
|
action_5 = null;
|
|
|
|
action_6 = null;
|
|
|
|
action_7 = null;
|
|
|
|
action_8 = null;
|
|
|
|
action_9 = null;
|
|
|
|
jump_first = "J";
|
|
|
|
jump_last = "K";
|
|
|
|
jump_fwd = "H";
|
|
|
|
jump_back = "L";
|
|
|
|
reload_plus = null;
|
|
|
|
reload_minus = null;
|
|
|
|
remove = null;
|
|
|
|
delete = null;
|
|
|
|
scroll_left = "b";
|
|
|
|
scroll_right = "n";
|
|
|
|
scroll_up = [ "u" "Up" ];
|
|
|
|
scroll_down = [ "d" "Down" ];
|
|
|
|
scroll_left_page = null;
|
|
|
|
scroll_right_page = null;
|
|
|
|
scroll_up_page = null;
|
|
|
|
scroll_down_page = null;
|
|
|
|
render = null;
|
|
|
|
zoom_in = "h";
|
|
|
|
zoom_out = "l";
|
|
|
|
zoom_default = "o";
|
|
|
|
zoom_fit = null;
|
|
|
|
zoom_fill = "p";
|
|
|
|
menu_close = null;
|
|
|
|
menu_up = null;
|
|
|
|
menu_down = null;
|
|
|
|
menu_parent = null;
|
|
|
|
menu_child = null;
|
|
|
|
menu_select = null;
|
|
|
|
toggle_auto_zoom = "m";
|
|
|
|
};
|
2023-05-10 19:51:21 +02:00
|
|
|
};
|
2023-05-11 13:30:41 +02:00
|
|
|
services.mpd = {
|
|
|
|
enable = true;
|
|
|
|
extraConfig = ''
|
|
|
|
auto_update "yes"
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
programs.ncmpcpp = {
|
|
|
|
enable = true;
|
|
|
|
bindings = [
|
|
|
|
{ key = "mouse"; command = "dummy"; }
|
|
|
|
{ key = "h"; command = ["previous_column" "jump_to_parent_directory"]; }
|
|
|
|
{ key = "j"; command = "scroll_down"; }
|
|
|
|
{ key = "k"; command = "scroll_up"; }
|
|
|
|
{ key = "l"; command = [ "next_column" "enter_directory" "play_item"]; }
|
|
|
|
{ key = "H"; command = [ "select_item" "scroll_down"]; }
|
|
|
|
{ key = "J"; command = ["move_sort_order_down" "move_selected_items_down"]; }
|
|
|
|
{ key = "K"; command = ["move_sort_order_up" "move_selected_items_up"]; }
|
|
|
|
{ key = "L"; command = [ "select_item" "scroll_up"]; }
|
|
|
|
{ key = "'"; command = "remove_selection"; }
|
|
|
|
{ key = "ctrl-u"; command = "page_up"; }
|
|
|
|
{ key = "ctrl-d"; command = "page_down"; }
|
|
|
|
{ key = "u"; command = "page_up"; }
|
|
|
|
{ key = "d"; command = "page_down"; }
|
|
|
|
{ key = "n"; command = "next_found_item"; }
|
|
|
|
{ key = "N"; command = "previous_found_item"; }
|
|
|
|
{ key = "t"; command = "next_screen"; }
|
|
|
|
{ key = "g"; command = "move_home"; }
|
|
|
|
{ key = "G"; command = "move_end"; }
|
|
|
|
{ key = "w"; command = "next"; }
|
|
|
|
{ key = "b"; command = "previous"; }
|
|
|
|
{ key = ";"; command = "seek_forward"; }
|
|
|
|
{ key = ","; command = "seek_backward"; }
|
|
|
|
{ key = "f"; command = "apply_filter"; }
|
|
|
|
{ key = "i"; command = "select_item"; }
|
|
|
|
{ key = "x"; command = [ "delete_playlist_items" "delete_browser_items" "delete_stored_playlist" ]; }
|
|
|
|
{ key = "U"; command = "update_database"; }
|
|
|
|
{ key = "m"; command = "add_random_items"; }
|
|
|
|
];
|
2023-05-11 18:38:42 +02:00
|
|
|
settings = {
|
|
|
|
ncmpcpp_directory = "~/.config/ncmpcpp";
|
|
|
|
user_interface = "alternative";
|
|
|
|
autocenter_mode = "yes";
|
|
|
|
allow_for_physical_item_deletion = "no";
|
|
|
|
mouse_support = "no";
|
|
|
|
execute_on_song_change = "~/.config/mpd/mpdnotify";
|
|
|
|
mpd_crossfade_time = 3;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
programs.lf = {
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
services.gpg-agent = {
|
|
|
|
enable = true;
|
|
|
|
pinentryFlavor = "curses";
|
|
|
|
defaultCacheTtl = 43200;
|
|
|
|
maxCacheTtl = 43200;
|
|
|
|
};
|
|
|
|
programs.rofi = {
|
|
|
|
enable = true;
|
|
|
|
package = pkgs.rofi-wayland;
|
|
|
|
cycle = false;
|
|
|
|
extraConfig = {
|
|
|
|
modi = "drun,filebrowser";
|
|
|
|
font = "Noto Sans CJK JP 12";
|
|
|
|
show-icons = true;
|
|
|
|
bw = 0;
|
|
|
|
display-drun = "";
|
|
|
|
display-window = "";
|
|
|
|
display-combi = "";
|
|
|
|
icon-theme = "Papirus";
|
|
|
|
terminal = "kitty";
|
|
|
|
drun-match-fields = "name";
|
|
|
|
drun-display-format = "{name}";
|
|
|
|
me-select-entry = "";
|
|
|
|
me-accept-entry = "MousePrimary";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
programs.gpg = {
|
|
|
|
enable = true;
|
|
|
|
# homedir = "${config.xdg.dataHome}/gnupg"
|
|
|
|
settings = {
|
|
|
|
personal-digest-preferences = "SHA512";
|
|
|
|
cert-digest-algo = "SHA512";
|
|
|
|
cipher-algo = "AES256";
|
|
|
|
default-preference-list = "SHA512 SHA384 SHA256 SHA224 AES256 AES192 AES CAST5 ZLIB BZIP2 ZIP Uncompressed";
|
|
|
|
personal-cipher-preferences = "TWOFISH CAMELLIA256 AES 3DES";
|
|
|
|
throw-keyids = true;
|
|
|
|
keyid-format = "0xlong";
|
|
|
|
with-fingerprint = true;
|
|
|
|
};
|
2023-05-11 13:30:41 +02:00
|
|
|
};
|
2023-05-09 20:03:54 +02:00
|
|
|
};
|
|
|
|
}
|