Skip to content

Instantly share code, notes, and snippets.

View Lillecarl's full-sized avatar
🦕
Dinosaurs are a lie!

Carl Lillecarl

🦕
Dinosaurs are a lie!
View GitHub Profile
From 8408190844005f078d59ff39158e4107e1be2d98 Mon Sep 17 00:00:00 2001
From: Carl Hjerpe <git@hjerpe.xyz>
Date: Tue, 24 Sep 2024 00:05:34 +0200
Subject: [PATCH 1/2] fish/login/niri: Rework niri initialisation
Create niri-session systemd unit that binds to graphical-session.target
that Mr. Poettering has some special fetish for. Start
graphical-session.target with niri, stop it with fish once niri exists.
Instead of execing into sh we unset SHLVL with env before launching
_:
{
environment.etc."lvm/lvm.conf".text = lib.mkForce ''
devices {
issue_discards = 1
}
allocations {
thin_pool_discards = 1
}
'';
#! /usr/bin/env bash
# We need $FLAKE for our impurity
export FLAKE=$PWD
# Save $FLAKE to a file
echo "\"$FLAKE\"" > "$FLAKE/.flakepath"
dotenv_if_exists /run/user/1000/agenix/cloudflare
watch_file .nix
#! /usr/bin/env bash
set -x
if [[ "$1" =~ dev|all ]] || [[ -z "$1" ]]; then
echo Forwarding dev
kubectl relay --context aks-dataplatform-dev-001 -n development service/kronosdb-rw 5401:5432 &
kubectl relay --context aks-dataplatform-dev-001 -n development service/galacticdb-rw 5411:5432 &
kubectl relay --context aks-dataplatform-dev-001 -n observability service/grafanadb-rw 5421:5432 &
kubectl relay --context aks-dataplatform-dev-001 -n development service/keycloakdb-rw 5441:5432 &

broken HM line

This could then be changed to cfg.package.meta.themeInfo.themeDir

Note that outPath.txt shows a symlink settings the corrent name either way, that's because i rewrote the catppuccin-cursors package This is how it looks in my $HOME atm:

~/C/c/home-manager [ master][$⇕][🐚fish]
[22:02:47]❯ ls -lah ~/.icons/
{ lib
, stdenvNoCC
, fetchFromGitHub
, inkscape
, just
, xcursorgen
, callPackage
}@args:
let
capitalizeFirst = str:
From d0c6fed42094faad439124960167d18d509317dc Mon Sep 17 00:00:00 2001
From: Carl Hjerpe <carl.hjerpe@helicon.ai>
Date: Tue, 11 Jun 2024 02:01:55 +0200
Subject: [PATCH] test
---
modules/imx8/imx8mp-sdimage.nix | 68 +++++++++++++++++----------------
1 file changed, 36 insertions(+), 32 deletions(-)
diff --git a/modules/imx8/imx8mp-sdimage.nix b/modules/imx8/imx8mp-sdimage.nix
[lillecarl@nub:~/Code/nixos]$ echo $PATH
/home/lillecarl/Code/nixos/.nix/bin:/home/lillecarl/Code/nixos/bin:/nix/store/cmkk0l1qs0hph06nlp0ji1arkpxp44xs-kitty-0.34.1/bin:/nix/store/1izdxwml9nsifjrh53rdfiglhjmrnx2s-imagemagick-7.1.1-32/bin:/nix/store/1c9jq1csrx42g5vqynlfl0x63k2nx1x9-ncurses-6.4-dev/bin:/run/wrappers/bin:/home/lillecarl/.local/share/flatpak/exports/bin:/var/lib/flatpak/exports/bin:/home/lillecarl/.nix-profile/bin:/nix/profile/bin:/home/lillecarl/.local/state/nix/profile/bin:/etc/profiles/per-user/lillecarl/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin:/krew/bin:/nix/store/bd0ii4p72zgiy1jfaww5h3xihxn2l56x-gcc-wrapper-13.2.0/bin:/nix/store/jsjfmx7r6cpyixxsg7bjl5cy3y8hw7k7-binutils-wrapper-2.41/bin:/nix/store/pc6yqwmnzy0xqdzm7j9kxhl0hrmk4p50-pciutils-3.11.1/bin:/nix/store/5zw6k903flzjrp3yiqrm5isvdfq30y3l-pkgconf-wrapper-2.1.1/bin:/home/lillecarl/.config/krew/bin
[lillecarl@nub:~/Code/nixos]$ nix develop
warning: Git tree '/home/lillecarl/Code/nixos' is dirty
copying '/nix/store/
mdadm = {
root = {
type = "mdadm";
level = 1;
content = {
type = "gpt";
partitions = {
primary = {
start = "1MiB";
end = "100%";
@Lillecarl
Lillecarl / .envrc
Created May 8, 2024 12:41
Cached PATH from nix develop
# Cache PATH from nix develop for one hour
if ! fd --type f --hidden --quiet --changed-within 1h .nixpath
then
# shellcheck disable=2016
nix develop --profile "$PWD/.nix/profile" -c sh -c 'echo $PATH' > .nixpath
else
echo "Using cached Nix PATH"
fi
PATH_add "$(cat .nixpath)"