summary refs log tree commit diff
path: root/machines/truite/home.nix
blob: d8c480a022fe9315cf474b041c648b27d75de407 (plain)
1
2
3
4
5
6
7
8
9
{ pkgs, ... }:

{
  imports = [
    ../../modules/home/common.nix
  ];

  home.stateVersion = "25.11";
}
Double */ .highlight .se { color: #87CEEB } /* Literal.String.Escape */ .highlight .sh { color: #87CEEB } /* Literal.String.Heredoc */ .highlight .si { color: #87CEEB } /* Literal.String.Interpol */ .highlight .sx { color: #87CEEB } /* Literal.String.Other */ .highlight .sr { color: #87CEEB } /* Literal.String.Regex */ .highlight .s1 { color: #87CEEB } /* Literal.String.Single */ .highlight .ss { color: #87CEEB } /* Literal.String.Symbol */ .highlight .bp { color: #DDD } /* Name.Builtin.Pseudo */ .highlight .fm { color: #FF0 } /* Name.Function.Magic */ .highlight .vc { color: #EEDD82 } /* Name.Variable.Class */ .highlight .vg { color: #EEDD82 } /* Name.Variable.Global */ .highlight .vi { color: #EEDD82 } /* Name.Variable.Instance */ .highlight .vm { color: #EEDD82 } /* Name.Variable.Magic */ .highlight .il { color: #F0F } /* Literal.Number.Integer.Long */
import type { ShortenRequest } from "$actions/shorten";
import { Writable, writable } from "svelte/store";

function createLinks() {
    const { subscribe, update }: Writable<ShortenRequest[]> = writable([]);

    function add(request: ShortenRequest) {
        update((l) => [request, ...l.slice(0, 2)]);
    }

    return {
        subscribe,
        add,
    };
}

export const links = createLinks();