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

feat: add comma & nix-index-database

This commit is contained in:
Ryan Cao 2024-09-04 19:02:23 +08:00
parent 1833524619
commit 158cebb96e
Signed by: ryanccn
GPG key ID: 48C96B2057D71CB1
4 changed files with 32 additions and 0 deletions

21
flake.lock generated
View file

@ -125,6 +125,26 @@
"type": "github"
}
},
"nix-index-database": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1725161148,
"narHash": "sha256-WfAHq3Ag3vLNFfWxKHjFBFdPI6JIideWFJod9mx1eoo=",
"owner": "nix-community",
"repo": "nix-index-database",
"rev": "32058e9138248874773630c846563b1a78ee7a5b",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "nix-index-database",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1725194671,
@ -205,6 +225,7 @@
"home-manager": "home-manager",
"nish": "nish",
"nix-darwin": "nix-darwin",
"nix-index-database": "nix-index-database",
"nixpkgs": "nixpkgs",
"nrr": "nrr",
"nyoom": "nyoom",

View file

@ -20,6 +20,11 @@
url = "github:catppuccin/nix";
};
nix-index-database = {
url = "github:nix-community/nix-index-database";
inputs.nixpkgs.follows = "nixpkgs";
};
am = {
url = "github:ryanccn/am";
inputs.nixpkgs.follows = "nixpkgs";
@ -66,6 +71,7 @@
nix-darwin,
home-manager,
darwin-custom-icons,
nix-index-database,
...
}@inputs:
{
@ -73,6 +79,7 @@
modules = [
home-manager.darwinModules.home-manager
darwin-custom-icons.darwinModules.default
nix-index-database.darwinModules.nix-index
./system.nix
];

View file

@ -13,6 +13,8 @@
DENO_NO_UPDATE_CHECK = "1";
CSC_IDENTITY_AUTO_DISCOVERY = "false";
COMMA_NIXPKGS_FLAKE = "n";
LESSHISTFILE = "${config.xdg.stateHome}/less/history";
NPM_CONFIG_USERCONFIG = "${config.xdg.configHome}/npm/npmrc";
CARGO_HOME = "${config.xdg.dataHome}/cargo";

View file

@ -54,4 +54,6 @@
config.allowUnfree = true;
hostPlatform = "aarch64-darwin";
};
programs.nix-index-database.comma.enable = true;
}