add obsidian

This commit is contained in:
Andreas Zweili 2021-11-29 15:53:01 +01:00
parent 29fd4f00fb
commit d7e29b9c46
2 changed files with 21 additions and 0 deletions

View File

@ -3,6 +3,7 @@
imports = [
./common.nix
./common/git/git.nix
./obsidian.nix
];
nixpkgs.config.allowUnfree = true;
home.packages = with pkgs; [

20
home-manager/obsidian.nix Normal file
View File

@ -0,0 +1,20 @@
{ config, pkgs, ... }:
let
unstable = import
(builtins.fetchGit {
# Descriptive name to make the store path easier to identify
url = "https://github.com/nixos/nixpkgs/";
# Commit hash for nixos-unstable as of 2018-09-12
# `git ls-remote https://github.com/nixos/nixpkgs nixos-unstable`
ref = "refs/heads/nixos-unstable";
rev = "942eb9a335b4cd22fa6a7be31c494e53e76f5637";
}) # reuse the current configuration
{
config = config.nixpkgs.config;
};
in
{
home.packages = with pkgs; [
unstable.obsidian
];
}