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
#! /usr/bin/env fish
function padd
for path in $(nix build nixpkgs#$argv[1] --print-out-paths --no-link)
set bin "$path/bin"
if test -d $bin
echo "Added $bin to PATH"
set --prepend --global PATH $bin
end
end
end
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 496226e89..b2975c94d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -46,38 +46,6 @@ get_filename_component(REAL_CMAKE_SOURCE_DIR "${CMAKE_SOURCE_DIR}" REALPATH)
add_definitions(-DCMAKE_BINARY_DIR="${REAL_CMAKE_BINARY_DIR}")
add_definitions(-DCMAKE_SOURCE_DIR="${REAL_CMAKE_SOURCE_DIR}")
-# Define a function to build and link dependencies.
-function(CREATE_TARGET target)
{
stdenv,
fetchFromGitHub,
cmake,
rust,
rustc,
cargo,
ncurses,
pcre2,
gettext,
{ lib, config, ... }:
let
modName = "template";
cfg = config.ps.${modName};
in
{
options.ps = {
${modName} = {
enable = lib.mkOption {
default = true;
From 8408190844005f078d59ff39158e4107e1be2d98 Mon Sep 17 00:00:00 2001
From: Carl Hjerpe <[email protected]>
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: