Signed-off-by: Oliver Davies <oliver@oliverdavies.uk>
This commit is contained in:
parent
2783c9811d
commit
a1b3975f39
6 changed files with 63 additions and 30 deletions
24
modules/z.nix
Normal file
24
modules/z.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{ inputs, withSystem, ... }:
|
||||
|
||||
let
|
||||
name = "z";
|
||||
in
|
||||
{
|
||||
perSystem =
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
packages.${name} = inputs.${name}.packages.${pkgs.system}.default;
|
||||
};
|
||||
|
||||
flake.modules.homeManager.base =
|
||||
{ config, pkgs, ... }:
|
||||
{
|
||||
home.packages = [
|
||||
(withSystem pkgs.system (psArgs: psArgs.config.packages.${name}))
|
||||
];
|
||||
|
||||
home.sessionVariables = {
|
||||
ZET_DIRECTORY = "${config.home.sessionVariables.NOTES_DIRECTORY}/${name}";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue