SSL configurations to support self-signed certificates on all of my machines.
Tailscale, headscale and SSL modules. sops-nix secrets management.
This commit is contained in:
parent
8f0ad96a62
commit
081d1fa6e1
17 changed files with 267 additions and 29 deletions
|
|
@ -1,38 +0,0 @@
|
|||
{
|
||||
config,
|
||||
pkgs ? import (config.root + /pkgs),
|
||||
...
|
||||
}:
|
||||
{
|
||||
programs.dconf.enable = true;
|
||||
|
||||
systemd = {
|
||||
defaultUnit = "graphical.target";
|
||||
};
|
||||
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
audio.enable = true;
|
||||
pulse.enable = true;
|
||||
alsa = {
|
||||
enable = true;
|
||||
};
|
||||
wireplumber.enable = true;
|
||||
};
|
||||
|
||||
fonts.packages = with pkgs; [
|
||||
noto-fonts
|
||||
noto-fonts-cjk-sans
|
||||
noto-fonts-color-emoji
|
||||
liberation_ttf
|
||||
fira-code
|
||||
fira-code-symbols
|
||||
mplus-outline-fonts.githubRelease
|
||||
dina-font
|
||||
proggyfonts
|
||||
font-awesome
|
||||
];
|
||||
|
||||
time.timeZone = "Europe/Paris";
|
||||
i18n.defaultLocale = pkgs.lib.mkDefault "fr_FR.UTF-8";
|
||||
}
|
||||
27
machines/homelab/default.nix
Normal file
27
machines/homelab/default.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
config,
|
||||
pkgs ? import <nixpkgs>, # Do not use jail.nix packages
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
imports = [
|
||||
/etc/nixos/security.nix
|
||||
/etc/nixos/nix.nix
|
||||
];
|
||||
|
||||
nix.nixPath = [
|
||||
"nixos-config=/etc/nixos/machines/homelab/default.nix"
|
||||
"nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos"
|
||||
"/nix/var/nix/profiles/per-user/root/channels"
|
||||
];
|
||||
|
||||
networking.hostName = "zomelab";
|
||||
networking.networkmanager.enable = true;
|
||||
|
||||
i18n.defaultLocale = "en_US.UTF-8";
|
||||
|
||||
services.headscale.enable = true;
|
||||
services.headscale.address = "0.0.0.0";
|
||||
services.headscale.settings.server_url = "https://0.0.0.0:443";
|
||||
}
|
||||
|
|
@ -8,6 +8,7 @@
|
|||
imports = [
|
||||
/etc/nixos/security.nix
|
||||
/etc/nixos/nix.nix
|
||||
/etc/nixos/roles/desktop.nix
|
||||
./users.nix
|
||||
];
|
||||
|
||||
|
|
|
|||
|
|
@ -1,24 +1,13 @@
|
|||
{ config, pkgs, ... }:
|
||||
let
|
||||
source = import (config.root + /npins);
|
||||
home-manager = source.home-manager;
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
(import "${home-manager}/nixos")
|
||||
];
|
||||
|
||||
home-manager.useGlobalPkgs = true;
|
||||
|
||||
users.users.memere.isNormalUser = true;
|
||||
home-manager.users.memere =
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
home.packages = [ ];
|
||||
programs.bash.enable = true;
|
||||
|
||||
# The state version is required and should stay at the version you
|
||||
# originally installed.
|
||||
home.stateVersion = "26.05";
|
||||
};
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
users.users.memere = {
|
||||
isNormalUser = true;
|
||||
packages = [
|
||||
pkgs.firefox
|
||||
pkgs.libreoffice
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,9 +7,21 @@ let
|
|||
in
|
||||
{
|
||||
imports = [
|
||||
# core config
|
||||
/etc/nixos/security.nix
|
||||
/etc/nixos/nix.nix
|
||||
/etc/nixos/machines/desktop.nix
|
||||
|
||||
# role
|
||||
/etc/nixos/roles/desktop.nix
|
||||
|
||||
# module
|
||||
/etc/nixos/modules/tailscale.nix
|
||||
/etc/nixos/modules/ssl.nix
|
||||
|
||||
# temporary headscale
|
||||
/etc/nixos/modules/headscale.nix
|
||||
|
||||
# machine-specific config
|
||||
./bootloader.nix
|
||||
./hardware-configuration.nix
|
||||
./hardware.nix
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue