Move notes configuration
This commit is contained in:
parent
90aaabeed6
commit
111c336abc
8 changed files with 37 additions and 48 deletions
|
@ -7,11 +7,6 @@
|
|||
|
||||
{
|
||||
homeManagerModules = {
|
||||
notes = {
|
||||
enable = true;
|
||||
directory = "$HOME/Documents/wiki/tfw-notes";
|
||||
};
|
||||
|
||||
tmux.enable = true;
|
||||
tmux-sessionizer.enable = true;
|
||||
};
|
||||
|
|
|
@ -2,11 +2,6 @@
|
|||
|
||||
{
|
||||
homeManagerModules = {
|
||||
notes = {
|
||||
enable = true;
|
||||
directory = "$HOME/Documents/wiki/notes";
|
||||
};
|
||||
|
||||
tmux.enable = true;
|
||||
tmux-sessionizer.enable = true;
|
||||
};
|
||||
|
|
|
@ -2,11 +2,6 @@
|
|||
|
||||
{
|
||||
homeManagerModules = {
|
||||
notes = {
|
||||
enable = true;
|
||||
directory = "$HOME/Documents/wiki/notes";
|
||||
};
|
||||
|
||||
tmux.enable = true;
|
||||
tmux-sessionizer.enable = true;
|
||||
};
|
||||
|
|
18
hosts/PW05CH3L/modules/notes.nix
Normal file
18
hosts/PW05CH3L/modules/notes.nix
Normal file
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
home-manager.users.opdavies =
|
||||
{ config, pkgs, ... }:
|
||||
{
|
||||
xdg = {
|
||||
enable = true;
|
||||
userDirs.enable = true;
|
||||
};
|
||||
|
||||
home = {
|
||||
packages = with pkgs; [ notes ];
|
||||
|
||||
sessionVariables = {
|
||||
NOTES_DIRECTORY = "${config.xdg.userDirs.documents}/wiki/tfw-notes";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -27,6 +27,7 @@
|
|||
../../users/opdavies
|
||||
|
||||
./modules/newsboat
|
||||
./modules/notes.nix
|
||||
];
|
||||
|
||||
nix.nixPath = [ "nixpkgs=${inputs.nixpkgs}" ];
|
||||
|
|
18
hosts/t480/modules/notes.nix
Normal file
18
hosts/t480/modules/notes.nix
Normal file
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
home-manager.users.opdavies =
|
||||
{ config, pkgs, ... }:
|
||||
{
|
||||
xdg = {
|
||||
enable = true;
|
||||
userDirs.enable = true;
|
||||
};
|
||||
|
||||
home = {
|
||||
packages = with pkgs; [ notes ];
|
||||
|
||||
sessionVariables = {
|
||||
NOTES_DIRECTORY = "${config.xdg.userDirs.documents}/wiki/notes";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -4,7 +4,6 @@
|
|||
imports = [
|
||||
./bin
|
||||
./git.nix
|
||||
./notes.nix
|
||||
./starship.nix
|
||||
./tmux.nix
|
||||
./tmux-sessionizer.nix
|
||||
|
|
|
@ -1,32 +0,0 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.homeManagerModules.notes;
|
||||
in
|
||||
{
|
||||
options.homeManagerModules.notes = {
|
||||
enable = mkEnableOption "Enable notes";
|
||||
|
||||
directory = mkOption {
|
||||
type = types.str;
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
home = {
|
||||
packages = with pkgs; [ notes ];
|
||||
|
||||
sessionVariables = {
|
||||
NOTES_DIRECTORY = "${cfg.directory}";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue