removing some dead code and some fixes
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
cfg = config.home.services.nix-index;
|
||||
in {
|
||||
options = {
|
||||
home.services.nix-index.enable = mkEnableOption "Enables dunst";
|
||||
home.services.nix-index.enable = mkEnableOption "Enables nix-index";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
programs.nix-index = {
|
||||
@@ -29,11 +29,10 @@ in {
|
||||
coreutils
|
||||
];
|
||||
text = ''
|
||||
mkdir -p ~/.cache/nix-index
|
||||
cd ~/.cache/nix-index
|
||||
name="index-${pkgs.stdenv.system}"
|
||||
wget -N "https://github.com/nix-community/nix-index-database/releases/latest/download/$name"
|
||||
ln -sf "$name" "files"
|
||||
filename="index-$(uname -m | sed 's/^arm64$/aarch64/')-$(uname | tr A-Z a-z)"
|
||||
mkdir -p ~/.cache/nix-index && cd ~/.cache/nix-index
|
||||
wget -q -N https://github.com/nix-community/nix-index-database/releases/latest/download/$filename
|
||||
ln -f $filename files
|
||||
'';
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user