init elm rewrite

This commit is contained in:
notohh 2024-01-16 00:13:42 -05:00
parent eba3b42665
commit 5fdddf09e4
Signed by: notohh
GPG key ID: BD47506D475EE86D
27 changed files with 90 additions and 122 deletions

2
.envrc
View file

@ -1 +1 @@
use flake use flake

View file

8
.gitignore vendored
View file

@ -1 +1,7 @@
.hugo_build.lock /dist
/.elm-land
/.env
/elm-stuff
/node_modules
.DS_Store
*.pem

3
.gitmodules vendored
View file

@ -1,3 +0,0 @@
[submodule "themes/gokarna"]
path = themes/gokarna
url = https://github.com/526avijitgupta/gokarna.git

View file

@ -1,8 +1,2 @@
<div align="center"> # notohh.dev
<h1> > Built with [Elm Land](https://elm.land) 🌈
notohh.dev
</h1>
<img src = "https://img.shields.io/badge/Hugo-black.svg?style=for-the-badge&logo=Hugo" />
<img src = "https://img.shields.io/badge/Cloudflare-F38020?style=for-the-badge&logo=Cloudflare&logoColor=white" />
<p>built with hugo, deployed with cloudflare.</p>
</div>

View file

@ -1,5 +0,0 @@
+++
title = '{{ replace .File.ContentBaseName "-" " " | title }}'
date = {{ .Date }}
draft = true
+++

View file

@ -1,8 +0,0 @@
+++
title = "about"
type = "page"
+++
22 y/o. nix enthusiast, interested in linux and different languages / technologies.
PGP: C3CB 3B31 AF3F 986C 39E0 BE5B BD47 506D 475E E86DPGP: C3CB 3B31 AF3F 986C 39E0 BE5B BD47 506D 475E E86D

View file

@ -1,7 +0,0 @@
+++
title = "projects"
type = "page"
+++
- [snowflake](/projects/snowflake)
- [basegbot](/projects/basegbot)

View file

@ -1,4 +0,0 @@
+++
title = "basegbot"
type = "page"
+++

View file

@ -1,29 +0,0 @@
+++
title = "snowflake"
type = "page"
+++
![Screenshot updated: 2023-06-08](https://i.imgur.com/23Gv6Gh.png)
snowflake is my lifeblood. written and configured in nix, its my desktop, my laptop, my servers, my everything.
## Features
+ multi-config repo, with configs for servers, laptop, and desktop
+ multi-system home-manager setup
+ secrets provisioning with [sops-nix](https://github.com/Mic92/sops-nix)
+ multiple fully declarative self hosted services (and some containerized ones, with a docker backend)
+ wayland configs for hyprland and river
+ custom packages not found in nixpkgs
## Credit
#### people who've inspired me to dive into nix, and i've stolen stuff from (you guys are awesome!)
+ [fufexan](https://github.com/fufexan) - a ton of home manager, hyprland stuff, and some gh workflows
+ [Misterio77](https://github.com/Misterio77) - flake, and some other boilerplate
+ [NobbZ](https://github.com/NobbZ) - general nix assistance
+ [MatthiasBenaets](https://github.com/MatthiasBenaets) - amazing nixos introduction video
+ [sioodmy](https://github.com/sioodmy) - general dotfile, readme badges, and hyprland stuff
+ [MatthewCroughan](https://github.com/MatthewCroughan) - traefik config used as reference
+ [seqizz](https://github.com/seqizz/nixos-config/blob/3ee51f406a8c7aa3afde9cdee97a43641b2ed2ef/modules/server/rustypaste.nix) - rustypaste config
+ [Yavko](https://github.com/yavko) - ironbar config used as reference
+ [hlissner](https://github.com/hlissner) - [security.nix](modules/security.nix)

26
elm-land.json Normal file
View file

@ -0,0 +1,26 @@
{
"app": {
"elm": {
"development": { "debugger": true },
"production": { "debugger": false }
},
"env": [],
"html": {
"attributes": {
"html": { "lang": "en" },
"head": {}
},
"title": "Elm Land",
"meta": [
{ "charset": "UTF-8" },
{ "http-equiv": "X-UA-Compatible", "content": "IE=edge" },
{ "name": "viewport", "content": "width=device-width, initial-scale=1.0" }
],
"link": [],
"script": []
},
"router": {
"useHashRouting": false
}
}
}

25
elm.json Normal file
View file

@ -0,0 +1,25 @@
{
"type": "application",
"source-directories": [
"src",
".elm-land/src"
],
"elm-version": "0.19.1",
"dependencies": {
"direct": {
"elm/browser": "1.0.2",
"elm/core": "1.0.5",
"elm/html": "1.0.0",
"elm/json": "1.1.3",
"elm/url": "1.0.0"
},
"indirect": {
"elm/time": "1.0.0",
"elm/virtual-dom": "1.0.3"
}
},
"test-dependencies": {
"direct": {},
"indirect": {}
}
}

View file

@ -2,11 +2,11 @@
"nodes": { "nodes": {
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1703637592, "lastModified": 1704194953,
"narHash": "sha256-8MXjxU0RfFfzl57Zy3OfXCITS0qWDNLzlBAdwxGZwfY=", "narHash": "sha256-RtDKd8Mynhe5CFnVT8s0/0yqtWFMM9LmCzXv/YKxnq4=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "cfc3698c31b1fb9cdcf10f36c9643460264d0ca8", "rev": "bd645e8668ec6612439a9ee7e71f7eac4099d4f6",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -6,11 +6,7 @@
url = "github:nixos/nixpkgs/nixos-unstable"; url = "github:nixos/nixpkgs/nixos-unstable";
}; };
}; };
outputs = { outputs = {nixpkgs, ...}: let
self,
nixpkgs,
...
}: let
system = "x86_64-linux"; system = "x86_64-linux";
pkgs = import nixpkgs { pkgs = import nixpkgs {
inherit system; inherit system;
@ -22,7 +18,9 @@
nil nil
git git
alejandra alejandra
hugo elmPackages.elm
elmPackages.elm-land
elmPackages.elm-format
]; ];
}; };
}; };

View file

@ -1,41 +0,0 @@
baseURL = "https://notohh.dev/"
defaultContentLanguage = "en"
languageCode = "en"
title = "notohh"
theme = "gokarna"
enableRobotsTXT = true
[menu]
[[menu.main]]
identifier = "status"
name = "status"
url = "https://status.flake.sh/status/kumo"
pre = ""
weight = 1
[[menu.main]]
identifier = "about"
name = "about"
url = "/about/"
weight = 2
[[menu.main]]
identifier = "projects"
name = "projects"
url = "/projects/"
weight = 3
[params]
avatarURL = "images/pfp.jpg"
avatarSize = "size-m"
accentColor = "#74c7ec"
socialIcons = [
{name = "github", url = "https://git.flake.sh/notohh"},
{name = "twitter", url = "https://twitter.com/notohhh"},
{name = "twitch", url = "https://www.twitch.tv/notohh"},
{name = "discord", url = "https://discord.com/users/155965294429470720"}
]
pygmentsStyle = "catppuccin-mocha"

11
src/Pages/About.elm Normal file
View file

@ -0,0 +1,11 @@
module Pages.About exposing (page)
import Html exposing (Html)
import View exposing (View)
page : View msg
page =
{ title = "Pages.About"
, body = [ Html.text "/about" ]
}

11
src/Pages/Home_.elm Normal file
View file

@ -0,0 +1,11 @@
module Pages.Home_ exposing (page)
import Html
import View exposing (View)
page : View msg
page =
{ title = "Homepage"
, body = [ Html.text "Hello, world!" ]
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 838 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

View file

@ -1,4 +0,0 @@
<?xml version="1.0" encoding="utf-8"?><!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
<svg fill="#000000" width="800px" height="800px" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg">
<path d="M14.131 22.948l-1.172-3.193c0 0-1.912 2.131-4.771 2.131-2.537 0-4.333-2.203-4.333-5.729 0-4.511 2.276-6.125 4.515-6.125 3.224 0 4.245 2.089 5.125 4.772l1.161 3.667c1.161 3.561 3.365 6.421 9.713 6.421 4.548 0 7.631-1.391 7.631-5.068 0-2.968-1.697-4.511-4.844-5.244l-2.344-0.511c-1.624-0.371-2.104-1.032-2.104-2.131 0-1.249 0.985-1.984 2.604-1.984 1.767 0 2.704 0.661 2.865 2.24l3.661-0.444c-0.297-3.301-2.584-4.656-6.323-4.656-3.308 0-6.532 1.251-6.532 5.245 0 2.5 1.204 4.077 4.245 4.807l2.484 0.589c1.865 0.443 2.484 1.224 2.484 2.287 0 1.359-1.323 1.921-3.828 1.921-3.703 0-5.244-1.943-6.124-4.625l-1.204-3.667c-1.541-4.765-4.005-6.531-8.891-6.531-5.287-0.016-8.151 3.385-8.151 9.192 0 5.573 2.864 8.595 8.005 8.595 4.14 0 6.125-1.943 6.125-1.943z"/>
</svg>

Before

Width:  |  Height:  |  Size: 994 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 69 KiB

View file

@ -1 +0,0 @@
{"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"}

@ -1 +0,0 @@
Subproject commit 9d9e7521f1ba1273a547603ceb971c2847389f77