flakes + telegram
This commit is contained in:
Executable
+19
@@ -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
@@ -28,12 +28,13 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
outputs =
|
outputs =
|
||||||
inputs:
|
inputs@{ self, nixpkgs, ... }:
|
||||||
let
|
let
|
||||||
systems = [
|
systems = [
|
||||||
"x86_64-linux"
|
"x86_64-linux"
|
||||||
"aarch64-linux"
|
"aarch64-linux"
|
||||||
];
|
];
|
||||||
|
forAllSystems = nixpkgs.lib.genAttrs systems;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
nixosConfigurations.jpporta-nixos = inputs.nixpkgs.lib.nixosSystem {
|
nixosConfigurations.jpporta-nixos = inputs.nixpkgs.lib.nixosSystem {
|
||||||
@@ -61,5 +62,21 @@
|
|||||||
./hosts/writter-deck/home.nix
|
./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
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -141,7 +141,6 @@
|
|||||||
glib
|
glib
|
||||||
gsettings-desktop-schemas
|
gsettings-desktop-schemas
|
||||||
zip
|
zip
|
||||||
yarn
|
|
||||||
];
|
];
|
||||||
|
|
||||||
virtualisation.docker.enable = true; # docker, buildx
|
virtualisation.docker.enable = true; # docker, buildx
|
||||||
|
|||||||
@@ -112,10 +112,10 @@
|
|||||||
fastfetch
|
fastfetch
|
||||||
nodejs
|
nodejs
|
||||||
firefox
|
firefox
|
||||||
|
telegram-desktop
|
||||||
];
|
];
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
nvm.enable = true;
|
|
||||||
zen-browser.enable = true;
|
zen-browser.enable = true;
|
||||||
git = {
|
git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@@ -147,6 +147,10 @@
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
gpg.enable = true;
|
gpg.enable = true;
|
||||||
|
direnv = {
|
||||||
|
enable = true;
|
||||||
|
nix-direnv.enable = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
custom.pinentry.enable = true;
|
custom.pinentry.enable = true;
|
||||||
|
|||||||
@@ -37,7 +37,6 @@ in
|
|||||||
# nitch
|
# nitch
|
||||||
|
|
||||||
# ---- editors & dev tooling ----
|
# ---- editors & dev tooling ----
|
||||||
tree
|
|
||||||
ffmpeg
|
ffmpeg
|
||||||
chromium
|
chromium
|
||||||
neovim
|
neovim
|
||||||
@@ -68,15 +67,9 @@ in
|
|||||||
cargo
|
cargo
|
||||||
php
|
php
|
||||||
julia
|
julia
|
||||||
eslint_d
|
|
||||||
golangci-lint
|
|
||||||
rust-analyzer
|
|
||||||
imagemagick
|
imagemagick
|
||||||
ghostscript
|
ghostscript
|
||||||
ripgrep
|
ripgrep
|
||||||
gopls
|
|
||||||
typescript-language-server
|
|
||||||
nixfmt
|
|
||||||
|
|
||||||
# ---- cloud / infra ----
|
# ---- cloud / infra ----
|
||||||
awscli2
|
awscli2
|
||||||
|
|||||||
Reference in New Issue
Block a user