2023-06-22 18:46:20 +02:00
|
|
|
{ home-manager, stylix, lib, ... }:
|
|
|
|
|
|
|
|
{
|
2023-06-18 04:43:00 +02:00
|
|
|
containers.obsidian = {
|
|
|
|
privateNetwork = true;
|
|
|
|
ephemeral = true;
|
|
|
|
|
|
|
|
bindMounts = {
|
|
|
|
"/mnt" = {
|
2023-06-22 17:43:19 +02:00
|
|
|
hostPath = "/home/user/containers/obsidian";
|
2023-06-18 04:43:00 +02:00
|
|
|
isReadOnly = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
waylandDisplay = rec {
|
|
|
|
hostPath = "/run/user/1000";
|
|
|
|
mountPoint = hostPath;
|
|
|
|
};
|
|
|
|
|
|
|
|
x11Display = rec {
|
|
|
|
hostPath = "/tmp/.X11-unix";
|
|
|
|
mountPoint = hostPath;
|
|
|
|
isReadOnly = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
config = { pkgs, ... }: {
|
2023-06-22 18:46:20 +02:00
|
|
|
imports = [
|
|
|
|
home-manager.nixosModules.home-manager
|
|
|
|
stylix.nixosModules.stylix
|
|
|
|
../setup.nix
|
|
|
|
];
|
2023-06-18 04:43:00 +02:00
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
obsidian
|
|
|
|
];
|
2023-06-22 18:46:20 +02:00
|
|
|
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
|
|
|
|
"obsidian"
|
|
|
|
];
|
2023-06-18 04:43:00 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|