fix(nsncd): Update source
This commit is contained in:
parent
03fa106aec
commit
a4ad7810ae
|
@ -1,14 +1,11 @@
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (lib)
|
inherit (lib) mkEnableOption mkIf;
|
||||||
mkEnableOption
|
|
||||||
mkIf;
|
|
||||||
|
|
||||||
cfg = config.dgn-console;
|
cfg = config.dgn-console;
|
||||||
in
|
|
||||||
|
|
||||||
{
|
in {
|
||||||
options.dgn-console = {
|
options.dgn-console = {
|
||||||
enable = mkEnableOption "DGNum console setup." // { default = true; };
|
enable = mkEnableOption "DGNum console setup." // { default = true; };
|
||||||
};
|
};
|
||||||
|
@ -16,21 +13,32 @@ in
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
time.timeZone = "Europe/Paris";
|
time.timeZone = "Europe/Paris";
|
||||||
|
|
||||||
console = {
|
console = { keyMap = "fr"; };
|
||||||
keyMap = "fr";
|
|
||||||
};
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [ neovim wget kitty.terminfo ];
|
||||||
neovim
|
|
||||||
wget
|
|
||||||
kitty.terminfo
|
|
||||||
];
|
|
||||||
|
|
||||||
environment.variables.EDITOR = "nvim";
|
environment.variables.EDITOR = "nvim";
|
||||||
|
|
||||||
programs.neovim.vimAlias = true;
|
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 = ''
|
programs.bash.promptInit = ''
|
||||||
FQDN="$(hostname).$(domainname)"
|
FQDN="$(hostname).$(domainname)"
|
||||||
# Provide a nice prompt if the terminal supports it.
|
# Provide a nice prompt if the terminal supports it.
|
||||||
|
|
Loading…
Reference in a new issue