Better modules
This commit is contained in:
parent
85a23285b8
commit
21ed795cfd
16 changed files with 534 additions and 302 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
config.nix
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
{ allowUnfree = true; }
|
|
||||||
89
configs/rofi/nord.rasi
Normal file
89
configs/rofi/nord.rasi
Normal file
|
|
@ -0,0 +1,89 @@
|
||||||
|
* {
|
||||||
|
nord0: #2e3440;
|
||||||
|
nord1: #3b4252;
|
||||||
|
nord2: #434c5e;
|
||||||
|
nord3: #4c566a;
|
||||||
|
nord4: #d8dee9;
|
||||||
|
nord5: #e5e9f0;
|
||||||
|
nord6: #eceff4;
|
||||||
|
nord7: #8fbcbb;
|
||||||
|
nord8: #88c0d0;
|
||||||
|
nord9: #81a1c1;
|
||||||
|
nord10: #5e81ac;
|
||||||
|
nord11: #bf616a;
|
||||||
|
nord12: #d08770;
|
||||||
|
nord13: #ebcb8b;
|
||||||
|
nord14: #a3be8c;
|
||||||
|
nord15: #b48ead;
|
||||||
|
|
||||||
|
background-color: @nord1;
|
||||||
|
border: 0px;
|
||||||
|
margin: 0px;
|
||||||
|
padding: 0px;
|
||||||
|
spacing: 0px;
|
||||||
|
text-color: @nord4;
|
||||||
|
}
|
||||||
|
#inputbar {
|
||||||
|
text-color: @nord3;
|
||||||
|
padding: 6px;
|
||||||
|
margin: 0px 0px 2px;
|
||||||
|
children: [ entry ];
|
||||||
|
}
|
||||||
|
#entry {
|
||||||
|
background-color: @nord3;
|
||||||
|
text-color: @nord4;
|
||||||
|
padding: 5px;
|
||||||
|
}
|
||||||
|
#message {
|
||||||
|
border: 0px 0px 1px;
|
||||||
|
border-color: @nord3;
|
||||||
|
padding: 0px 0px 6px 7px;
|
||||||
|
}
|
||||||
|
#listview {
|
||||||
|
lines: 10;
|
||||||
|
padding: 2px 0px 0px;
|
||||||
|
scrollbar: true;
|
||||||
|
}
|
||||||
|
#element {
|
||||||
|
padding: 0px 0px 0px 7px;
|
||||||
|
margin: 0px 0px 5px 0px;
|
||||||
|
text-color: @nord4;
|
||||||
|
}
|
||||||
|
#element.normal.normal {
|
||||||
|
text-color: @nord4;
|
||||||
|
}
|
||||||
|
#element.normal.urgent {
|
||||||
|
text-color: @nord11;
|
||||||
|
}
|
||||||
|
#element.normal.active {
|
||||||
|
text-color: @nord10;
|
||||||
|
}
|
||||||
|
#element.alternate.normal {
|
||||||
|
text-color: @nord4;
|
||||||
|
}
|
||||||
|
#element.alternate.urgent {
|
||||||
|
text-color: @nord11;
|
||||||
|
}
|
||||||
|
#element.alternate.active {
|
||||||
|
text-color: @nord10;
|
||||||
|
}
|
||||||
|
#element.selected.normal {
|
||||||
|
background-color: @nord8;
|
||||||
|
text-color: @nord1;
|
||||||
|
}
|
||||||
|
#element.selected.urgent {
|
||||||
|
background-color: @nord11;
|
||||||
|
text-color: @nord4;
|
||||||
|
}
|
||||||
|
#element.selected.active {
|
||||||
|
background-color: @nord10;
|
||||||
|
text-color: @nord4;
|
||||||
|
}
|
||||||
|
#scrollbar {
|
||||||
|
handle-color: @nord3;
|
||||||
|
handle-width: 0.50em;
|
||||||
|
}
|
||||||
|
#button.selected {
|
||||||
|
background-color: @nord8;
|
||||||
|
text-color: @nord4;
|
||||||
|
}
|
||||||
40
configs/terminator/config
Normal file
40
configs/terminator/config
Normal file
|
|
@ -0,0 +1,40 @@
|
||||||
|
[global_config]
|
||||||
|
scroll_tabbar = True
|
||||||
|
enabled_plugins = ActivityWatch, LaunchpadCodeURLHandler, APTURLHandler, LaunchpadBugURLHandler
|
||||||
|
suppress_multiple_term_dialog = True
|
||||||
|
always_split_with_profile = True
|
||||||
|
[keybindings]
|
||||||
|
help = None
|
||||||
|
[profiles]
|
||||||
|
[[default]]
|
||||||
|
visible_bell = True
|
||||||
|
background_color = "#2e3440"
|
||||||
|
background_darkness = 0.95
|
||||||
|
background_type = transparent
|
||||||
|
cursor_color = "#d8dee9"
|
||||||
|
font = FuraCode Nerd Font Mono weight=450 10
|
||||||
|
foreground_color = "#d8dee9"
|
||||||
|
show_titlebar = False
|
||||||
|
scrollbar_position = hidden
|
||||||
|
scrollback_lines = 10000
|
||||||
|
palette = "#3b4252:#bf616a:#a3be8c:#ebcb8b:#81a1c1:#b48ead:#88c0d0:#e5e9f0:#4c566a:#bf616a:#a3be8c:#ebcb8b:#81a1c1:#b48ead:#8fbcbb:#eceff4"
|
||||||
|
use_system_font = False
|
||||||
|
[[presentation]]
|
||||||
|
visible_bell = True
|
||||||
|
background_color = "#fdf6e3"
|
||||||
|
cursor_color = "#aaaaaa"
|
||||||
|
font = FuraCode Nerd Font Mono weight=450 20
|
||||||
|
foreground_color = "#2e3436"
|
||||||
|
show_titlebar = False
|
||||||
|
palette = "#073642:#dc322f:#859900:#b58900:#268bd2:#d33682:#2aa198:#eee8d5:#002b36:#cb4b16:#586e75:#657b83:#839496:#6c71c4:#93a1a1:#fdf6e3"
|
||||||
|
use_system_font = False
|
||||||
|
[layouts]
|
||||||
|
[[default]]
|
||||||
|
[[[child1]]]
|
||||||
|
parent = window0
|
||||||
|
type = Terminal
|
||||||
|
profile = default
|
||||||
|
[[[window0]]]
|
||||||
|
parent = ""
|
||||||
|
type = Window
|
||||||
|
[plugins]
|
||||||
57
home.nix
57
home.nix
|
|
@ -8,6 +8,9 @@ in {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nixpkgs.config = import ./modules/config.nix;
|
||||||
|
xdg.configFile."nixpkgs/config.nix".source = ./modules/config.nix;
|
||||||
|
|
||||||
home = {
|
home = {
|
||||||
language.base = "it_IT.UTF-8";
|
language.base = "it_IT.UTF-8";
|
||||||
keyboard.layout = "it";
|
keyboard.layout = "it";
|
||||||
|
|
@ -18,44 +21,32 @@ in {
|
||||||
gnome3.nautilus
|
gnome3.nautilus
|
||||||
procps-ng
|
procps-ng
|
||||||
mmv-go
|
mmv-go
|
||||||
|
terminator
|
||||||
|
bottom
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
imports = [
|
||||||
|
./modules/alacritty.nix
|
||||||
|
./modules/bat.nix
|
||||||
|
./modules/broot.nix
|
||||||
|
./modules/dircolors.nix
|
||||||
|
./modules/git.nix
|
||||||
|
./modules/kakoune.nix
|
||||||
|
./modules/qogir_theme.nix
|
||||||
|
./modules/rofi.nix
|
||||||
|
./modules/sxhkd.nix
|
||||||
|
./modules/terminator.nix
|
||||||
|
];
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
# alacritty = import ./modules/alacritty.nix pkgs;
|
# command-not-found.enable = true;
|
||||||
|
|
||||||
bat = { enable = true; config.theme = "Nord"; };
|
|
||||||
|
|
||||||
command-not-found.enable = true;
|
|
||||||
|
|
||||||
broot = { enable = true; enableBashIntegration = true; enableZshIntegration = true; };
|
|
||||||
|
|
||||||
dircolors = { enable = true; enableBashIntegration = true; enableZshIntegration = true; };
|
|
||||||
|
|
||||||
direnv = { enable = true; enableBashIntegration = true; enableZshIntegration = true; enableNixDirenvIntegration = true; };
|
|
||||||
|
|
||||||
git = import ./modules/git.nix pkgs;
|
|
||||||
|
|
||||||
home-manager.enable = true;
|
home-manager.enable = true;
|
||||||
|
# info.enable = true;
|
||||||
info.enable = true;
|
# kakoune = import ./modules/kakoune.nix pkgs;
|
||||||
|
# zsh = {
|
||||||
kakoune = import ./modules/kakoune.nix pkgs;
|
# enableVteIntegration = true;
|
||||||
|
# };
|
||||||
rofi = import ./modules/rofi.nix pkgs;
|
|
||||||
|
|
||||||
zsh = {
|
|
||||||
enableVteIntegration = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
qt = {
|
|
||||||
enable = true;
|
|
||||||
platformTheme = "gtk";
|
|
||||||
};
|
|
||||||
|
|
||||||
services = {
|
|
||||||
# sxhkd = import ./modules/sxhkd.nix pkgs;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
xsession.numlock.enable = true;
|
xsession.numlock.enable = true;
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,5 @@
|
||||||
{ config, pkgs, lib, ... }:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
|
programs.alacritty = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
scrolling.history = 3000;
|
scrolling.history = 3000;
|
||||||
|
|
@ -75,4 +74,5 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
3
modules/bat.nix
Normal file
3
modules/bat.nix
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
programs.bat = { enable = true; config.theme = "Nord"; };
|
||||||
|
}
|
||||||
7
modules/broot.nix
Normal file
7
modules/broot.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
programs.broot = {
|
||||||
|
enable = true;
|
||||||
|
enableBashIntegration = true;
|
||||||
|
enableZshIntegration = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
7
modules/dircolors.nix
Normal file
7
modules/dircolors.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
programs.dircolors = {
|
||||||
|
enable = true;
|
||||||
|
enableBashIntegration = true;
|
||||||
|
enableZshIntegration = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
7
modules/direnv.nix
Normal file
7
modules/direnv.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
programs.direnv = {
|
||||||
|
enable = true;
|
||||||
|
enableBashIntegration = true;
|
||||||
|
enableZshIntegration = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -3,6 +3,7 @@ let
|
||||||
kakouneCommand = "${pkgs.kakoune}/bin/kak";
|
kakouneCommand = "${pkgs.kakoune}/bin/kak";
|
||||||
meldCommand = "${pkgs.meld}/bin/meld";
|
meldCommand = "${pkgs.meld}/bin/meld";
|
||||||
in {
|
in {
|
||||||
|
programs.git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
userName = "Filippo Berto";
|
userName = "Filippo Berto";
|
||||||
userEmail = "berto.f@protonmail.com";
|
userEmail = "berto.f@protonmail.com";
|
||||||
|
|
@ -21,4 +22,5 @@ in {
|
||||||
};
|
};
|
||||||
lfs.enable = true;
|
lfs.enable = true;
|
||||||
delta.enable = true;
|
delta.enable = true;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@
|
||||||
let
|
let
|
||||||
unstable = import <nixos-unstable> {};
|
unstable = import <nixos-unstable> {};
|
||||||
in {
|
in {
|
||||||
|
programs.kakoune = {
|
||||||
enable = true;
|
enable = true;
|
||||||
config = {
|
config = {
|
||||||
colorScheme = "nord";
|
colorScheme = "nord";
|
||||||
|
|
@ -145,4 +146,5 @@ in {
|
||||||
unstable.kakounePlugins.powerline-kak
|
unstable.kakounePlugins.powerline-kak
|
||||||
unstable.kakounePlugins.prelude-kak
|
unstable.kakounePlugins.prelude-kak
|
||||||
];
|
];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
67
modules/qogir_theme.nix
Normal file
67
modules/qogir_theme.nix
Normal file
|
|
@ -0,0 +1,67 @@
|
||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
gtk = {
|
||||||
|
enable = true;
|
||||||
|
font = {
|
||||||
|
package = pkgs.cantarell-fonts;
|
||||||
|
name = "Cantarell";
|
||||||
|
size = 9;
|
||||||
|
};
|
||||||
|
iconTheme = {
|
||||||
|
package = pkgs.qogir-icon-theme;
|
||||||
|
name = "Qogir-dark";
|
||||||
|
};
|
||||||
|
theme = {
|
||||||
|
package = pkgs.qogir-theme;
|
||||||
|
name = "Qogir-dark";
|
||||||
|
};
|
||||||
|
# gtk3.extraConfig = {
|
||||||
|
# gtk-theme-name=Drakula
|
||||||
|
# gtk-icon-theme-name=Qogir-dark
|
||||||
|
# gtk-font-name=Cantarell 9
|
||||||
|
# gtk-cursor-theme-name=capitaine-cursors
|
||||||
|
# gtk-cursor-theme-size=0
|
||||||
|
# gtk-toolbar-style=GTK_TOOLBAR_ICONS
|
||||||
|
# gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
|
||||||
|
# gtk-button-images=1
|
||||||
|
# gtk-menu-images=1
|
||||||
|
# gtk-enable-event-sounds=1
|
||||||
|
# gtk-enable-input-feedback-sounds=1
|
||||||
|
# gtk-xft-antialias=1
|
||||||
|
# gtk-xft-hinting=1
|
||||||
|
# gtk-xft-hintstyle=hintfull
|
||||||
|
# gtk-xft-rgba=none
|
||||||
|
# };
|
||||||
|
# gtk2.extraConfig = {
|
||||||
|
# gtk-theme-name="Arc-Dark"
|
||||||
|
# gtk-icon-theme-name="Qogir-dark"
|
||||||
|
# gtk-font-name="Cantarell 9"
|
||||||
|
# gtk-cursor-theme-name="capitaine-cursors"
|
||||||
|
# gtk-cursor-theme-size=0
|
||||||
|
# gtk-toolbar-style=GTK_TOOLBAR_ICONS
|
||||||
|
# gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
|
||||||
|
# gtk-button-images=1
|
||||||
|
# gtk-menu-images=1
|
||||||
|
# gtk-enable-event-sounds=1
|
||||||
|
# gtk-enable-input-feedback-sounds=1
|
||||||
|
# gtk-xft-antialias=1
|
||||||
|
# gtk-xft-hinting=1
|
||||||
|
# gtk-xft-hintstyle="hintfull"
|
||||||
|
# gtk-xft-rgba="none"
|
||||||
|
# };
|
||||||
|
};
|
||||||
|
|
||||||
|
qt = {
|
||||||
|
enable = true;
|
||||||
|
platformTheme = "gtk";
|
||||||
|
};
|
||||||
|
|
||||||
|
xsession = {
|
||||||
|
numlock.enable = true;
|
||||||
|
pointerCursor = {
|
||||||
|
package = pkgs.qogir-icon-theme;
|
||||||
|
name = "Qogir";
|
||||||
|
size = 24;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -1,8 +1,11 @@
|
||||||
{ config, pkgs, lib, ... }:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
|
programs.rofi = {
|
||||||
enable = true;
|
enable = true;
|
||||||
extraConfig = {
|
extraConfig = {
|
||||||
modi = "drun,run,ssh,window";
|
modi = "drun,run,ssh,window";
|
||||||
|
theme = "nord";
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
xdg.configFile."rofi/nord.rasi".source = ../configs/rofi/nord.rasi;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -7,15 +7,20 @@ let
|
||||||
pulseaudioCtl = "${pkgs.pulseaudio-ctl}/bin/pulseaudio-ctl";
|
pulseaudioCtl = "${pkgs.pulseaudio-ctl}/bin/pulseaudio-ctl";
|
||||||
playerctl = "${pkgs.playerctl}/bin/playerctl";
|
playerctl = "${pkgs.playerctl}/bin/playerctl";
|
||||||
alacritty = "${pkgs.alacritty}/bin/alacritty";
|
alacritty = "${pkgs.alacritty}/bin/alacritty";
|
||||||
|
terminator= "${pkgs.terminator}/bin/terminator";
|
||||||
rofi = "${pkgs.rofi}/bin/rofi";
|
rofi = "${pkgs.rofi}/bin/rofi";
|
||||||
bash = "${pkgs.bash}/bin/bash";
|
bash = "${pkgs.bash}/bin/bash";
|
||||||
in {
|
in
|
||||||
|
|
||||||
|
{
|
||||||
|
services.sxhkd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
keybindings = {
|
keybindings = {
|
||||||
"super + Return" = "${bash} ${alacritty}";
|
"super + Return" = "${bash} -c ${alacritty} || ${terminator}";
|
||||||
"super + @space" = "${rofi} -show drun";
|
"super + @space" = "${rofi} -show drun";
|
||||||
"super + e" = "${nautilus} -w";
|
"super + e" = "${nautilus} -w";
|
||||||
"super + Escape" = "pkill -USR1 -x sxhkd";
|
"super + Escape" = "pkill -USR1 -x sxhkd";
|
||||||
|
"super + alt + {q,r}" = "${bspc} {quit,wm -r}";
|
||||||
"super + {_,shift + }w" = "${bspc} node -{c,k}";
|
"super + {_,shift + }w" = "${bspc} node -{c,k}";
|
||||||
"super + m" = "${bspc} desktop -l next";
|
"super + m" = "${bspc} desktop -l next";
|
||||||
"super + y" = "${bspc} node newest.marked.local -n newest.!automatic.local";
|
"super + y" = "${bspc} node newest.marked.local -n newest.!automatic.local";
|
||||||
|
|
@ -43,5 +48,6 @@ in {
|
||||||
"XF86AudioNext" = "${playerctl} next";
|
"XF86AudioNext" = "${playerctl} next";
|
||||||
"XF86AudioPrev" = "${playerctl} previous";
|
"XF86AudioPrev" = "${playerctl} previous";
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
8
modules/terminator.nix
Normal file
8
modules/terminator.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
terminator
|
||||||
|
];
|
||||||
|
|
||||||
|
xdg.configFile."terminator/config".source = ../configs/terminator/config;
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue