ready2
This commit is contained in:
parent
4d57b6b6f4
commit
4851e04bfa
15 changed files with 69 additions and 39 deletions
|
|
@ -8,7 +8,12 @@
|
||||||
|
|
||||||
Чтоб узнать sha256 для гитхаб репы, пишем в терминал эту команду:
|
Чтоб узнать sha256 для гитхаб репы, пишем в терминал эту команду:
|
||||||
```sh
|
```sh
|
||||||
nix-prefetch-git link-to-git-repo
|
nix-prefetch-git link
|
||||||
|
```
|
||||||
|
|
||||||
|
Если хочется поменять цвета или шрифты в конфиге какой-то программы, но при ребилде получается конфликт, то дело в Stylix, который управляет системной темой и сам везде ставит шрифты и цвета. Если хочется заменить, не трогая stylix, то надо добавить `lib.mkForce` перед значением. Например так:
|
||||||
|
```nix
|
||||||
|
font = lib.mkForce "JetBrainsMono Nerd Font 11";
|
||||||
```
|
```
|
||||||
|
|
||||||
## Бинды
|
## Бинды
|
||||||
|
|
|
||||||
|
|
@ -71,9 +71,16 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
home.file = {
|
# Не работает, ошибка будет, надо юзать другую команду
|
||||||
".config/ranger/rc.conf" = ./rc.conf;
|
# home.file = {
|
||||||
".config/ranger/rifle.conf" = ./rifle.conf;
|
# ".config/ranger/rc.conf".source = "./rc.conf";
|
||||||
".config/ranger/scope.sh" = ./scope.sh;
|
# ".config/ranger/rifle.conf".source = "./rifle.conf";
|
||||||
|
# ".config/ranger/scope.sh".source = "./scope.sh";
|
||||||
|
# };
|
||||||
|
|
||||||
|
xdg.configFile = {
|
||||||
|
"ranger/rc.conf".source = "./rc.conf";
|
||||||
|
"ranger/rifle.conf".source = "./rifle.conf";
|
||||||
|
"ranger/scope.sh".source = "./scope.sh";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
{ # Thunar file manager settings
|
{ # Thunar file manager settings
|
||||||
home.file.".config/xfce4/xfconf/xfce-perchannel-xml/thunar.xml".source = ./thunar.xml;
|
xdg.configFile."xfce4/xfconf/xfce-perchannel-xml/thunar.xml".source = ./thunar.xml;
|
||||||
}
|
}
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
programs.imv.enable = true;
|
programs.imv.enable = true;
|
||||||
|
|
||||||
home.file.".config/imv/config".source = ./config;
|
xdg.configFile."imv/config".source = ./config;
|
||||||
}
|
}
|
||||||
|
|
@ -18,7 +18,8 @@
|
||||||
# enableSessionWide = true; # Sets environment variables so that MangoHud is started on any application that supports it.
|
# enableSessionWide = true; # Sets environment variables so that MangoHud is started on any application that supports it.
|
||||||
};
|
};
|
||||||
|
|
||||||
home.file.".config/MangoHud/MangoHud.conf".text = ''
|
# home.file.".config/MangoHud/MangoHud.conf".text = ''
|
||||||
|
xdg.configFile."MangoHud/MangoHud.conf".text = ''
|
||||||
### pre defined presets
|
### pre defined presets
|
||||||
# -1 = default
|
# -1 = default
|
||||||
# 0 = no display
|
# 0 = no display
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
let
|
let
|
||||||
dir = "backups"; # Имя каталога для бекапов. Мб захочу поменять
|
dir = "backups"; # Имя каталога для бекапов. Мб захочу поменять
|
||||||
in {
|
in {
|
||||||
home.file = {
|
home.file = { # В .config этим нельзя кидать
|
||||||
# "${dir}".source = "/mnt/${dir}"; # Чтоб остальные симлинки были от ~/backups
|
# "${dir}".source = "/mnt/${dir}"; # Чтоб остальные симлинки были от ~/backups
|
||||||
|
|
||||||
# Secrets
|
# Secrets
|
||||||
|
|
@ -18,4 +18,8 @@ in {
|
||||||
|
|
||||||
# Не знаю на счёт strawberry, obs, chatbox, planify, calibre, discord и браузеров
|
# Не знаю на счёт strawberry, obs, chatbox, planify, calibre, discord и браузеров
|
||||||
};
|
};
|
||||||
|
|
||||||
|
xdg.configFile = { # Это для каталога .config
|
||||||
|
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
{
|
{ pkgs, ... }: {
|
||||||
programs.kitty = { # Быстрое отображение медиа, но кривой SSH
|
programs.kitty = { # Быстрое отображение медиа, но кривой SSH
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
|
|
@ -8,8 +8,10 @@
|
||||||
enableZshIntegration = true;
|
enableZshIntegration = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
font = {
|
# font = { # Stylix сам укажет mono шрифт
|
||||||
name = "JetBrainsMono Nerd Font";
|
# name = "JetBrainsMono Nerd Font";
|
||||||
};
|
# package = pkgs.nerdfonts.override {fonts = ["JetBrainsMono"];};
|
||||||
|
# size = 9;
|
||||||
|
# };
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
@ -10,5 +10,5 @@
|
||||||
enableTransience = true; # Fish Shell only. Отображает пустую строку при нажатии enter?
|
enableTransience = true; # Fish Shell only. Отображает пустую строку при нажатии enter?
|
||||||
};
|
};
|
||||||
|
|
||||||
home.file.".config/starship.toml".source = ./starship.toml;
|
xdg.configFile."starship.toml".source = ./starship.toml;
|
||||||
}
|
}
|
||||||
|
|
@ -3,5 +3,5 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
home.file.".config/bspwm/bspwmrc".source = "./bspwmrc";
|
xdg.configFile."bspwm/bspwmrc".source = "./bspwmrc";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
{ pkgs, ... }: {
|
{ pkgs, lib, ... }: {
|
||||||
# Оповещения. Бинды можно делать через "dunstctl"
|
# Оповещения. Бинды можно делать через "dunstctl"
|
||||||
# https://wiki.archlinux.org/title/Dunst
|
# https://wiki.archlinux.org/title/Dunst
|
||||||
# https://dunst-project.org/documentation/
|
# https://dunst-project.org/documentation/
|
||||||
|
|
@ -48,7 +48,7 @@
|
||||||
horizontal_padding = 6; # Horizontal padding.
|
horizontal_padding = 6; # Horizontal padding.
|
||||||
text_icon_padding = 0; # Padding between text and icon.
|
text_icon_padding = 0; # Padding between text and icon.
|
||||||
frame_width = 3; # Defines width in pixels of frame around the notification window. Set to 0 to disable.
|
frame_width = 3; # Defines width in pixels of frame around the notification window. Set to 0 to disable.
|
||||||
frame_color = "#8EC07C"; # Defines color of the frame around the notification window.
|
# frame_color = "#8EC07C"; # Defines color of the frame around the notification window.
|
||||||
sort = "no"; # Sort messages by urgency.
|
sort = "no"; # Sort messages by urgency.
|
||||||
|
|
||||||
# Don't remove messages, if the user is idle (no mouse or keyboard input) for longer than idle_threshold seconds.
|
# Don't remove messages, if the user is idle (no mouse or keyboard input) for longer than idle_threshold seconds.
|
||||||
|
|
@ -63,13 +63,13 @@
|
||||||
# * foreground: use the same color as the foreground;
|
# * foreground: use the same color as the foreground;
|
||||||
# * frame: use the same color as the frame;
|
# * frame: use the same color as the frame;
|
||||||
# * anything else will be interpreted as a X color.
|
# * anything else will be interpreted as a X color.
|
||||||
separator_color = "frame";
|
# separator_color = "frame";
|
||||||
|
|
||||||
############
|
############
|
||||||
### Text ###
|
### Text ###
|
||||||
############
|
############
|
||||||
|
|
||||||
font = "JetBrainsMono Nerd Font 11";
|
font = lib.mkForce "JetBrainsMono Nerd Font 11"; # Перезаписать шрифт от stylix
|
||||||
|
|
||||||
# The spacing between lines.
|
# The spacing between lines.
|
||||||
# If the height is smaller than the font height, it will get raised to the font height.
|
# If the height is smaller than the font height, it will get raised to the font height.
|
||||||
|
|
@ -126,6 +126,8 @@
|
||||||
#############
|
#############
|
||||||
|
|
||||||
enable_recursive_icon_lookup = true; # Чтоб не надо было указывать icon_path
|
enable_recursive_icon_lookup = true; # Чтоб не надо было указывать icon_path
|
||||||
|
# icon_theme = "Gruvbox-Plus-Dark";
|
||||||
|
icon_path = "/usr/share/icons/Gruvbox-Plus-Dark/"; # Один хуй требуют указать
|
||||||
icon_position = "off"; # Align icons left/right/off
|
icon_position = "off"; # Align icons left/right/off
|
||||||
|
|
||||||
# Не знаю надо ли, когда я указал размер иконок в начале файла
|
# Не знаю надо ли, когда я указал размер иконок в начале файла
|
||||||
|
|
@ -211,9 +213,9 @@
|
||||||
urgency_low = {
|
urgency_low = {
|
||||||
# IMPORTANT: colors have to be defined in quotation marks.
|
# IMPORTANT: colors have to be defined in quotation marks.
|
||||||
# Otherwise the "#" and following would be interpreted as a comment.
|
# Otherwise the "#" and following would be interpreted as a comment.
|
||||||
frame_color = "#3B7C87";
|
# frame_color = "#3B7C87";
|
||||||
foreground = "#3B7C87";
|
# foreground = "#3B7C87";
|
||||||
background = "#191311";
|
# background = "#191311";
|
||||||
#background = "#2B313C";
|
#background = "#2B313C";
|
||||||
timeout = 4;
|
timeout = 4;
|
||||||
# Icon for notifications with low urgency, uncomment to enable
|
# Icon for notifications with low urgency, uncomment to enable
|
||||||
|
|
@ -221,9 +223,9 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
urgency_normal = {
|
urgency_normal = {
|
||||||
frame_color = "#5B8234";
|
# frame_color = "#5B8234";
|
||||||
foreground = "#5B8234";
|
# foreground = "#5B8234";
|
||||||
background = "#191311";
|
# background = "#191311";
|
||||||
#background = "#2B313C";
|
#background = "#2B313C";
|
||||||
timeout = 6;
|
timeout = 6;
|
||||||
# Icon for notifications with normal urgency, uncomment to enable
|
# Icon for notifications with normal urgency, uncomment to enable
|
||||||
|
|
@ -231,9 +233,9 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
urgency_critical = {
|
urgency_critical = {
|
||||||
frame_color = "#B7472A";
|
# frame_color = "#B7472A";
|
||||||
foreground = "#B7472A";
|
# foreground = "#B7472A";
|
||||||
background = "#191311";
|
# background = "#191311";
|
||||||
#background = "#2B313C";
|
#background = "#2B313C";
|
||||||
timeout = 8;
|
timeout = 8;
|
||||||
# Icon for notifications with critical urgency, uncomment to enable
|
# Icon for notifications with critical urgency, uncomment to enable
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@
|
||||||
launcher = "rofi";
|
launcher = "rofi";
|
||||||
};
|
};
|
||||||
|
|
||||||
# home.file = {
|
# xdg.configFile = {
|
||||||
# ".config/rofi".source = "config.rasi";
|
# "rofi/pidor.rasi".source = "config.rasi";
|
||||||
# };
|
# };
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,7 @@
|
||||||
liberation_ttf
|
liberation_ttf
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# Ширина символов одинаковая
|
||||||
monospace = { # default = DejaVu Sans Mono
|
monospace = { # default = DejaVu Sans Mono
|
||||||
package = pkgs.nerdfonts.override {fonts = ["JetBrainsMono"];};
|
package = pkgs.nerdfonts.override {fonts = ["JetBrainsMono"];};
|
||||||
name = "JetBrainsMono Nerd Font Mono";
|
name = "JetBrainsMono Nerd Font Mono";
|
||||||
|
|
@ -38,11 +39,13 @@
|
||||||
name = "Noto Color Emoji";
|
name = "Noto Color Emoji";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Без засечек
|
||||||
sansSerif = { # default = DejaVu Sans
|
sansSerif = { # default = DejaVu Sans
|
||||||
package = pkgs.dejavu_fonts;
|
package = pkgs.nerdfonts.override {fonts = ["JetBrainsMono"];};
|
||||||
name = "DejaVu Sans";
|
name = "JetBrainsMono Nerd Font";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# С засечками
|
||||||
serif = { # default = DejaVu Serif
|
serif = { # default = DejaVu Serif
|
||||||
package = pkgs.dejavu_fonts;
|
package = pkgs.dejavu_fonts;
|
||||||
name = "DejaVu Serif";
|
name = "DejaVu Serif";
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,10 @@
|
||||||
|
|
||||||
|
|
||||||
{ pkgs, ... }: {
|
{ pkgs, ... }: {
|
||||||
|
services.displayManager = {
|
||||||
|
defaultSession = "none+bspwm"; # only effective for GDM, LightDM and SDDM
|
||||||
|
};
|
||||||
|
|
||||||
services.xserver = {
|
services.xserver = {
|
||||||
enable = true;
|
enable = true;
|
||||||
windowManager.bspwm.enable = true;
|
windowManager.bspwm.enable = true;
|
||||||
|
|
@ -50,8 +54,6 @@
|
||||||
# };
|
# };
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
defaultSession = "none+bspwm"; # only effective for GDM, LightDM and SDDM
|
|
||||||
};
|
};
|
||||||
|
|
||||||
xkb = {
|
xkb = {
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,8 @@
|
||||||
let
|
let
|
||||||
username = "buliway";
|
username = "buliway";
|
||||||
in {
|
in {
|
||||||
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
/etc/nixos/hardware-configuration.nix
|
/etc/nixos/hardware-configuration.nix
|
||||||
inputs.home-manager.nixosModules.default
|
inputs.home-manager.nixosModules.default
|
||||||
|
|
@ -38,14 +40,15 @@ in {
|
||||||
|
|
||||||
home-manager = {
|
home-manager = {
|
||||||
# also pass inputs to home-manager modules
|
# also pass inputs to home-manager modules
|
||||||
|
useGlobalPkgs = true;
|
||||||
extraSpecialArgs = { inherit inputs; };
|
extraSpecialArgs = { inherit inputs; };
|
||||||
users.${username} = import ./home.nix;
|
users.${username} = import ./home.nix;
|
||||||
};
|
};
|
||||||
|
|
||||||
security.polkit = { # Всплывающее меню для ввода пароля
|
security.polkit = { # Всплывающее меню для ввода пароля
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.polkit_gnome; # Legacy polkit authentication agent for GNOME
|
# package = pkgs.polkit_gnome; # Legacy polkit authentication agent for GNOME
|
||||||
# package = pkgs.lxde.lxsession; # Lightweight X11 gtk2 session manager
|
package = pkgs.lxde.lxsession; # Lightweight X11 gtk2 session manager
|
||||||
};
|
};
|
||||||
|
|
||||||
xdg.portal = {
|
xdg.portal = {
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,5 @@
|
||||||
{ pkgs, ... }: {
|
{ pkgs, ... }: {
|
||||||
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
gvfs.enable = true; # Mount, trash, and other functionalities for Thunar file manager
|
gvfs.enable = true; # Mount, trash, and other functionalities for Thunar file manager
|
||||||
tumbler.enable = true; # Thumbnail support for Thunar file manager
|
tumbler.enable = true; # Thumbnail support for Thunar file manager
|
||||||
|
|
@ -14,6 +12,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
|
zsh.enable = true;
|
||||||
mtr.enable = true; # Объединяет функции утилит traceroute и ping
|
mtr.enable = true; # Объединяет функции утилит traceroute и ping
|
||||||
gnupg.agent = {
|
gnupg.agent = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
@ -291,7 +290,9 @@
|
||||||
|
|
||||||
qmk # Прошивка для моих раздельных клавиатур
|
qmk # Прошивка для моих раздельных клавиатур
|
||||||
vial # GUI для qmk, если клавиатура поддерживает
|
vial # GUI для qmk, если клавиатура поддерживает
|
||||||
|
fontconfig
|
||||||
|
zlib
|
||||||
|
google-fonts
|
||||||
];
|
];
|
||||||
|
|
||||||
}
|
}
|
||||||
Loading…
Add table
Reference in a new issue