Compare commits

...

3 commits

Author SHA1 Message Date
Tom Hubrecht 5e6330d3ea feat(.gitignore): Ignore gcroots 2023-10-26 14:19:58 +02:00
Tom Hubrecht 1c709b5c3b fix(web01/ntfy-sh): Update settings 2023-10-26 14:18:58 +02:00
Tom Hubrecht a4ad7810ae fix(nsncd): Update source 2023-10-26 14:18:36 +02:00
3 changed files with 26 additions and 15 deletions

1
.gitignore vendored
View file

@ -7,3 +7,4 @@ result-*
#ignore vm images
*.qcow2
.gcroots

View file

@ -8,9 +8,11 @@ in {
settings = {
base-url = "https://${host}";
enable-login = true;
behind-proxy = true;
manager-interval = "1h";
auth-default-access = "deny-all";
enable-signup = true;
enable-login = true;
};
};

View file

@ -1,14 +1,11 @@
{ config, lib, pkgs, ... }:
let
inherit (lib)
mkEnableOption
mkIf;
inherit (lib) mkEnableOption mkIf;
cfg = config.dgn-console;
in
{
in {
options.dgn-console = {
enable = mkEnableOption "DGNum console setup." // { default = true; };
};
@ -16,21 +13,32 @@ in
config = mkIf cfg.enable {
time.timeZone = "Europe/Paris";
console = {
keyMap = "fr";
};
console = { keyMap = "fr"; };
environment.systemPackages = with pkgs; [
neovim
wget
kitty.terminfo
];
environment.systemPackages = with pkgs; [ neovim wget kitty.terminfo ];
environment.variables.EDITOR = "nvim";
programs.neovim.vimAlias = true;
services.nscd.enableNsncd = false;
# services.nscd.enableNsncd = false;
nixpkgs.overlays = [
(final: prev: {
nsncd = pkgs.rustPlatform.buildRustPackage {
pname = "nsncd";
version = "unstable-2023-10-26";
src = pkgs.fetchFromGitHub {
owner = "nix-community";
repo = "nsncd";
rev = "47755a26ab3a45a47e55785eb112c817ba1e6bed";
hash = "sha256-CSIFbCwXj33t7QW7PTqOXRcOYP/ivTWmK+s/xBZd0VQ=";
};
cargoSha256 = "sha256-cUM7rYXWpJ0aMiurXBp15IlxAmf/x5uiodxEqBPCQT0=";
};
})
];
programs.bash.promptInit = ''
FQDN="$(hostname).$(domainname)"
# Provide a nice prompt if the terminal supports it.