Add selfhosted services

This commit is contained in:
aloslider
2026-06-30 04:26:40 +03:00
parent f212c874b5
commit 13e407847f
78 changed files with 2346 additions and 690 deletions
+8
View File
@@ -0,0 +1,8 @@
{ config, ... }:
{
imports = [
./git.nix
./packages.nix
# ./sops.nix
];
}
+29
View File
@@ -0,0 +1,29 @@
{ config, lib, ... }:
with lib;
let
cfg = config.programs.git.options;
in
{
options.programs.git.options = {
username = mkOption {
type = types.str;
default = "aloslider";
};
email = mkOption {
type = types.str;
default = "53711835+aloslider@users.noreply.github.com";
};
};
config = {
programs.git = {
settings = {
user = {
name = cfg.username;
email = cfg.email;
};
init.defaultBranch = "master";
};
};
};
}
+10
View File
@@ -0,0 +1,10 @@
{ config, pkgs, ... }:
{
home.packages = with pkgs; [
chezmoi
fzf
lazygit
lazydocker
sops
];
}
+18
View File
@@ -0,0 +1,18 @@
{ config, dotfiles, sops-nix, ... }:
{
imports = [
sops-nix.homeManagerModules.sops
];
sops = {
defaultSopsFile = "${dotfiles}/dot_config/sops/secrets.yaml";
age.keyFile = "${config.xdg.configHome}/sops/age/keys.txt";
};
home.file.".sops.yaml".source = "${dotfiles}/dot_sops.yaml";
xdg.configFile."sops" = {
source = "${dotfiles}/dot_config/sops";
recursive = true;
};
}