mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-06-15 17:45:12 -05:00
chore: quick push
This commit is contained in:
parent
f3ed254c00
commit
b936cfeed6
15 changed files with 190 additions and 14 deletions
|
@ -139,6 +139,10 @@
|
||||||
path = ./templates/haskell;
|
path = ./templates/haskell;
|
||||||
description = "Haskell Environment";
|
description = "Haskell Environment";
|
||||||
};
|
};
|
||||||
|
typst = {
|
||||||
|
path = ./templates/typst;
|
||||||
|
description = "Typst Environment";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -54,7 +54,7 @@ in
|
||||||
wayland
|
wayland
|
||||||
theming
|
theming
|
||||||
polychromatic
|
polychromatic
|
||||||
nautilus
|
dolphin
|
||||||
;
|
;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -53,7 +53,6 @@ in
|
||||||
searx
|
searx
|
||||||
vaultwarden
|
vaultwarden
|
||||||
forgejo
|
forgejo
|
||||||
wayland
|
|
||||||
xserver
|
xserver
|
||||||
;
|
;
|
||||||
};
|
};
|
||||||
|
|
|
@ -65,14 +65,14 @@ in
|
||||||
// (
|
// (
|
||||||
if hostname == mars.name then
|
if hostname == mars.name then
|
||||||
{
|
{
|
||||||
models = service.paths.path1;
|
# models = service.paths.path1;
|
||||||
# acceleration = "rocm";
|
acceleration = "rocm";
|
||||||
# package = pkgs.ollama.override {
|
package = pkgs.ollama.override {
|
||||||
# config = {
|
config = {
|
||||||
# rocmSupport = true;
|
rocmSupport = true;
|
||||||
# cudaSupport = false;
|
cudaSupport = false;
|
||||||
# };
|
};
|
||||||
# };
|
};
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -71,11 +71,11 @@ in
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
"/" = {
|
"/" = {
|
||||||
device = "/dev/disk/by-uuid/57e88a48-00eb-46ca-9e2a-855de7e066b2";
|
device = "/dev/disk/by-uuid/1de87c26-c123-44c0-9c9b-6d2480bdeb7d";
|
||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
};
|
};
|
||||||
"/boot" = {
|
"/boot" = {
|
||||||
device = "/dev/disk/by-uuid/F095-17B7";
|
device = "/dev/disk/by-uuid/6A1F-3641";
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
options = mars.boot.options;
|
options = mars.boot.options;
|
||||||
};
|
};
|
||||||
|
@ -85,7 +85,7 @@ in
|
||||||
// (builtins.listToAttrs (map sambaMounts sambaDrives));
|
// (builtins.listToAttrs (map sambaMounts sambaDrives));
|
||||||
|
|
||||||
swapDevices = [
|
swapDevices = [
|
||||||
{ device = "/dev/disk/by-uuid/56c84b5e-83b4-4ea1-b6ec-a29fc057292d"; }
|
{ device = "/dev/disk/by-uuid/8b1d43a7-baf8-4d15-a1ad-dc0c9dda6970"; }
|
||||||
];
|
];
|
||||||
|
|
||||||
systemd.tmpfiles.rules = [
|
systemd.tmpfiles.rules = [
|
||||||
|
|
|
@ -23,7 +23,7 @@ in
|
||||||
3131 # Deskreen
|
3131 # Deskreen
|
||||||
1234 # Elm-land server
|
1234 # Elm-land server
|
||||||
5037 # ADB Server
|
5037 # ADB Server
|
||||||
52006
|
44363
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
1
templates/typst/.envrc
Executable file
1
templates/typst/.envrc
Executable file
|
@ -0,0 +1 @@
|
||||||
|
use flake
|
4
templates/typst/.gitignore
vendored
Executable file
4
templates/typst/.gitignore
vendored
Executable file
|
@ -0,0 +1,4 @@
|
||||||
|
.direnv
|
||||||
|
.pre-commit-config.yaml
|
||||||
|
.vscode
|
||||||
|
*.pdf
|
28
templates/typst/flake.nix
Executable file
28
templates/typst/flake.nix
Executable file
|
@ -0,0 +1,28 @@
|
||||||
|
{
|
||||||
|
description = "Typst Environment";
|
||||||
|
|
||||||
|
inputs = {
|
||||||
|
devshell.url = "github:numtide/devshell";
|
||||||
|
flake-root.url = "github:srid/flake-root";
|
||||||
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||||
|
pre-commit-hooks-nix.url = "github:cachix/pre-commit-hooks.nix";
|
||||||
|
};
|
||||||
|
|
||||||
|
outputs =
|
||||||
|
inputs@{
|
||||||
|
nixpkgs,
|
||||||
|
flake-parts,
|
||||||
|
self,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
flake-parts.lib.mkFlake { inherit inputs; } {
|
||||||
|
imports = [
|
||||||
|
inputs.devshell.flakeModule
|
||||||
|
inputs.flake-root.flakeModule
|
||||||
|
inputs.pre-commit-hooks-nix.flakeModule
|
||||||
|
./parts
|
||||||
|
];
|
||||||
|
|
||||||
|
systems = nixpkgs.lib.systems.flakeExposed;
|
||||||
|
};
|
||||||
|
}
|
26
templates/typst/parts/config/devshells.nix
Executable file
26
templates/typst/parts/config/devshells.nix
Executable file
|
@ -0,0 +1,26 @@
|
||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
devShells = {
|
||||||
|
default = pkgs.mkShell {
|
||||||
|
packages = builtins.attrValues {
|
||||||
|
inherit (pkgs)
|
||||||
|
just
|
||||||
|
nil
|
||||||
|
typst
|
||||||
|
tinymist
|
||||||
|
typstyle
|
||||||
|
yamlfmt
|
||||||
|
nixfmt-rfc-style
|
||||||
|
;
|
||||||
|
inherit (pkgs.nodePackages)
|
||||||
|
"@commitlint/config-conventional"
|
||||||
|
;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
shellHook = "${config.pre-commit.installationScript}";
|
||||||
|
};
|
||||||
|
}
|
7
templates/typst/parts/config/pre-commit.nix
Executable file
7
templates/typst/parts/config/pre-commit.nix
Executable file
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
pre-commit.settings.hooks = {
|
||||||
|
nixfmt.enable = true;
|
||||||
|
commitizen.enable = true;
|
||||||
|
statix.enable = true;
|
||||||
|
};
|
||||||
|
}
|
24
templates/typst/parts/default.nix
Executable file
24
templates/typst/parts/default.nix
Executable file
|
@ -0,0 +1,24 @@
|
||||||
|
{
|
||||||
|
perSystem =
|
||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
self',
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
configPath = ./config;
|
||||||
|
|
||||||
|
devshellImports =
|
||||||
|
let
|
||||||
|
files = builtins.attrNames (builtins.readDir configPath);
|
||||||
|
in
|
||||||
|
map (name: configPath + "/${name}") (
|
||||||
|
builtins.filter (name: builtins.match ".*\\.nix$" name != null) files
|
||||||
|
);
|
||||||
|
in
|
||||||
|
{
|
||||||
|
imports = devshellImports;
|
||||||
|
};
|
||||||
|
}
|
8
templates/typst/src/refs.yml
Executable file
8
templates/typst/src/refs.yml
Executable file
|
@ -0,0 +1,8 @@
|
||||||
|
citizen:
|
||||||
|
author: John Zerilli
|
||||||
|
chapter: 3
|
||||||
|
date: 2021
|
||||||
|
isbn: 9780262044813
|
||||||
|
publisher: The MIT Press
|
||||||
|
title: A Citizen's Guide To Artificial Intelligence
|
||||||
|
type: Book
|
63
templates/typst/src/template.typ
Executable file
63
templates/typst/src/template.typ
Executable file
|
@ -0,0 +1,63 @@
|
||||||
|
// Catppuccin Latte
|
||||||
|
|
||||||
|
#let catppuccinLatteRosewater = rgb("#dc8a78")
|
||||||
|
#let catppuccinLatteFlamingo = rgb("#dd7878")
|
||||||
|
#let catppuccinLattePink = rgb("#ea76cb")
|
||||||
|
#let catppuccinLatteMauve = rgb("#8839ef")
|
||||||
|
#let catppuccinLatteRed = rgb("#d20f39")
|
||||||
|
#let catppuccinLatteMaroon = rgb("#e64553")
|
||||||
|
#let catppuccinLattePeach = rgb("#fe640b")
|
||||||
|
#let catppuccinLatteYellow = rgb("#df8e1d")
|
||||||
|
#let catppuccinLatteGreen = rgb("#40a02b")
|
||||||
|
#let catppuccinLatteTeal = rgb("#179299")
|
||||||
|
#let catppuccinLatteSky = rgb("#04a5e5")
|
||||||
|
#let catppuccinLatteSapphire = rgb("#209fb5")
|
||||||
|
#let catppuccinLatteBlue = rgb("#1e66f5")
|
||||||
|
#let catppuccinLatteLavender = rgb("#7287fd")
|
||||||
|
#let catppuccinLatteText = rgb("#4c4f69")
|
||||||
|
#let catppuccinLatteSubtext1 = rgb("#5c5f77")
|
||||||
|
#let catppuccinLatteSubtext0 = rgb("#6c6f85")
|
||||||
|
#let catppuccinLatteOverlay2 = rgb("#7c7f93")
|
||||||
|
#let catppuccinLatteOverlay1 = rgb("#8c8fa1")
|
||||||
|
#let catppuccinLatteOverlay0 = rgb("#9ca0b0")
|
||||||
|
#let catppuccinLatteSurface2 = rgb("#acb0be")
|
||||||
|
#let catppuccinLatteSurface1 = rgb("#bcc0cc")
|
||||||
|
#let catppuccinLatteSurface0 = rgb("#ccd0da")
|
||||||
|
#let catppuccinLatteBase = rgb("#eff1f5")
|
||||||
|
#let catppuccinLatteMantle = rgb("#e6e9ef")
|
||||||
|
#let catppuccinLatteCrust = rgb("#dce0e8")
|
||||||
|
|
||||||
|
// General:
|
||||||
|
|
||||||
|
#let project(author: (:), title: (), body) = {
|
||||||
|
show figure.caption: it => it.body
|
||||||
|
|
||||||
|
set quote(attribution: "content", block: true)
|
||||||
|
|
||||||
|
set document(author: author.firstName + " " + author.lastName, title: title)
|
||||||
|
|
||||||
|
set text(fill: catppuccinLatteText, font: ("New Computer Modern"), lang: "en")
|
||||||
|
|
||||||
|
let title = {
|
||||||
|
align(center)[
|
||||||
|
#block[
|
||||||
|
#text(size: 25pt, weight: "medium")[#title]
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
let name = {
|
||||||
|
align(
|
||||||
|
center,
|
||||||
|
)[
|
||||||
|
#block[
|
||||||
|
#text(size: 12pt, weight: "regular")[#author.firstName #author.lastName]
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
title
|
||||||
|
name
|
||||||
|
body
|
||||||
|
}
|
||||||
|
|
12
templates/typst/src/typst.typ
Executable file
12
templates/typst/src/typst.typ
Executable file
|
@ -0,0 +1,12 @@
|
||||||
|
#import "template.typ": *
|
||||||
|
|
||||||
|
#show: project.with(author: (firstName: "First", lastName: "Last"), title: "Title")
|
||||||
|
|
||||||
|
Test
|
||||||
|
|
||||||
|
#quote(
|
||||||
|
attribution: <citizen>,
|
||||||
|
)[ Fact is, you can't satisfy both calibration and error rate balance if the base
|
||||||
|
rates differ... ]
|
||||||
|
|
||||||
|
#bibliography("refs.yml", style: "ieee")
|
Loading…
Add table
Add a link
Reference in a new issue