vaultwarden

This commit is contained in:
Tristan 2024-02-17 01:01:37 +00:00
parent b5b763bd40
commit 9d661deba1
7 changed files with 90 additions and 82 deletions

View file

@ -32,9 +32,9 @@
(auto-login "Hyprland") (auto-login "Hyprland")
./nixos/programs/gamer.nix ./nixos/programs/gamer.nix
./nixos/programs/personal.nix ./nixos/programs/personal.nix
./nixos/programs/anki.nix
./nixos/workstation.nix ./nixos/workstation.nix
] [ ] [
./home/workstation.nix
./home/desktop/hyprland/. ./home/desktop/hyprland/.
./home/programs/graphical.nix ./home/programs/graphical.nix
./home/programs/gamer.nix ./home/programs/gamer.nix
@ -48,6 +48,7 @@
./nixos/modules/work.nix ./nixos/modules/work.nix
./nixos/workstation.nix ./nixos/workstation.nix
] [ ] [
./home/workstation.nix
./home/desktop/hyprland/. ./home/desktop/hyprland/.
./home/programs/work.nix ./home/programs/work.nix
./home/programs/graphical.nix ./home/programs/graphical.nix
@ -55,7 +56,9 @@
alpine = mkConf [ alpine = mkConf [
./hardware/alpine.nix ./hardware/alpine.nix
./nixos/programs/anki.nix ./nixos/services/anki.nix
./nixos/services/forgejo.nix
./nixos/services/vaultwarden.nix
] []; ] [];
vm-sway = vm-sway =

View file

@ -134,7 +134,12 @@ in {
"git.tristans.cloud" = { "git.tristans.cloud" = {
forceSSL = true; forceSSL = true;
enableACME = 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"]; domains = ["tlbean"];
}; };
services.forgejo = {
enable = true;
dump.enable = true;
lfs.enable = true;
settings = {
server = {
DOMAIN = "git.tristans.cloud";
};
service = {
DISABLE_REGISTRATION = true;
};
};
};
} }

View file

@ -4,35 +4,15 @@
lib, lib,
... ...
}: }:
# https://nix-community.github.io/home-manager/options.xhtml
{ {
imports = [ 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/neovim/.
./programs/helix.nix ./programs/helix.nix
./programs/git.nix ./programs/git.nix
./programs/lf/. ./programs/lf/.
./programs/zsh.nix ./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; programs.home-manager.enable = true;
home.homeDirectory = "/home/${config.home.username}"; home.homeDirectory = "/home/${config.home.username}";
@ -51,70 +31,26 @@
mosh mosh
ripgrep ripgrep
usbutils usbutils
# wl-clipboard
du-dust du-dust
htop htop
libsixel libsixel
yt-dlp yt-dlp
ytfzf ytfzf
# playerctl
neofetch neofetch
tree tree
ansible ansible
# quickemu
]; ];
services.udiskie = {
enable = true;
notify = true;
};
programs.rbw = { programs.rbw = {
enable = true; enable = true;
settings = { settings = {
email = "tristan@tristans.cloud"; email = "tristan@tristans.cloud";
base_url = "https://vault.tristans.cloud"; base_url = "https://vault.tristans.cloud";
pinentry = "gnome3"; pinentry = lib.mkDefault "tty";
}; };
}; };
programs.ssh.enable = true; 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; programs.direnv.enable = true;
} }

58
home/workstation.nix Normal file
View 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;
};
}

View 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;
};
};
};
}

View file

@ -0,0 +1,5 @@
{
services.vaultwarden = {
enable = true;
};
}