1
0
Fork 0
mirror of https://github.com/ryanccn/flake.git synced 2026-01-27 04:06:28 +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" "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": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1725194671, "lastModified": 1725194671,
@ -205,6 +225,7 @@
"home-manager": "home-manager", "home-manager": "home-manager",
"nish": "nish", "nish": "nish",
"nix-darwin": "nix-darwin", "nix-darwin": "nix-darwin",
"nix-index-database": "nix-index-database",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",
"nrr": "nrr", "nrr": "nrr",
"nyoom": "nyoom", "nyoom": "nyoom",

View file

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

View file

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

View file

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