custom certificates + ssl module to deploy it. headscale module using self-signed certificate. sops-nix secrets to deploy certificate keys. random file are also sorted.
This commit is contained in:
parent
081d1fa6e1
commit
5824942904
17 changed files with 171 additions and 54 deletions
|
|
@ -1,13 +1,10 @@
|
|||
{
|
||||
config,
|
||||
pkgs ? import <nixpkgs>, # Do not use jail.nix packages
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
imports = [
|
||||
/etc/nixos/security.nix
|
||||
/etc/nixos/nix.nix
|
||||
/etc/nixos/modules/security.nix
|
||||
/etc/nixos/modules/nix.nix
|
||||
|
||||
/etc/nixos/modules/ssl.nix
|
||||
/etc/nixos/modules/headscale
|
||||
];
|
||||
|
||||
nix.nixPath = [
|
||||
|
|
|
|||
|
|
@ -1,14 +1,10 @@
|
|||
{
|
||||
config,
|
||||
pkgs ? import <nixpkgs>, # Do not use jail.nix packages
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
imports = [
|
||||
/etc/nixos/security.nix
|
||||
/etc/nixos/nix.nix
|
||||
/etc/nixos/roles/desktop.nix
|
||||
|
||||
/etc/nixos/modules/security.nix
|
||||
/etc/nixos/modules/nix.nix
|
||||
|
||||
./users.nix
|
||||
];
|
||||
|
||||
|
|
|
|||
|
|
@ -7,19 +7,17 @@ let
|
|||
in
|
||||
{
|
||||
imports = [
|
||||
# core config
|
||||
/etc/nixos/security.nix
|
||||
/etc/nixos/nix.nix
|
||||
|
||||
# role
|
||||
/etc/nixos/roles/desktop.nix
|
||||
|
||||
# module
|
||||
/etc/nixos/modules/tailscale.nix
|
||||
/etc/nixos/modules/nix.nix
|
||||
/etc/nixos/modules/security.nix
|
||||
/etc/nixos/modules/ssl.nix
|
||||
/etc/nixos/modules/tailscale.nix
|
||||
|
||||
# temporary headscale
|
||||
/etc/nixos/modules/headscale.nix
|
||||
/etc/nixos/modules/headscale
|
||||
|
||||
# machine-specific config
|
||||
./bootloader.nix
|
||||
|
|
@ -30,6 +28,7 @@ in
|
|||
./users.nix
|
||||
];
|
||||
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
nix.nixPath = [
|
||||
"nixos-config=/etc/nixos/machines/niczos/default.nix"
|
||||
"nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos"
|
||||
|
|
@ -65,7 +64,6 @@ in
|
|||
package = pkgs.waydroid-nftables.unjailed;
|
||||
};
|
||||
security = {
|
||||
rtkit.enable = true;
|
||||
wrappers = {
|
||||
waydroid = {
|
||||
source = "${pkgs.waydroid}/bin/waydroid";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue