Add selfhosted services
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
{ config, ... }:
|
||||
{
|
||||
imports = [
|
||||
./git.nix
|
||||
./packages.nix
|
||||
# ./sops.nix
|
||||
];
|
||||
}
|
||||
@@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
{ config, pkgs, ... }:
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
chezmoi
|
||||
fzf
|
||||
lazygit
|
||||
lazydocker
|
||||
sops
|
||||
];
|
||||
}
|
||||
@@ -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;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user