wip: trying to get obsidian working
not a working build, syntax issues, added options that are not available in stable home-manager
This commit is contained in:
15
flake.nix
15
flake.nix
@@ -2,11 +2,16 @@
|
|||||||
description = "Wyatt's nix configuration suite";
|
description = "Wyatt's nix configuration suite";
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.05";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.05";
|
||||||
|
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
nix-flatpak.url = "github:gmodena/nix-flatpak/?ref=v0.6.0";
|
nix-flatpak.url = "github:gmodena/nix-flatpak/?ref=v0.6.0";
|
||||||
home-manager = {
|
home-manager = {
|
||||||
url = "github:nix-community/home-manager/release-25.05";
|
url = "github:nix-community/home-manager/release-25.05";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
home-manager-unstable = {
|
||||||
|
url = "https://github.com/nix-community/home-manager";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs-unstable";
|
||||||
|
};
|
||||||
darwin = {
|
darwin = {
|
||||||
url = "github:lnl7/nix-darwin/nix-darwin-25.05";
|
url = "github:lnl7/nix-darwin/nix-darwin-25.05";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
@@ -17,9 +22,11 @@
|
|||||||
outputs = inputs @ {
|
outputs = inputs @ {
|
||||||
self,
|
self,
|
||||||
nixpkgs,
|
nixpkgs,
|
||||||
|
nixpkgs-unstable,
|
||||||
nix-flatpak,
|
nix-flatpak,
|
||||||
darwin,
|
darwin,
|
||||||
home-manager,
|
home-manager,
|
||||||
|
home-manager-unstable,
|
||||||
ghostty,
|
ghostty,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
@@ -28,6 +35,10 @@
|
|||||||
extraSpecialArgs = {
|
extraSpecialArgs = {
|
||||||
inherit userName userEmail ghostty;
|
inherit userName userEmail ghostty;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
obsidianOverlay = final: prev: {
|
||||||
|
obsidian = nixpkgs-unstable.legacyPackages.${final.system}.obsidian;
|
||||||
|
};
|
||||||
in {
|
in {
|
||||||
meta = import ./meta;
|
meta = import ./meta;
|
||||||
|
|
||||||
@@ -66,6 +77,10 @@
|
|||||||
./modules/common
|
./modules/common
|
||||||
./modules/machine/cloud
|
./modules/machine/cloud
|
||||||
|
|
||||||
|
{
|
||||||
|
nixpkgs.overlays = [ obsidianOverlay ];
|
||||||
|
}
|
||||||
|
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
{
|
{
|
||||||
home-manager.useGlobalPkgs = true;
|
home-manager.useGlobalPkgs = true;
|
||||||
|
@@ -1,24 +1,25 @@
|
|||||||
{ config, pkgs, ...}: {
|
{ config, home-manager-unstable, pkgs, ...}: {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
obsidian
|
obsidian
|
||||||
obsidian-export
|
obsidian-export
|
||||||
];
|
];
|
||||||
# programs.obsidian = {
|
programs.obsidian = {
|
||||||
# enable = true;
|
enable = true;
|
||||||
# vaults = {
|
package =
|
||||||
# "notes" = {
|
vaults = {
|
||||||
# enable = true;
|
"notes" = {
|
||||||
# target = "${config.home.homeDirectory}/Documents/obsidian/notes";
|
enable = true;
|
||||||
# };
|
target = "${config.home.homeDirectory}/Documents/obsidian/notes";
|
||||||
# "work-notes" = {
|
};
|
||||||
# enable = true;
|
"work-notes" = {
|
||||||
# target = "${config.home.homeDirectory}/Documents/obsidian/work-notes";
|
enable = true;
|
||||||
# };
|
target = "${config.home.homeDirectory}/Documents/obsidian/work-notes";
|
||||||
# };
|
};
|
||||||
# # defaultSettings = {
|
};
|
||||||
# # themes = [ "catppuccin" ];
|
# defaultSettings = {
|
||||||
# # };
|
# themes = [ "catppuccin" ];
|
||||||
# };
|
# };
|
||||||
|
};
|
||||||
|
|
||||||
home.activation.obsidianRepos = config.lib.dag.entryAfter ["writeBoundary"] ''
|
home.activation.obsidianRepos = config.lib.dag.entryAfter ["writeBoundary"] ''
|
||||||
REPOS_DIR="${config.home.homeDirectory}/Documents/obsidian"
|
REPOS_DIR="${config.home.homeDirectory}/Documents/obsidian"
|
||||||
|
Reference in New Issue
Block a user