Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
19e6929219 | ||
|
|
f25207b429 |
No files matched your search
@@ -0,0 +1,23 @@
|
||||
{ lib, config, ... }:
|
||||
let
|
||||
enabled = config.mod.atuin.enable;
|
||||
port = 8889;
|
||||
in
|
||||
{
|
||||
options = {
|
||||
mod.atuin = {
|
||||
enable = lib.mkEnableOption "Enable atuin module";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf enabled {
|
||||
services.atuin = {
|
||||
enable = true;
|
||||
host = "0.0.0.0";
|
||||
inherit port;
|
||||
openFirewall = true;
|
||||
openRegistration = true;
|
||||
database.createLocally = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -30,6 +30,7 @@ in
|
||||
solo-referee.enable = true;
|
||||
todo.enable = true;
|
||||
schema.enable = true;
|
||||
atuin.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
{ lib, config, ... }:
|
||||
let
|
||||
enabled = config.mod.atuin.enable;
|
||||
in
|
||||
{
|
||||
options = {
|
||||
mod.atuin = {
|
||||
enable = lib.mkEnableOption "enable atuin module";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf enabled {
|
||||
home-manager.users.alex = {
|
||||
programs.atuin = {
|
||||
enable = true;
|
||||
enableZshIntegration = true;
|
||||
|
||||
settings = {
|
||||
sync_address = "http://manatee:8889";
|
||||
auto_sync = true;
|
||||
sync_frequency = "5m";
|
||||
};
|
||||
};
|
||||
|
||||
programs.fzf.historyWidget.command = "";
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -25,6 +25,7 @@ in
|
||||
|
||||
git.enable = true;
|
||||
zsh.enable = true;
|
||||
atuin.enable = true;
|
||||
|
||||
openvpn.enable = true;
|
||||
|
||||
|
||||
Reference in new issue
Block a user