1
Fork 0

Navigate mini.files with enter!

This commit is contained in:
Matei Adriel 2023-09-22 19:37:24 +03:00
parent c21bf836a8
commit c8d7224dc9
No known key found for this signature in database
7 changed files with 48 additions and 13 deletions

View file

@ -13,7 +13,7 @@ let
catppuccin-latte = { catppuccin-latte = {
stylix = { stylix = {
image = ./wallpapers/needygirloverdose.jpg; image = ./wallpapers/watercag.png;
base16Scheme = "${inputs.catppuccin-base16}/base16/latte.yaml"; base16Scheme = "${inputs.catppuccin-base16}/base16/latte.yaml";
polarity = "light"; polarity = "light";
}; };
@ -85,7 +85,7 @@ let
}; };
# Select your current theme here! # Select your current theme here!
currentTheme = themes.catppuccin-macchiato; currentTheme = themes.catppuccin-latte;
in in
{ {
# We apply the current theme here. # We apply the current theme here.

View file

@ -0,0 +1,13 @@
local M = {}
function M.split(text, sep)
---@diagnostic disable-next-line: redefined-local
local sep, fields = sep or ":", {}
local pattern = string.format("([^%s]+)", sep)
text:gsub(pattern, function(c)
fields[#fields + 1] = c
end)
return fields
end
return M

View file

@ -1,6 +1,6 @@
local env = require("my.helpers.env") local env = require("my.helpers.env")
local header = [[ local header_string = [[
@ -9,6 +9,8 @@ local header = [[
]] ]]
local header = require("my.helpers.string").split(header_string, "\n")
local M = { local M = {
"goolord/alpha-nvim", "goolord/alpha-nvim",
dependencies = { "nvim-tree/nvim-web-devicons" }, dependencies = { "nvim-tree/nvim-web-devicons" },

View file

@ -15,7 +15,9 @@ function M.config()
windows = { windows = {
preview = false, preview = false,
}, },
mappings = {}, mappings = {
go_in_plus = "<cr>",
},
}) })
K.nmap("<C-S-F>", function() K.nmap("<C-S-F>", function()

View file

@ -3,8 +3,6 @@
enable = true; enable = true;
package = pkgs.gitFull; package = pkgs.gitFull;
aliases.graph = "log --decorate --oneline --graph";
userName = "Matei Adriel"; userName = "Matei Adriel";
userEmail = "rafaeladriel11@gmail.com"; userEmail = "rafaeladriel11@gmail.com";
@ -12,16 +10,26 @@
# Syncthing # Syncthing
".stfolder" ".stfolder"
".stversions" ".stversions"
# Direnv # Direnv
".direnv" ".direnv"
".envrc"
]; ];
aliases = {
# Print history nicely
graph = "log --decorate --oneline --graph";
# Print last commit's hash
hash = "log -1 --format='%H'";
};
extraConfig = { extraConfig = {
github.user = "Mateiadrielrafael"; github.user = "Mateiadrielrafael";
hub.protocol = "ssh"; hub.protocol = "ssh";
core.editor = "nvim"; core.editor = "nvim";
rebase.autoStash = true;
init.defaultBranch = "main"; init.defaultBranch = "main";
rebase.autoStash = true;
# Sign commits using ssh # Sign commits using ssh
gpg.format = "ssh"; gpg.format = "ssh";

View file

@ -26,9 +26,13 @@
system.stateVersion = "22.11"; system.stateVersion = "22.11";
# {{{ A few ad-hoc hardware settings # {{{ A few ad-hoc hardware settings
hardware.enableAllFirmware = true;
hardware.opengl.enable = true; hardware.opengl.enable = true;
hardware.opentabletdriver.enable = true; hardware.opentabletdriver.enable = true;
hardware.keyboard.qmk.enable = true; hardware.keyboard.qmk.enable = true;
powerManagement.cpuFreqGovernor = "ondemand";
services.tlp.enable = true;
services.thermald.enable = true;
# }}} # }}}
# {{{ A few ad-hoc programs # {{{ A few ad-hoc programs
programs.kdeconnect.enable = true; programs.kdeconnect.enable = true;
@ -42,7 +46,11 @@
# {{{ Some ad-hoc site blocking # {{{ Some ad-hoc site blocking
networking.extraHosts = networking.extraHosts =
let let
blacklisted = [ "twitter.com" "minesweeper.online" ]; blacklisted = [
"twitter.com"
"www.reddit.com"
# "minesweeper.online"
];
blacklist = lib.concatStringsSep "\n" (lib.forEach blacklisted (host: "127.0.0.1 ${host}")); blacklist = lib.concatStringsSep "\n" (lib.forEach blacklisted (host: "127.0.0.1 ${host}"));
in in
blacklist; blacklist;

View file

@ -5,7 +5,8 @@
{ {
imports = imports =
[ (modulesPath + "/installer/scan/not-detected.nix") [
(modulesPath + "/installer/scan/not-detected.nix")
]; ];
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "sd_mod" "sdhci_pci" ]; boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "sd_mod" "sdhci_pci" ];
@ -14,18 +15,19 @@
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];
fileSystems."/" = fileSystems."/" =
{ device = "/dev/disk/by-uuid/57846041-f177-45eb-aff3-503006bac638"; {
device = "/dev/disk/by-uuid/57846041-f177-45eb-aff3-503006bac638";
fsType = "ext4"; fsType = "ext4";
}; };
fileSystems."/boot" = fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/01E6-A013"; {
device = "/dev/disk/by-uuid/01E6-A013";
fsType = "vfat"; fsType = "vfat";
}; };
swapDevices = swapDevices =
[ { device = "/dev/disk/by-uuid/5cf4167c-77f4-4afe-b978-65ed5472e3d0"; } [{ device = "/dev/disk/by-uuid/5cf4167c-77f4-4afe-b978-65ed5472e3d0"; }];
];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking # Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's # (the default) this is the recommended approach. When using systemd-networkd it's