Compare commits

..

No commits in common. "7ffc03efe5bac50fe037f9103f2a94db0be29b7a" and "79984d5ddcdf3452fd5cf453d88e0ec428566d8e" have entirely different histories.

10 changed files with 85 additions and 146 deletions

View file

@ -34,7 +34,6 @@ jobs:
- uses: DeterminateSystems/nix-installer-action@v13 - uses: DeterminateSystems/nix-installer-action@v13
with: with:
source-url: https://install.lix.systems/lix/lix-installer-x86_64-linux
extra-conf: | extra-conf: |
accept-flake-config = true accept-flake-config = true
@ -60,5 +59,4 @@ jobs:
--flake . \ --flake . \
--debug \ --debug \
-- \ -- \
--keep-going \
--print-build-logs --print-build-logs

View file

@ -71,7 +71,6 @@ jobs:
- uses: DeterminateSystems/nix-installer-action@v13 - uses: DeterminateSystems/nix-installer-action@v13
with: with:
source-url: https://install.lix.systems/lix/lix-installer-x86_64-linux
extra-conf: | extra-conf: |
accept-flake-config = true accept-flake-config = true

View file

@ -534,11 +534,11 @@
"lix": { "lix": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1722964233, "lastModified": 1722957485,
"narHash": "sha256-cmGUqAeZuiiRB3Ja10gFMM4cjrSjdDbeuKnFWExb+1c=", "narHash": "sha256-cEemTAXvhRcjn7XxujIRglqEfAFgdlNulkRSFskowbo=",
"rev": "2c48460850186e5fb8152e7882baf9e29bb5e884", "rev": "f84997cbefb2f2dd99e48f0ad39f747ed83d69e9",
"type": "tarball", "type": "tarball",
"url": "https://git.lix.systems/api/v1/repos/lix-project/lix/archive/2c48460850186e5fb8152e7882baf9e29bb5e884.tar.gz" "url": "https://git.lix.systems/api/v1/repos/lix-project/lix/archive/f84997cbefb2f2dd99e48f0ad39f747ed83d69e9.tar.gz"
}, },
"original": { "original": {
"type": "tarball", "type": "tarball",
@ -715,11 +715,11 @@
"nixpkgs": "nixpkgs_6" "nixpkgs": "nixpkgs_6"
}, },
"locked": { "locked": {
"lastModified": 1722986309, "lastModified": 1722928655,
"narHash": "sha256-Veppi3c8c9XJ1CmgkOc5/oipPB/J8JPHbh3SHkMov3A=", "narHash": "sha256-2BAfUaRzrhHwT/JodTq++DUf/nljgoFEc5A79SS8ydU=",
"owner": "nix-community", "owner": "nix-community",
"repo": "nixpkgs-wayland", "repo": "nixpkgs-wayland",
"rev": "2c512b8dc9adc0ada535d23e6be30efafe09e81b", "rev": "423d21c157c2a7b384ae9c766e25759576dceb87",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -762,11 +762,11 @@
}, },
"nixpkgs_4": { "nixpkgs_4": {
"locked": { "locked": {
"lastModified": 1722957468, "lastModified": 1722926584,
"narHash": "sha256-SQ0TCC4aklOhN/OzcztrKqDLY8SjpIZcyvTulzhDXs0=", "narHash": "sha256-sLA+lfCxTkXf4o3JVxcfe+w9kAzauGfEnJ9roNbNng8=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "2a13929e1f191b3690dd2f2db13098b04adb9043", "rev": "d33cf80b603b3d0cddb48f9816cae707a59e2334",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -857,11 +857,11 @@
"rust-overlay": "rust-overlay" "rust-overlay": "rust-overlay"
}, },
"locked": { "locked": {
"lastModified": 1722987403, "lastModified": 1722856566,
"narHash": "sha256-olYGUCzNttIJblgG5l+xH5VaBrEBYK0si4c1VpBjxxA=", "narHash": "sha256-Yr9P/TyxgVVwgXIiu96up2hgWjMR0zWPbaihyNXp+r0=",
"owner": "roc-lang", "owner": "roc-lang",
"repo": "roc", "repo": "roc",
"rev": "8032a988b3aa85f290a418f7e2d016175ebe8e1f", "rev": "13f60cde09ef01c003fe362bf46e592a0f4ae7c6",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -1180,11 +1180,11 @@
"zig-overlay": "zig-overlay" "zig-overlay": "zig-overlay"
}, },
"locked": { "locked": {
"lastModified": 1722987529, "lastModified": 1722919037,
"narHash": "sha256-r7tnq70psZQXfLlDj+XzidBj352vfQFrICC7hfKHw7M=", "narHash": "sha256-h8BG+XOCli8++tCojSo/cF39AIixVj3mO94b4cuqT94=",
"owner": "zigtools", "owner": "zigtools",
"repo": "zls", "repo": "zls",
"rev": "d8084a342f40b444addf772fdef36a589299ebe6", "rev": "74b5a00f67ab4e5a848646411779221e6cc24b87",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -1,17 +1,12 @@
{ pkgs, enabled, ... }: { pkgs, enabled, ... }:
{ {
networking.networkmanager = enabled; networking.networkmanager = enabled;
services.printing = enabled;
services.fwupd = enabled; services.fwupd = enabled;
hardware.bluetooth = enabled // { hardware.bluetooth = enabled // {
powerOnBoot = true; powerOnBoot = true;
}; };
services.printing = enabled;
hardware.sane = enabled // {
extraBackends = [ pkgs.hplipWithPlugin ];
};
users.users.daylin.extraGroups = ["scanner" "lp"];
# https://github.com/NixOS/nixos-hardware/blob/c478b3d56969006e015e55aaece4931f3600c1b2/lenovo/thinkpad/x1/9th-gen/default.nix # https://github.com/NixOS/nixos-hardware/blob/c478b3d56969006e015e55aaece4931f3600c1b2/lenovo/thinkpad/x1/9th-gen/default.nix
# https://github.com/NixOS/nixos-hardware/blob/c478b3d56969006e015e55aaece4931f3600c1b2/common/pc/ssd/default.nix # https://github.com/NixOS/nixos-hardware/blob/c478b3d56969006e015e55aaece4931f3600c1b2/common/pc/ssd/default.nix
services.fstrim = enabled; services.fstrim = enabled;

View file

@ -1,3 +1,22 @@
# Runes # Runes
<table><tr><td><img src="https://upload.wikimedia.org/wikipedia/commons/1/14/Runic_letter_algiz.png"></td><td><img src="https://upload.wikimedia.org/wikipedia/commons/1/16/Runic_letter_othalan.png"></td></tr><tr><td><img src="https://upload.wikimedia.org/wikipedia/commons/0/0c/Runic_letter_mannaz.png"></td><td><img src="https://upload.wikimedia.org/wikipedia/commons/b/b9/Runic_letter_naudiz.png"></td></tr></table>
<table>
<tr>
<td>
<img src="https://upload.wikimedia.org/wikipedia/commons/1/16/Runic_letter_othalan.png">
</td>
<td>
<img src="https://upload.wikimedia.org/wikipedia/commons/1/14/Runic_letter_algiz.png">
</td>
</tr>
<tr>
<td>
<img src="https://upload.wikimedia.org/wikipedia/commons/0/0c/Runic_letter_mannaz.png">
</td>
<td>
<img src="https://upload.wikimedia.org/wikipedia/commons/b/b9/Runic_letter_naudiz.png">
</td>
</tr>
</table>

View file

@ -1,6 +1,6 @@
{ {
braille = '' braille = ''
@ -14,23 +14,20 @@
''; '';
ascii = '' ascii = ''
:%+ ## +%:
:%+ ## +%: -%@+ @@ +@%-
-%@+ @@ +@%- -%@=%%=@%-
-%@=%%=@%- =%@@%=
=%@@%= @@
@@ @%
@% @%
@% @%
@% @%
@% @%
@% @%
@% @@
@@ ##
##
''; '';
} }

View file

@ -1,62 +0,0 @@
#!/usr/bin/env nix-shell
#!nix-shell -p nushell ascii-image-converter -i nu
let runes = [
{name: "algiz" url: "https://upload.wikimedia.org/wikipedia/commons/1/14/Runic_letter_algiz.png" },
{name: "othalan" url: "https://upload.wikimedia.org/wikipedia/commons/1/16/Runic_letter_othalan.png" },
{name: "mannaz" url: "https://upload.wikimedia.org/wikipedia/commons/0/0c/Runic_letter_mannaz.png" },
{name: "naudiz" url: "https://upload.wikimedia.org/wikipedia/commons/b/b9/Runic_letter_naudiz.png" },
]
def convert [] {
let rune = $in
let image = http get $rune.url
let flags = [--height 15 --negative]
{
name: $rune.name
braille: ( $image | ascii-image-converter - --braille ...$flags)
ascii: ( $image | ascii-image-converter - ...$flags)
}
}
def nix [] {
let rune = $in | convert
$"{
braille = ''
($rune.braille)
'';
ascii = ''
($rune.ascii)
'';
}
" | save -f $"($rune.name).nix"
}
def col [] {
$in
| reduce --fold "" {|it, acc|
$acc + $'<td><img src="($it.url)"></td>'
}
}
def row [] { $"<tr>($in)</tr>" }
def readme [] {
let runes = $in
let dims = { rows: 2 cols: 2 }
let cells = ($runes | chunks $dims.rows | each { $in | col | row})
let table = [ "<table>" ...$cells "</table>" ] | str join
$"# Runes\n\n($table)\n"
}
$runes
| readme
| save -f "README.md"
$runes
| each {|rune| $rune | nix }
print "don't forget to run `nix fmt`!"

View file

@ -1,7 +1,7 @@
{ {
braille = '' braille = ''
@ -14,23 +14,20 @@
''; '';
ascii = '' ascii = ''
:%*: :+%=
:%*: :+%= -@%%%*- -*%%#@+
-@%%%*- -*%%#@+ -@- .=#@##@#=: .@+
-@- .=#@##@#=: .@+ -@- :=#@#*%#+: .@+
-@- :=#@#*%#+: .@+ -@%%%*- :*%%#@+
-@%%%*- :*%%#@+ -@*: .+@+
-@*: .+@+ -@- .@+
-@- .@+ -@= :@+
-@= :@+ -@= :@+
-@= :@+ -@= :@+
-@= :@+ -@= :@+
-@= :@+ -@= :@+
-@= :@+ -%- :%=
-%- :%=
''; '';
} }

View file

@ -1,7 +1,6 @@
{ {
braille = '' braille = ''
@ -14,10 +13,9 @@
''; '';
ascii = '' ascii = ''
+%. +%.
*@. *@.
*@. *@.
@ -31,6 +29,5 @@
*@. *@.
*@. *@.
+%. +%.
''; '';
} }

View file

@ -1,6 +1,22 @@
{ {
ascii = ''
.+.
.*@@@*.
.+@@- -%@*.
.+@@= -%@*.
.+@%= -%@+.
+@@- :@@*
.*@%- :#@*:
.#@%: :#@#:
:#@#-*@#:
=@@@+
.*@#-#@#:
.*@%- :#@#:
.*@%- :%@*.
+@%- -%@+
:- -:
'';
braille = '' braille = ''
@ -16,21 +32,4 @@
''; '';
ascii = ''
=+
-%@@@=
:%@+ =@%-
.#@*. +@#:
*@#. *@#.
+@%: :#@+
+@#: .#@*.
.*@*..*@#.
.#@@%.
=%##@=
-%@= -@@=
:%@+ =@%-
.#@+ +@#.
=. .=
'';
} }