use flake for direnv templates by default
This commit is contained in:
@@ -54,7 +54,7 @@
|
||||
}
|
||||
|
||||
function mkenv() {
|
||||
local template="$HOME/nixos-dotfiles/templates/shell-''${1}.nix"
|
||||
local template="$HOME/nixos-dotfiles/templates/flake-''${1}.nix"
|
||||
if [[ -z "$1" ]]; then
|
||||
echo "Usage: mkenv <python|go|ts|csharp>"
|
||||
return 1
|
||||
@@ -63,14 +63,15 @@
|
||||
echo "No template for '$1'. Available: python, go, ts, csharp"
|
||||
return 1
|
||||
fi
|
||||
if [[ -f shell.nix ]]; then
|
||||
echo "shell.nix already exists"
|
||||
if [[ -f flake.nix ]]; then
|
||||
echo "flake.nix already exists"
|
||||
return 1
|
||||
fi
|
||||
cp "$template" shell.nix
|
||||
echo "use nix" > .envrc
|
||||
cp "$template" flake.nix
|
||||
nix flake lock
|
||||
echo "use flake" > .envrc
|
||||
direnv allow
|
||||
echo "Created shell.nix and .envrc for $1"
|
||||
echo "Created flake.nix, flake.lock, and .envrc for $1"
|
||||
}
|
||||
|
||||
function y() {
|
||||
@@ -177,6 +178,7 @@
|
||||
home.sessionVariables = {
|
||||
_ZO_FZF_OPTS = "--preview 'eza --tree --level=2 --color=always {2..}' --preview-window=right:40%";
|
||||
NIX_BUILD_SHELL = "zsh";
|
||||
NIXOS_OZONE_WL = "1";
|
||||
};
|
||||
|
||||
# ── Git ─────────────────────────────────────────────────────────────────────
|
||||
@@ -256,14 +258,15 @@
|
||||
services.mako = {
|
||||
enable = true;
|
||||
settings = {
|
||||
background-color = "#0a0a0a";
|
||||
background-color = "#0a0a0a99";
|
||||
text-color = "#f3eeea";
|
||||
border-color = "#cd0a00";
|
||||
border-radius = 4;
|
||||
border-size = 2;
|
||||
default-timeout = 5000;
|
||||
max-icon-size = 48;
|
||||
border-radius = 8;
|
||||
border-size = 1;
|
||||
default-timeout = 7500;
|
||||
max-icon-size = 64;
|
||||
padding = "10,14";
|
||||
font = "JetBrains Mono 12";
|
||||
};
|
||||
};
|
||||
|
||||
@@ -297,14 +300,16 @@
|
||||
|
||||
telegram-desktop # Messaging
|
||||
signal-desktop # Messaging
|
||||
vesktop # Messaging (discord)
|
||||
karere # Messaging (WhatsApp)
|
||||
|
||||
# terminal
|
||||
foot # terminal
|
||||
tmux # terminal multiplexer
|
||||
btop # resource monitor
|
||||
htop # process viewer
|
||||
fd # fast find alternative
|
||||
ripgrep # fast grep alternative
|
||||
asciinema # terminal recording
|
||||
|
||||
# file managers
|
||||
yazi # terminal file manager
|
||||
|
||||
Reference in New Issue
Block a user