Added comma.nix

This commit is contained in:
Random936 2025-05-02 12:15:56 -07:00
parent e6b920dee2
commit 741e2ab222
3 changed files with 32 additions and 1 deletions

21
flake.lock generated
View File

@ -41,6 +41,26 @@
"type": "github"
}
},
"nix-index-database": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1746054057,
"narHash": "sha256-iR+idGZJ191cY6NBXyVjh9QH8GVWTkvZw/w+1Igy45A=",
"owner": "nix-community",
"repo": "nix-index-database",
"rev": "13ba07d54c6ccc5af30a501df669bf3fe3dd4db8",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "nix-index-database",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1744232761,
@ -61,6 +81,7 @@
"inputs": {
"home-manager": "home-manager",
"nix-darwin": "nix-darwin",
"nix-index-database": "nix-index-database",
"nixpkgs": "nixpkgs"
}
}

View File

@ -12,9 +12,14 @@
url = "github:LnL7/nix-darwin";
inputs.nixpkgs.follows = "nixpkgs";
};
nix-index-database = {
url = "github:nix-community/nix-index-database";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, nix-darwin, home-manager, ... } @ inputs: {
outputs = { self, nixpkgs, nix-darwin, home-manager, nix-index-database, ... } @ inputs: {
# Nixos Configurations
@ -126,6 +131,7 @@
pkgs = nixpkgs.legacyPackages."aarch64-darwin";
modules = [
./home/darwin.nix
./home/modules/comma.nix
];
};
};

4
home/modules/comma.nix Normal file
View File

@ -0,0 +1,4 @@
{ config, pkgs, inputs, ...}: {
imports = [ inputs.nix-index-database.hmModules.nix-index ];
programs.nix-index-database.comma.enable = true;
}