This commit is contained in:
Vivian 2023-11-10 23:41:30 +01:00
parent 2713f04a9e
commit 99c5b9d802
3 changed files with 114 additions and 113 deletions

View file

@ -5,8 +5,7 @@ let
dnd-5e-latex-template = { pkgs = [ pkgs.v.dnd-5e-latex-template ]; };
};
my-python-packages = ps: with ps; [ pandas requests numpy ];
in
{
in {
home.packages = with pkgs; [
(python3.withPackages my-python-packages)
btop
@ -44,9 +43,11 @@ in
# Enable my own hm modules
themes.v.catppuccin.enable = true;
programs = {
v.vscode.enable = true;
v.nvim.enable = true;
v.rust.enable = true;
v = {
vscode.enable = true;
nvim.enable = true;
rust.enable = true;
};
riff = {
enable = true;
@ -72,16 +73,13 @@ in
thunderbird = {
enable = true;
profiles.default = {
isDefault = true;
};
profiles.default = { isDefault = true; };
};
};
# Syncthing
services.syncthing.enable = true;
xdg.userDirs =
let home = config.home.homeDirectory;
xdg.userDirs = let home = config.home.homeDirectory;
in {
enable = true;
createDirectories = true;

View file

@ -4,9 +4,10 @@ let cfg = config.programs.v.rust;
in {
options.programs.v.rust = { enable = mkEnableOption "rust"; };
config = mkIf cfg.enable {
home.packages = with pkgs; [ rustup ];
home = {
packages = with pkgs; [ rustup ];
home.file = {
file = {
".cargo/config.toml".text = ''
[registries.crates-io]
protocol = "sparse"
@ -16,6 +17,7 @@ in {
'';
};
home.sessionPath = [ "$HOME/.cargo/bin" ];
sessionPath = [ "$HOME/.cargo/bin" ];
};
};
}

View file

@ -9,8 +9,7 @@ let
db_name = "dex";
inherit (config.meta.exposes.dex) port;
metricsPort = 5558;
in
{
in {
imports = [ ];
# This value determines the NixOS release from which the default
@ -23,7 +22,10 @@ in
networking.firewall.allowedTCPPorts = [ port metricsPort ];
services.postgresql = {
vault-secrets.secrets.dex = { };
services = {
postgresql = {
enable = true;
package = pkgs.postgresql_15;
ensureDatabases = [ db_name ];
@ -36,9 +38,7 @@ in
}];
};
vault-secrets.secrets.dex = { };
services.dex = {
dex = {
enable = true;
settings = {
issuer = "https://dex.0x76.dev";
@ -102,7 +102,7 @@ in
environmentFile = "${vs.dex}/environment";
};
services.oauth2_proxy = {
oauth2_proxy = {
enable = true;
provider = "oidc";
redirectURL = "https://o2p.0x76.dev/oauth2/callback";
@ -110,4 +110,5 @@ in
httpAddress = "0.0.0.0:4180";
keyFile = "";
};
};
}