fix(nsncd): Update source

This commit is contained in:
Tom Hubrecht 2023-10-26 14:17:01 +02:00
parent 03fa106aec
commit a4ad7810ae

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.