refactor: gigantic refactor
This commit is contained in:
1 parent
d1e2bde503
commit
0474f7bbb4
50 files changed
+232
-207
No files matched your search
@@ -0,0 +1,18 @@
|
||||
{
|
||||
imports = [
|
||||
./git.nix
|
||||
./firefox.nix
|
||||
./fish.nix
|
||||
./nixvim.nix
|
||||
./hyprland.nix
|
||||
./kitty.nix
|
||||
./rofi
|
||||
];
|
||||
|
||||
home = {
|
||||
username = "leonhard";
|
||||
homeDirectory = "/home/leonhard";
|
||||
};
|
||||
|
||||
xdg.enable = true;
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
{
|
||||
config = lib.mkIf config.nix-leonhard.graphical {
|
||||
programs.firefox.enable = true;
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
{ pkgs, lib, ... }:
|
||||
{
|
||||
programs.fish = {
|
||||
enable = true;
|
||||
interactiveShellInit = ''
|
||||
# no greeting
|
||||
set fish_greeting
|
||||
# vi key binds
|
||||
set -g fish_key_bindings fish_vi_key_bindings
|
||||
# accept completion with ctrl-y
|
||||
bind --mode insert \cy forward-char
|
||||
'';
|
||||
shellAbbrs = {
|
||||
la = "ls -lahH";
|
||||
};
|
||||
plugins = with pkgs.fishPlugins; [
|
||||
{
|
||||
name = "tide";
|
||||
inherit (tide) src;
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
home.activation.configure-tide = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
|
||||
run env XDG_DATA_DIRS="${pkgs.fishPlugins.tide}/share:$XDG_DATA_DIRS" \
|
||||
${pkgs.fish}/bin/fish -c "tide configure --auto \
|
||||
--style=Lean \
|
||||
--prompt_colors='16 colors' \
|
||||
--show_time=No \
|
||||
--lean_prompt_height='Two lines' \
|
||||
--prompt_connection=Disconnected \
|
||||
--prompt_spacing=Compact \
|
||||
--icons='Few icons' \
|
||||
--transient=Yes"
|
||||
'';
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
git-crypt
|
||||
];
|
||||
|
||||
programs.git = {
|
||||
enable = true;
|
||||
settings = {
|
||||
user.name = "Leonhard Kost";
|
||||
user.email = "leonhard.kost@gmail.com";
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,90 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
|
||||
config = lib.mkIf config.nix-leonhard.graphical {
|
||||
home.packages = with pkgs; [ nordzy-cursor-theme ];
|
||||
|
||||
programs.waybar.enable = true;
|
||||
|
||||
wayland.windowManager.hyprland =
|
||||
let
|
||||
# workspaces
|
||||
# binds $mod/alt + [shift +] {1..9} to [move to] workspace {1..9}
|
||||
workspaces = builtins.concatLists (
|
||||
builtins.genList (
|
||||
i:
|
||||
let
|
||||
ws = toString (i + 1);
|
||||
in
|
||||
[
|
||||
"$mod,${ws},workspace,${ws}"
|
||||
"ALT,${ws},workspace,${ws}"
|
||||
"$mod SHIFT,${ws},movetoworkspace,${ws}"
|
||||
"ALTSHIFT,${ws},movetoworkspace,${ws}"
|
||||
]
|
||||
) 9
|
||||
);
|
||||
in
|
||||
{
|
||||
enable = true;
|
||||
package = pkgs.hyprland;
|
||||
|
||||
xwayland.enable = true;
|
||||
|
||||
settings = {
|
||||
env = [
|
||||
"HYPRCURSOR_THEME,Nordzy-cursors"
|
||||
"HYPRCURSOR_SIZE,26"
|
||||
];
|
||||
monitor = [
|
||||
",1920x1080@60,0x0,1"
|
||||
];
|
||||
"$mod" = "SUPER";
|
||||
"$launcher" = "rofi -show drun";
|
||||
bindr = [
|
||||
"$mod,Super_L,exec,pkill rofi || $launcher"
|
||||
];
|
||||
bind = [
|
||||
"ALTSHIFT,Q,killactive,"
|
||||
"ALT,V,togglefloating,"
|
||||
"ALT,F,fullscreen,1"
|
||||
"ALTSHIFT,F,fullscreen,0"
|
||||
"$mod,Return,exec,kitty"
|
||||
"$mod,F,exec,firefox"
|
||||
|
||||
"ALT,H,movefocus,l"
|
||||
"ALT,L,movefocus,r"
|
||||
"ALT,K,movefocus,u"
|
||||
"ALT,J,movefocus,d"
|
||||
"ALTSHIFT,H,movewindow,l"
|
||||
"ALTSHIFT,L,movewindow,r"
|
||||
"ALTSHIFT,K,movewindow,u"
|
||||
"ALTSHIFT,J,movewindow,d"
|
||||
]
|
||||
++ workspaces;
|
||||
|
||||
windowrule = "border_size 0, match:fullscreen_state_client 1";
|
||||
|
||||
general = {
|
||||
gaps_in = 2;
|
||||
gaps_out = 2;
|
||||
"col.active_border" = "0xff888888";
|
||||
};
|
||||
animations.animation = [
|
||||
"windows,1,4,default"
|
||||
"border,1,5,default"
|
||||
"fadeIn,1,5,default"
|
||||
"workspaces,1,3,default"
|
||||
];
|
||||
|
||||
dwindle.force_split = 2;
|
||||
cursor.no_warps = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
config = lib.mkIf config.nix-leonhard.graphical {
|
||||
programs.kitty = {
|
||||
enable = true;
|
||||
themeFile = "tokyo_night_night";
|
||||
font = {
|
||||
package = pkgs.nerd-fonts.jetbrains-mono;
|
||||
name = "JetBrainsMono NF";
|
||||
size = 14;
|
||||
};
|
||||
keybindings = {
|
||||
"ctrl+alt+enter" = "launch --cwd=current";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
self,
|
||||
...
|
||||
}:
|
||||
{
|
||||
options.nix-leonhard.neovim.enable = lib.mkEnableOption "neovim";
|
||||
|
||||
config = lib.mkIf config.nix-leonhard.neovim.enable {
|
||||
home.packages = [ self.packages.nixvim ];
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
{
|
||||
config = lib.mkIf config.nix-leonhard.graphical {
|
||||
programs.rofi = {
|
||||
enable = true;
|
||||
theme = ./tokyonight.rasi;
|
||||
settings = {
|
||||
modi = [
|
||||
"drun"
|
||||
"window"
|
||||
"run"
|
||||
];
|
||||
font = "JetBrainsMono Nerd Font 11";
|
||||
icon-theme = "Papirus-Dark";
|
||||
show-icons = true;
|
||||
terminal = "kitty";
|
||||
drun-display-format = "{icon} {name}";
|
||||
location = 0;
|
||||
disable-history = false;
|
||||
sidebar-mode = false;
|
||||
display-drun = " ";
|
||||
display-run = " ";
|
||||
display-window = " ";
|
||||
|
||||
kb-row-up = "Up,Control+k";
|
||||
kb-row-left = "Left,Control+h";
|
||||
kb-row-right = "Right,Control+l";
|
||||
kb-row-down = "Down,Control+j";
|
||||
|
||||
kb-accept-entry = "Return";
|
||||
# remove clashing keybinds
|
||||
kb-remove-to-eol = "";
|
||||
kb-move-char-back = "Control+b";
|
||||
kb-remove-char-back = "BackSpace";
|
||||
kb-move-char-forward = "Control+f";
|
||||
kb-mode-complete = "Control+o";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,136 @@
|
||||
/*
|
||||
* Tokyonight colorscheme (big icons) for rofi
|
||||
* User: w8ste
|
||||
*/
|
||||
|
||||
|
||||
// define colors etc.
|
||||
* {
|
||||
bg: #24283b;
|
||||
hv: #9274ca;
|
||||
primary: #C5C8C6;
|
||||
ug: #0B2447;
|
||||
background-color: @bg;
|
||||
//dark: @bg;
|
||||
border: 0px;
|
||||
kl: #7aa2f7;
|
||||
black: #000000;
|
||||
|
||||
transparent: rgba(46,52,64,0);
|
||||
}
|
||||
|
||||
// defines different aspects of the window
|
||||
window {
|
||||
width: 700;
|
||||
/*since line wont work with height, i comment it out
|
||||
if you rather control the size via height
|
||||
just comment it out */
|
||||
//height: 500;
|
||||
|
||||
orientation: horizontal;
|
||||
location: center;
|
||||
anchor: center;
|
||||
transparency: "screenshot";
|
||||
border-color: @transparent;
|
||||
border: 0px;
|
||||
border-radius: 6px;
|
||||
spacing: 0;
|
||||
children: [ mainbox ];
|
||||
}
|
||||
|
||||
mainbox {
|
||||
spacing: 0;
|
||||
children: [ inputbar, message, listview ];
|
||||
}
|
||||
|
||||
inputbar {
|
||||
color: @kl;
|
||||
padding: 11px;
|
||||
border: 3px 3px 2px 3px;
|
||||
border-color: @primary;
|
||||
border-radius: 6px 6px 0px 0px;
|
||||
}
|
||||
|
||||
message {
|
||||
padding: 0;
|
||||
border-color: @primary;
|
||||
border: 0px 1px 1px 1px;
|
||||
}
|
||||
|
||||
entry, prompt, case-indicator {
|
||||
text-font: inherit;
|
||||
text-color: inherit;
|
||||
}
|
||||
|
||||
entry {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
prompt {
|
||||
margin: 0px 5px 0px 0px;
|
||||
}
|
||||
|
||||
listview {
|
||||
layout: vertical;
|
||||
//spacing: 5px;
|
||||
padding: 8px;
|
||||
lines: 7;
|
||||
columns: 1;
|
||||
border: 0px 3px 3px 3px;
|
||||
border-radius: 0px 0px 6px 6px;
|
||||
border-color: @primary;
|
||||
dynamic: false;
|
||||
}
|
||||
|
||||
element {
|
||||
padding: 2px;
|
||||
vertical-align: 1;
|
||||
color: @kl;
|
||||
font: inherit;
|
||||
}
|
||||
|
||||
element-text {
|
||||
background-color: inherit;
|
||||
text-color: inherit;
|
||||
vertical-align: 0.5;
|
||||
}
|
||||
|
||||
element selected.normal {
|
||||
color: @black;
|
||||
background-color: @hv;
|
||||
}
|
||||
|
||||
element normal active {
|
||||
background-color: @hv;
|
||||
color: @black;
|
||||
}
|
||||
|
||||
element-icon {
|
||||
background-color: inherit;
|
||||
text-color: inherit;
|
||||
size: 2.5em;
|
||||
}
|
||||
|
||||
element normal urgent {
|
||||
background-color: @primary;
|
||||
}
|
||||
|
||||
element selected active {
|
||||
background: @hv;
|
||||
foreground: @bg;
|
||||
}
|
||||
|
||||
button {
|
||||
padding: 6px;
|
||||
color: @primary;
|
||||
horizonatal-align: 0.5;
|
||||
|
||||
border: 2px 0px 2px 2px;
|
||||
border-radius: 4px 0px 0px 4px;
|
||||
border-color: @primary;
|
||||
}
|
||||
|
||||
button selected normal {
|
||||
border: 2px 0px 2px 2px;
|
||||
border-color: @primary;
|
||||
}
|
||||
Reference in new issue
Block a user