refactor *started*
This commit is contained in:
parent
d0413cb830
commit
db2103a37d
103 changed files with 1008 additions and 786 deletions
22
home/modules/misc/bitwarden.nix
Normal file
22
home/modules/misc/bitwarden.nix
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
options = {
|
||||
misc = {
|
||||
bitwarden.enable = lib.mkEnableOption "enable bitwarden";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf config.misc.bitwarden.enable {
|
||||
home.packages = with pkgs; [
|
||||
rbw
|
||||
pinentry-curses
|
||||
(lib.mkIf (config.desktop.rofi.enable) rofi-rbw)
|
||||
];
|
||||
};
|
||||
}
|
||||
15
home/modules/misc/default.nix
Normal file
15
home/modules/misc/default.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./bitwarden.nix
|
||||
./syncthing.nix
|
||||
./secrets.nix
|
||||
./obsidian.nix
|
||||
];
|
||||
}
|
||||
20
home/modules/misc/obsidian.nix
Normal file
20
home/modules/misc/obsidian.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
options = {
|
||||
misc = {
|
||||
obsidian.enable = lib.mkEnableOption "enable obsidian";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf config.misc.obsidian.enable {
|
||||
home.packages = with pkgs; [
|
||||
obsidian
|
||||
];
|
||||
};
|
||||
}
|
||||
17
home/modules/misc/secrets.nix
Normal file
17
home/modules/misc/secrets.nix
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
pass
|
||||
gnome-keyring
|
||||
seahorse
|
||||
libsecret
|
||||
gcr
|
||||
];
|
||||
services.gnome-keyring.enable = true;
|
||||
}
|
||||
42
home/modules/misc/syncthing.nix
Normal file
42
home/modules/misc/syncthing.nix
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
options = {
|
||||
syncthing.devices = lib.mkOption {
|
||||
default = { };
|
||||
description = ''
|
||||
set syncthing devices
|
||||
'';
|
||||
};
|
||||
syncthing.folders = lib.mkOption {
|
||||
default = { };
|
||||
description = ''
|
||||
set syncthing folders
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
config = {
|
||||
home.packages = with pkgs; [
|
||||
localsend
|
||||
];
|
||||
services = {
|
||||
syncthing = {
|
||||
enable = true;
|
||||
tray.enable = true;
|
||||
guiAddress = "0.0.0.0:8384";
|
||||
settings = {
|
||||
devices = config.syncthing.devices;
|
||||
folders = config.syncthing.folders;
|
||||
};
|
||||
overrideDevices = lib.mkIf (config.syncthing.devices == { }) false;
|
||||
overrideFolders = lib.mkIf (config.syncthing.folders == { }) false;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue