flakes + telegram

This commit is contained in:
2026-07-23 15:31:08 -03:00
parent d4c2b37d46
commit 9d842e34cc
8 changed files with 2189 additions and 10 deletions
+19
View File
@@ -0,0 +1,19 @@
#!/usr/bin/env bash
set -e
if [[ ! -d "/home/jpporta/ndots" ]]; then
echo "Cannot find source directory; Did you move it?"
echo "(Looking for "/home/jpporta/ndots")"
echo 'Cannot force reload with this script - use "direnv reload" manually and then try again'
exit 1
fi
# rebuild the cache forcefully
_nix_direnv_force_reload=1 direnv exec "/home/jpporta/ndots" true
# Update the mtime for .envrc.
# This will cause direnv to reload again - but without re-building.
touch "/home/jpporta/ndots/.envrc"
# Also update the timestamp of whatever profile_rc we have.
# This makes sure that we know we are up to date.
touch -r "/home/jpporta/ndots/.envrc" "/home/jpporta/ndots/.direnv"/*.rc
@@ -0,0 +1 @@
/nix/store/blxhj3hald69hzncgwjqsd95p7mhhy5r-nix-shell-env
File diff suppressed because it is too large Load Diff
+2
View File
@@ -0,0 +1,2 @@
use flake
+18 -1
View File
@@ -28,12 +28,13 @@
};
outputs =
inputs:
inputs@{ self, nixpkgs, ... }:
let
systems = [
"x86_64-linux"
"aarch64-linux"
];
forAllSystems = nixpkgs.lib.genAttrs systems;
in
{
nixosConfigurations.jpporta-nixos = inputs.nixpkgs.lib.nixosSystem {
@@ -61,5 +62,21 @@
./hosts/writter-deck/home.nix
];
};
devShells = forAllSystems (
system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
{
default = pkgs.mkShell {
packages = with pkgs; [
nixfmt
nil # Nix LSP — your Neovim will pick it up via direnv
statix # linter, optional
];
};
}
);
};
}
-1
View File
@@ -141,7 +141,6 @@
glib
gsettings-desktop-schemas
zip
yarn
];
virtualisation.docker.enable = true; # docker, buildx
+5 -1
View File
@@ -112,10 +112,10 @@
fastfetch
nodejs
firefox
telegram-desktop
];
programs = {
nvm.enable = true;
zen-browser.enable = true;
git = {
enable = true;
@@ -147,6 +147,10 @@
];
};
gpg.enable = true;
direnv = {
enable = true;
nix-direnv.enable = true;
};
};
custom.pinentry.enable = true;
@@ -37,7 +37,6 @@ in
# nitch
# ---- editors & dev tooling ----
tree
ffmpeg
chromium
neovim
@@ -68,15 +67,9 @@ in
cargo
php
julia
eslint_d
golangci-lint
rust-analyzer
imagemagick
ghostscript
ripgrep
gopls
typescript-language-server
nixfmt
# ---- cloud / infra ----
awscli2