1
0
Fork 0
mirror of https://github.com/ryanccn/flake.git synced 2025-12-06 08:10:43 +01:00

feat: manage fonts with hm

This commit is contained in:
Ryan Cao 2023-09-03 21:53:28 +08:00
parent 44f9e25048
commit 621b09bd8f
Signed by: ryanccn
SSH key fingerprint: SHA256:NtP/BlVhoQq4xU6BEcZeT8nIPvHntkJ3lIc2yB+F09E
4 changed files with 47 additions and 36 deletions

47
flake.lock generated
View file

@ -71,11 +71,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1693163878, "lastModified": 1693608196,
"narHash": "sha256-HXuyMUVaRSoIA602jfFuYGXt6AMZ+WUxuvLq8iJmYTA=", "narHash": "sha256-qs1rDvXXjrKdobPvTdn9qKjV0/RE2uqCCTHD/c6AAo8=",
"owner": "ipetkov", "owner": "ipetkov",
"repo": "crane", "repo": "crane",
"rev": "43db881168bc65b568d36ceb614a0fc8b276191b", "rev": "80432e15452e55a72403da3bc91837508a4ccae3",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -86,11 +86,11 @@
}, },
"darwin-custom-icons": { "darwin-custom-icons": {
"locked": { "locked": {
"lastModified": 1693410124, "lastModified": 1693410673,
"narHash": "sha256-DXjBumqDVHoTgB4JOZeDWMhYpgHmk9qoSziYFLclfL0=", "narHash": "sha256-oHw98kktSorqgd73tOskTkE7AfWfNee7QTxJeMkd640=",
"owner": "ryanccn", "owner": "ryanccn",
"repo": "nix-darwin-custom-icons", "repo": "nix-darwin-custom-icons",
"rev": "9095bdc551000d789ea0e829c98ec3d5c7a9e9d9", "rev": "347800c2704b4adb76aaf06fbf0be7831431785b",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -160,11 +160,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1693399033, "lastModified": 1693646047,
"narHash": "sha256-yXhiMo8MnE86sGtPIHAKaLHhmhe8v9tqGGotlUgKJvY=", "narHash": "sha256-VsuXtCGOhrzp1qb1CSoV/cO+5f+GPtA4J/SFYqqLyfo=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "f5c15668f9842dd4d5430787d6aa8a28a07f7c10", "rev": "fae8af43e201a8929ce45a5ea46192bbd1ffff18",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -195,11 +195,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1693355128, "lastModified": 1693626178,
"narHash": "sha256-+ZoAny3ZxLcfMaUoLVgL9Ywb/57wP+EtsdNGuXUJrwg=", "narHash": "sha256-Rpiy6lIOu4zny8tfGuIeN1ji9eSz9nPmm9yBhh/4IOM=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "a63a64b593dcf2fe05f7c5d666eb395950f36bc9", "rev": "bfb7dfec93f3b5d7274db109f2990bc889861caf",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -211,25 +211,16 @@
}, },
"nyoom": { "nyoom": {
"inputs": { "inputs": {
"crane": [
"crane"
],
"flake-utils": [
"flake-utils"
],
"nixpkgs": [ "nixpkgs": [
"nixpkgs" "nixpkgs"
],
"rust-overlay": [
"rust-overlay"
] ]
}, },
"locked": { "locked": {
"narHash": "sha256-51XzimvuTezhbKBg7/U+6QFl/RXor3iumy9GAXdA6l4=", "narHash": "sha256-fEgGb/WwElJ6GFiwa4dFMdx/8yc4A8Z8qKJZQJWNgqc=",
"rev": "7fb2b2be7a07718e0b49d8222f563cd25257cded", "rev": "4cf0278ee6818538a5f82f983565b0ebd21906b4",
"revCount": 109, "revCount": 121,
"type": "tarball", "type": "tarball",
"url": "https://api.flakehub.com/f/pinned/ryanccn/nyoom/0.6.5/018a203b-daba-72a1-9e8b-44c62cc3acf1/source.tar.gz" "url": "https://api.flakehub.com/f/pinned/ryanccn/nyoom/0.7.0/018a5964-350b-746e-b614-5a927a72b5c1/source.tar.gz"
}, },
"original": { "original": {
"type": "tarball", "type": "tarball",
@ -262,11 +253,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1693361441, "lastModified": 1693707092,
"narHash": "sha256-TRFdMQj9wSKMduNqe/1xF8TzcPWEdcn/hKWcVcZ5fO8=", "narHash": "sha256-HR1EnynBSPqbt+04/yxxqsG1E3n6uXrOl7SPco/UnYo=",
"owner": "oxalica", "owner": "oxalica",
"repo": "rust-overlay", "repo": "rust-overlay",
"rev": "1fb2aa49635e9f30b6fa211ab7c454f7175e1ba3", "rev": "98ccb73e6eefc481da6039ee57ad8818d1ca8d56",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -39,9 +39,6 @@
nyoom = { nyoom = {
url = "https://flakehub.com/f/ryanccn/nyoom/0.*.tar.gz"; url = "https://flakehub.com/f/ryanccn/nyoom/0.*.tar.gz";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
inputs.crane.follows = "crane";
inputs.rust-overlay.follows = "rust-overlay";
inputs.flake-utils.follows = "flake-utils";
}; };
rust-overlay = { rust-overlay = {
@ -73,6 +70,7 @@
}; };
outputs = { outputs = {
self,
nix-darwin, nix-darwin,
home-manager, home-manager,
darwin-custom-icons, darwin-custom-icons,
@ -87,5 +85,16 @@
specialArgs = {inherit inputs;}; specialArgs = {inherit inputs;};
}; };
checks = {
aarch64-darwin =
builtins.mapAttrs (
_: v:
builtins.seq
v.config.system.build.toplevel
v.pkgs.emptyFile
)
self.darwinConfigurations;
};
}; };
} }

View file

@ -1,5 +1,4 @@
{ {
pkgs,
config, config,
ctpModule, ctpModule,
discord-applemusic-rich-presence, discord-applemusic-rich-presence,
@ -10,10 +9,14 @@
imports = [ imports = [
ctpModule ctpModule
discord-applemusic-rich-presence discord-applemusic-rich-presence
./programs/variables.nix ./programs/variables.nix
./programs/fonts.nix
./programs/zsh.nix ./programs/zsh.nix
./programs/fish.nix ./programs/fish.nix
./programs/starship.nix ./programs/starship.nix
./programs/git.nix ./programs/git.nix
./programs/bat.nix ./programs/bat.nix
./programs/helix.nix ./programs/helix.nix
@ -23,10 +26,6 @@
]; ];
programs.home-manager.enable = true; programs.home-manager.enable = true;
home.packages = with pkgs; [
ryan-mono-bin
ryan-term-bin
];
services.discord-applemusic-rich-presence = { services.discord-applemusic-rich-presence = {
enable = true; enable = true;

12
programs/fonts.nix Normal file
View file

@ -0,0 +1,12 @@
{pkgs, ...}: {
home.packages = with pkgs; [
inter
public-sans
inriafonts
ibm-plex
monocraft
ryan-mono-bin
ryan-term-bin
(nerdfonts.override {fonts = ["CascadiaCode"];})
];
}