diff --git a/flake.lock b/flake.lock index f2d3b20..afb5519 100644 --- a/flake.lock +++ b/flake.lock @@ -333,11 +333,11 @@ ] }, "locked": { - "lastModified": 1753173701, - "narHash": "sha256-G++FZ4+OsjUMH9S6MmLICZn8mDRX2LN6PGArf2zQ8pw=", + "lastModified": 1753180694, + "narHash": "sha256-2YY7H12n7AisL/I4Xu6y3JWAQ414NHPlpDVbZmmcD30=", "owner": "kylekrein", "repo": "emacs-config", - "rev": "de0c02bcebb2acb4e840930504eaf79afd8a8f98", + "rev": "c9040399a4842f8b53ae17b55a208647d403841c", "type": "github" }, "original": { diff --git a/nixos/configuration.nix b/nixos/configuration.nix index 60051e6..2e6e077 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -30,6 +30,7 @@ in ./modules/dolphin ./modules/emacs ./modules/gnupg + ./modules/direnv ./hosts/${hwconfig.hostname} ] ++ lib.optional (hwconfig.useImpermanence) ./modules/impermanence; facter.reportPath = ./hosts/${hwconfig.hostname}/facter.json; diff --git a/nixos/homes/kylekrein/niri.nix b/nixos/homes/kylekrein/niri.nix index 55c71ba..c7a574c 100644 --- a/nixos/homes/kylekrein/niri.nix +++ b/nixos/homes/kylekrein/niri.nix @@ -235,6 +235,17 @@ open-floating = true; open-focused = true; } + { #PiP + matches = [ + { + title = "Picture-in-Picture"; + } + ]; + open-floating = true; + open-focused = false; + opacity = 1.0; + default-floating-position = { x = 0; y = 0; relative-to = "top-right"; }; + } ]; debug = lib.mkIf (hwconfig.hostname == "kylekrein-mac") { render-drm-device = "/dev/dri/renderD128"; diff --git a/nixos/modules/direnv/default.nix b/nixos/modules/direnv/default.nix new file mode 100644 index 0000000..20fd92c --- /dev/null +++ b/nixos/modules/direnv/default.nix @@ -0,0 +1,7 @@ +{ pkgs, ...}: +{ + programs.direnv = { + enable = true; + nix-direnv.enable = true; + }; +} diff --git a/nixos/wsl.nix b/nixos/wsl.nix index 95e8b53..fa04ea3 100644 --- a/nixos/wsl.nix +++ b/nixos/wsl.nix @@ -14,6 +14,7 @@ ./modules/flatpak ./modules/emacs ./modules/gnupg + ./modules/direnv ./hosts/${hwconfig.hostname} ] ++ lib.optional (hwconfig.useImpermanence) ./modules/impermanence;