forked from extern/nix-config
43 lines
847 B
Nix
43 lines
847 B
Nix
{ home-manager, stylix, lib, ... }:
|
|
|
|
{
|
|
containers.obsidian = {
|
|
privateNetwork = true;
|
|
ephemeral = true;
|
|
|
|
bindMounts = {
|
|
"/mnt" = {
|
|
hostPath = "/home/user/containers/obsidian";
|
|
isReadOnly = false;
|
|
};
|
|
|
|
waylandDisplay = rec {
|
|
hostPath = "/run/user/1000";
|
|
mountPoint = hostPath;
|
|
};
|
|
|
|
x11Display = rec {
|
|
hostPath = "/tmp/.X11-unix";
|
|
mountPoint = hostPath;
|
|
isReadOnly = true;
|
|
};
|
|
};
|
|
|
|
config = { pkgs, ... }: {
|
|
imports = [
|
|
home-manager.nixosModules.home-manager
|
|
stylix.nixosModules.stylix
|
|
../setup.nix
|
|
];
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
obsidian
|
|
];
|
|
|
|
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
|
|
"obsidian"
|
|
];
|
|
};
|
|
};
|
|
}
|