fix(*): adapt to nixos-24.05 changes

This commit is contained in:
steveej 2024-06-01 21:46:09 +02:00
parent ae86a8b860
commit 4c18f0a7ab
12 changed files with 56 additions and 27 deletions

View file

@ -23,7 +23,7 @@ in {
# Hidden=true
# '';
services.gpg-agent.pinentryFlavor = "gnome3";
services.gpg-agent.pinentryPackage = pkgs.pinentry-gnome3;
dconf.settings = let
manualKeybindings = [

View file

@ -36,7 +36,7 @@ in {
enable = true;
};
services.gpg-agent.pinentryFlavor = "gnome3";
services.gpg-agent.pinentryPackage = pkgs.pinentry-gnome3;
home.packages = [
pkgs.swayidle

View file

@ -4,17 +4,9 @@
config,
...
}: {
home.packages =
[
pkgs.gcr
]
++ (
if config.services.gpg-agent.pinentryFlavor == "gtk2"
then [pkgs.pinentry-gtk2]
else if config.services.gpg-agent.pinentryFlavor == "gnome3"
then [pkgs.pinentry-gnome]
else []
);
home.packages = [
pkgs.gcr
];
programs.gpg.enable = true;
services.gpg-agent = {
@ -22,7 +14,7 @@
enableScDaemon = true;
enableSshSupport = true;
grabKeyboardAndMouse = true;
pinentryFlavor = lib.mkDefault "gtk2";
pinentryPackage = lib.mkDefault pkgs.pinentry-gtk2;
extraConfig = ''
no-allow-external-cache
'';

View file

@ -1,15 +1,17 @@
{
repoFlake,
specialArgs,
hostAddress,
localAddress,
imapsPort ? 993,
sievePort ? 4190,
autoStart ? false,
}: {
inherit specialArgs;
config = {
pkgs,
config,
lib,
repoFlake,
...
}: {
system.stateVersion = "21.11"; # Did you read the comment?
@ -21,6 +23,12 @@
../profiles/common/user.nix
];
networking.firewall.enable = true;
networking.firewall.allowedTCPPorts = [
imapsPort
sievePort
];
# FIXME: find out how to use the `defaultSopsFile` so i don't have to specify each secret separately
# sops.defaultSopsFile = ./mailserver_secrets.yaml;

View file

@ -1,10 +1,12 @@
{
specialArgs,
hostAddress,
localAddress,
syncthingPort ? 22000,
syncthingLocalAnnouncePort ? 21027,
autoStart ? false,
}: {
inherit specialArgs;
config = {
config,
pkgs,

View file

@ -1,5 +1,5 @@
{
repoFlake,
specialArgs,
hostAddress,
localAddress,
httpPort ? 80,
@ -8,10 +8,12 @@
}: let
domain = "www.stefanjunker.de";
in {
inherit specialArgs;
config = {
config,
pkgs,
lib,
repoFlake,
...
}: {
system.stateVersion = "22.05"; # Did you read the comment?
@ -22,7 +24,11 @@ in {
repoFlake.inputs.sops-nix.nixosModules.sops
];
networking.firewall.enable = false;
networking.firewall.enable = true;
networking.firewall.allowedTCPPorts = [
httpPort
httpsPort
];
sops.age.sshKeyPaths = ["/etc/ssh/ssh_host_ed25519_key"];
sops.secrets.hedgedoc_environment_file = {

View file

@ -58,7 +58,6 @@ in {
home.packages = [
pkgs.nil
pkgs.rnix-lsp
pkgs.nixd
pkgs.nixpkgs-fmt
pkgs.alejandra

View file

@ -3,6 +3,7 @@
lib,
config,
repoFlake,
nodeFlake,
nodeName,
...
}: {
@ -73,7 +74,9 @@
containers = {
mailserver = import ../../containers/mailserver.nix {
inherit repoFlake;
specialArgs = {
inherit repoFlake nodeFlake;
};
autoStart = true;
@ -87,7 +90,9 @@
webserver =
import ../../containers/webserver.nix
{
inherit repoFlake;
specialArgs = {
inherit repoFlake nodeFlake;
};
autoStart = true;
@ -99,6 +104,9 @@
};
syncthing = import ../../containers/syncthing.nix {
specialArgs = {
inherit repoFlake nodeFlake;
};
autoStart = true;
hostAddress = "192.168.100.14";
@ -108,10 +116,6 @@
};
};
home-manager.users.steveej = import ../../../home-manager/configuration/text-minimal.nix {
inherit pkgs;
};
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave

View file

@ -3,6 +3,7 @@
imports = [
../../snippets/systemd-resolved.nix
../../snippets/nix-settings.nix
# ../../modules/ddclient-ovh.nix
# ../../modules/ddclient-hetzner.nix
];

View file

@ -7,7 +7,6 @@
...
}: {
imports = [
"${nodeFlake.inputs.nixpkgs-unstable}/nixos/modules/services/networking/mycelium.nix"
];
sops.secrets.mycelium-key = {