vaultwarden
This commit is contained in:
parent
b5b763bd40
commit
9d661deba1
7 changed files with 90 additions and 82 deletions
|
|
@ -32,9 +32,9 @@
|
|||
(auto-login "Hyprland")
|
||||
./nixos/programs/gamer.nix
|
||||
./nixos/programs/personal.nix
|
||||
./nixos/programs/anki.nix
|
||||
./nixos/workstation.nix
|
||||
] [
|
||||
./home/workstation.nix
|
||||
./home/desktop/hyprland/.
|
||||
./home/programs/graphical.nix
|
||||
./home/programs/gamer.nix
|
||||
|
|
@ -48,6 +48,7 @@
|
|||
./nixos/modules/work.nix
|
||||
./nixos/workstation.nix
|
||||
] [
|
||||
./home/workstation.nix
|
||||
./home/desktop/hyprland/.
|
||||
./home/programs/work.nix
|
||||
./home/programs/graphical.nix
|
||||
|
|
@ -55,7 +56,9 @@
|
|||
|
||||
alpine = mkConf [
|
||||
./hardware/alpine.nix
|
||||
./nixos/programs/anki.nix
|
||||
./nixos/services/anki.nix
|
||||
./nixos/services/forgejo.nix
|
||||
./nixos/services/vaultwarden.nix
|
||||
] [];
|
||||
|
||||
vm-sway =
|
||||
|
|
|
|||
|
|
@ -134,7 +134,12 @@ in {
|
|||
"git.tristans.cloud" = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
locations."~".proxyPass = "http://localhost:3000";
|
||||
locations."~".proxyPass = "http://localhost:${toString config.services.forgejo.settings.server.HTTP_PORT}";
|
||||
};
|
||||
"vault.tristans.cloud" = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
locations."~".proxyPass = "http://localhost:${toString config.services.vaultwarden.config.ROCKET_PORT}";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
@ -153,18 +158,4 @@ in {
|
|||
domains = ["tlbean"];
|
||||
};
|
||||
|
||||
services.forgejo = {
|
||||
enable = true;
|
||||
dump.enable = true;
|
||||
lfs.enable = true;
|
||||
settings = {
|
||||
server = {
|
||||
DOMAIN = "git.tristans.cloud";
|
||||
};
|
||||
service = {
|
||||
DISABLE_REGISTRATION = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,35 +4,15 @@
|
|||
lib,
|
||||
...
|
||||
}:
|
||||
# https://nix-community.github.io/home-manager/options.xhtml
|
||||
{
|
||||
imports = [
|
||||
# ./modules/terminal.nix
|
||||
# ./modules/scripts.nix
|
||||
# ./modules/email.nix
|
||||
# ./modules/mpd.nix
|
||||
# ./modules/menu.nix
|
||||
# ./modules/scripts.nix
|
||||
|
||||
# ./programs/scripts.nix
|
||||
./programs/neovim/.
|
||||
./programs/helix.nix
|
||||
./programs/git.nix
|
||||
./programs/lf/.
|
||||
./programs/zsh.nix
|
||||
{
|
||||
options.windowManager.modifierKey = lib.mkOption {default = "SUPER";};
|
||||
}
|
||||
];
|
||||
|
||||
# programs.menu = {
|
||||
# package = pkgs.tofi;
|
||||
# dmenuCommand = "${pkgs.tofi}/bin/tofi --fuzzy-match true";
|
||||
# drunCommand = "${pkgs.tofi}/bin/tofi-drun --drun-launch true";
|
||||
# };
|
||||
|
||||
# roles.mpd.enable = true;
|
||||
|
||||
programs.home-manager.enable = true;
|
||||
|
||||
home.homeDirectory = "/home/${config.home.username}";
|
||||
|
|
@ -51,70 +31,26 @@
|
|||
mosh
|
||||
ripgrep
|
||||
usbutils
|
||||
# wl-clipboard
|
||||
du-dust
|
||||
htop
|
||||
libsixel
|
||||
yt-dlp
|
||||
ytfzf
|
||||
# playerctl
|
||||
neofetch
|
||||
tree
|
||||
ansible
|
||||
# quickemu
|
||||
];
|
||||
|
||||
services.udiskie = {
|
||||
enable = true;
|
||||
notify = true;
|
||||
};
|
||||
|
||||
programs.rbw = {
|
||||
enable = true;
|
||||
settings = {
|
||||
email = "tristan@tristans.cloud";
|
||||
base_url = "https://vault.tristans.cloud";
|
||||
pinentry = "gnome3";
|
||||
pinentry = lib.mkDefault "tty";
|
||||
};
|
||||
};
|
||||
|
||||
programs.ssh.enable = true;
|
||||
programs.ssh.matchBlocks = {
|
||||
"git.tristans.cloud" = {
|
||||
user = "git";
|
||||
hostname = "100.116.82.65";
|
||||
port = 2222;
|
||||
};
|
||||
"alpine" = {
|
||||
hostname = "100.116.82.65";
|
||||
user = "tristan";
|
||||
};
|
||||
};
|
||||
|
||||
# home.file.".icons/default".source = "${pkgs.vanilla-dmz}/share/icons/Vanilla-DMZ";
|
||||
|
||||
# home.file.".config/pipewire/pipewire.conf.d/raop-discover.conf".text = ''
|
||||
# context.modules = [
|
||||
# {
|
||||
# name = libpipewire-module-raop-discover
|
||||
# args = { }
|
||||
# }
|
||||
# ]
|
||||
# '';
|
||||
# services.kdeconnect = {
|
||||
# enable = true;
|
||||
# indicator = true;
|
||||
# };
|
||||
|
||||
# programs.pandoc = {
|
||||
# enable = true;
|
||||
# defaults = {
|
||||
# metadata = {
|
||||
# author = "Tristan Beedell";
|
||||
# };
|
||||
# pdf-engine = "xelatex";
|
||||
# };
|
||||
# };
|
||||
|
||||
programs.direnv.enable = true;
|
||||
}
|
||||
|
|
|
|||
58
home/workstation.nix
Normal file
58
home/workstation.nix
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
{
|
||||
imports = [
|
||||
./modules/terminal.nix
|
||||
./modules/scripts.nix
|
||||
./modules/email.nix
|
||||
./modules/mpd.nix
|
||||
./modules/menu.nix
|
||||
./modules/scripts.nix
|
||||
|
||||
./programs/scripts.nix
|
||||
{
|
||||
options.windowManager.modifierKey = lib.mkOption {default = "SUPER";};
|
||||
}
|
||||
];
|
||||
|
||||
programs.menu = {
|
||||
package = pkgs.tofi;
|
||||
dmenuCommand = "${pkgs.tofi}/bin/tofi --fuzzy-match true";
|
||||
drunCommand = "${pkgs.tofi}/bin/tofi-drun --drun-launch true";
|
||||
};
|
||||
roles.mpd.enable = true;
|
||||
|
||||
home.packages = with pkgs; [
|
||||
wl-clipboard
|
||||
playerctl
|
||||
quickemu
|
||||
];
|
||||
|
||||
services.udiskie = {
|
||||
enable = true;
|
||||
notify = true;
|
||||
};
|
||||
|
||||
programs.rbw.settings.pinentry = "gnome3";
|
||||
|
||||
home.file.".icons/default".source = "${pkgs.vanilla-dmz}/share/icons/Vanilla-DMZ";
|
||||
home.file.".config/pipewire/pipewire.conf.d/raop-discover.conf".text = ''
|
||||
context.modules = [
|
||||
{
|
||||
name = libpipewire-module-raop-discover
|
||||
args = { }
|
||||
}
|
||||
]
|
||||
'';
|
||||
|
||||
services.kdeconnect = {
|
||||
enable = true;
|
||||
indicator = true;
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
15
nixos/services/forgejo.nix
Normal file
15
nixos/services/forgejo.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
services.forgejo = {
|
||||
enable = true;
|
||||
dump.enable = true;
|
||||
lfs.enable = true;
|
||||
settings = {
|
||||
server = {
|
||||
DOMAIN = "git.tristans.cloud";
|
||||
};
|
||||
service = {
|
||||
DISABLE_REGISTRATION = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
5
nixos/services/vaultwarden.nix
Normal file
5
nixos/services/vaultwarden.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
services.vaultwarden = {
|
||||
enable = true;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue