From 4c81daeaa443f72dd22ff6d47f75b4f0c4f4e1d1 Mon Sep 17 00:00:00 2001 From: buffet Date: Sun, 21 Jan 2024 17:10:23 +0100 Subject: [PATCH] feat: install comma --- flake.lock | 21 +++++++++++++++++++++ flake.nix | 5 +++++ users/buffet/comma.nix | 11 +++++++++++ users/buffet/default.nix | 6 +++++- 4 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 users/buffet/comma.nix diff --git a/flake.lock b/flake.lock index 9ce078d..f84a782 100644 --- a/flake.lock +++ b/flake.lock @@ -85,6 +85,26 @@ "type": "github" } }, + "nix-index-database": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1705806513, + "narHash": "sha256-FcOmNjhHFfPz2udZbRpZ1sfyhVMr+C2O8kOxPj+HDDk=", + "owner": "Mic92", + "repo": "nix-index-database", + "rev": "f8e04fbcebcc24cebc91989981bd45f69b963ed7", + "type": "github" + }, + "original": { + "owner": "Mic92", + "repo": "nix-index-database", + "type": "github" + } + }, "nixos-hardware": { "locked": { "lastModified": 1705312285, @@ -167,6 +187,7 @@ "inputs": { "agenix": "agenix", "home-manager": "home-manager_2", + "nix-index-database": "nix-index-database", "nixos-hardware": "nixos-hardware", "nixpkgs": "nixpkgs_2", "nixpkgs-unstable": "nixpkgs-unstable", diff --git a/flake.nix b/flake.nix index 375d253..17b907f 100644 --- a/flake.nix +++ b/flake.nix @@ -10,6 +10,11 @@ url = "github:nix-community/home-manager/release-23.11"; inputs.nixpkgs.follows = "nixpkgs"; }; + + nix-index-database = { + url = "github:Mic92/nix-index-database"; + inputs.nixpkgs.follows = "nixpkgs"; + }; }; outputs = { diff --git a/users/buffet/comma.nix b/users/buffet/comma.nix new file mode 100644 index 0000000..726211e --- /dev/null +++ b/users/buffet/comma.nix @@ -0,0 +1,11 @@ +{pkgs, nix-index-database, ...}: { + home-manager.users.buffet = { + home = { + file.".cache/nix-index/files".source = nix-index-database.legacyPackages.${pkgs.stdenv.system}.database; + + packages = with pkgs; [ + comma + ]; + }; + }; +} diff --git a/users/buffet/default.nix b/users/buffet/default.nix index 669e0bc..d3754a0 100644 --- a/users/buffet/default.nix +++ b/users/buffet/default.nix @@ -1,7 +1,11 @@ -{pkgs, ...}: { +{ + pkgs, + ... +}: { imports = [ ./bash.nix ./cargo.nix + ./comma.nix ./firefox.nix ./foot.nix ./git.nix