mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 04:19:19 -08:00
Added private submodule. Started using secrets.
This commit is contained in:
parent
e47deebca2
commit
b0e4c31d6e
6 changed files with 19 additions and 2 deletions
4
.gitmodules
vendored
Normal file
4
.gitmodules
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
[submodule "config/private"]
|
||||
path = config/private
|
||||
url = "gcrypt::git@github.com:kittywitch/nixfiles-private#main"
|
||||
branch = main
|
||||
|
|
@ -17,7 +17,7 @@
|
|||
dbhost = "/run/postgresql";
|
||||
dbname = "nextcloud";
|
||||
adminpassFile =
|
||||
"/var/lib/nextcloud/admin-pass"; # TODO replace this with proper secrets management
|
||||
config.secrets.files.nextcloud.path; # TODO replace this with proper secrets management
|
||||
adminuser = "root";
|
||||
};
|
||||
};
|
||||
|
|
|
|||
1
config/private
Submodule
1
config/private
Submodule
|
|
@ -0,0 +1 @@
|
|||
Subproject commit 933f5058c9942bfd51812cd0beaaf9b61a8205b7
|
||||
|
|
@ -20,6 +20,10 @@
|
|||
];
|
||||
shell = pkgs.fish;
|
||||
extraGroups = [ "wheel" "video" ];
|
||||
packages = with pkgs; [
|
||||
git-crypt
|
||||
gitAndTools.gitRemoteGcrypt
|
||||
];
|
||||
};
|
||||
|
||||
home-manager.useGlobalPkgs = true;
|
||||
|
|
@ -49,8 +53,12 @@
|
|||
|
||||
programs.git = {
|
||||
enable = true;
|
||||
package = pkgs.gitAndTools.gitFull;
|
||||
userName = "kat witch";
|
||||
userEmail = "kat@kittywit.ch";
|
||||
extraConfig = {
|
||||
protocol.gcrypt.allow = "always";
|
||||
};
|
||||
signing = {
|
||||
key = "01F50A29D4AA91175A11BDB17248991EFA8EFBEE";
|
||||
signByDefault = true;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
{ pkgs, hostsDir ? ../config/hosts
|
||||
{ pkgs, hostsDir ? ../config/hosts,
|
||||
privateHostsDir ? ../config/private/hosts
|
||||
, commonImports ? [ ../config/common ../modules ], pkgsPath ? ../pkgs }:
|
||||
|
||||
with pkgs.lib;
|
||||
|
|
@ -12,6 +13,7 @@ rec {
|
|||
_module.args = { inherit hosts profiles; };
|
||||
imports = [
|
||||
(import (hostsDir + "/${hostName}/configuration.nix"))
|
||||
(import (privateHostsDir + "/${hostName}/configuration.nix"))
|
||||
../modules/deploy
|
||||
] ++ commonImports;
|
||||
networking = { inherit hostName; };
|
||||
|
|
|
|||
2
todo.org
2
todo.org
|
|
@ -3,6 +3,8 @@
|
|||
** TODO Move virtual machine config into nixfiles
|
||||
** TODO Add dork.dev to mailserver
|
||||
** TODO Set up proper user service for scream
|
||||
** TODO Migrate non-PGSQL services to PGSQL
|
||||
** TODO Gitea theme + resources overwrite - See PBB gitea
|
||||
|
||||
* Secrets handling
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue