This commit is contained in:
Hadi 2024-06-19 22:50:58 +02:00
parent 536de64d5c
commit 28dcb1f574
4 changed files with 15 additions and 59 deletions

View File

@ -13,7 +13,6 @@
# System
./system/git
./system/shell
# ./system/sops/server.nix # You should probably remove this line
];
home = {

View File

@ -1,31 +0,0 @@
{ pkgs, ... }: {
# imports = [ inputs.sops-nix.homeManagerModules.sops ];
home.packages = with pkgs; [ sops age ];
# sops = {
# age.keyFile = "/home/hadi/.config/sops/age/keys.txt";
# defaultSopsFile = ../../../secrets/server.yaml;
# secrets = {
# sshconfig = { path = "/home/hadi/.ssh/config"; };
# github-key = { path = "/home/hadi/.ssh/github"; };
# nextcloud-adminpass = {
# path = "/etc/nextcloud/adminpassFile";
# owner = "nextcloud";
# group = "nextcloud";
# };
# cloudflare-apitoken = {
# path = "/etc/cloudflare/apiToken";
# owner = "cloudflare-dyndns";
# group = "cloudflare-dyndns";
# };
# tailscaled-authKey = {
# path = "/etc/tailscale/authKey";
# owner = "tailscaled";
# group = "tailscaled";
# };
# };
# };
# systemd.user.services.mbsync.Unit.After = [ "sops-nix.service" ];
}

View File

@ -1,4 +1,4 @@
{ ... }: {
{
sops = {
age.keyFile = "/home/hadi/.config/sops/age/keys.txt";
@ -13,34 +13,21 @@
path = "/home/hadi/.ssh/github";
owner = "hadi";
};
# nextcloud-adminpass = {
# path = "/etc/nextcloud/adminpassFile";
# owner = "nextcloud";
# group = "nextcloud";
# };
cloudflare-apitoken = {
path = "/home/hadi/test.txt";
owner = "hadii";
path = "/etc/cloudflare/apiToken";
owner = "cloudflare-dyndns";
group = "cloudflare-dyndns";
};
# tailscaled-authKey = {
# path = "/etc/tailscale/authKey";
# owner = "tailscaled";
# group = "tailscaled";
# };
};
};
}
# sops = {
# age.keyFile = "/home/hadi/.config/sops/age/keys.txt";
# defaultSopsFile = ../../../secrets/server.yaml;
# secrets = {
# sshconfig = { path = "/home/hadi/.ssh/config"; };
# github-key = { path = "/home/hadi/.ssh/github"; };
# nextcloud-adminpass = {
# path = "/etc/nextcloud/adminpassFile";
# owner = "nextcloud";
# group = "nextcloud";
# };
# cloudflare-apitoken = {
# path = "/etc/cloudflare/apiToken";
# owner = "cloudflare-dyndns";
# group = "cloudflare-dyndns";
# };
# tailscaled-authKey = {
# path = "/etc/tailscale/authKey";
# owner = "tailscaled";
# group = "tailscaled";
# };
# };
# };

View File

@ -5,6 +5,7 @@
../modules/server/security.nix
../modules/server/openssh.nix
../modules/server/sops.nix
../modules/server/cloudflare-dyndns.nix
];
# Bootloader.