From 4564e2a3f7744a0c68f086d9d9602f90f717ed7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Sat, 1 Aug 2020 10:16:16 +0100 Subject: [PATCH] add mercurial settings --- nixos/boxes/foureighty/default.nix | 1 + nixos/home-other-os.nix | 1 + nixos/mercurial/default.nix | 8 ++++++++ nixos/mercurial/home.nix | 15 +++++++++++++++ 4 files changed, 25 insertions(+) create mode 100644 nixos/mercurial/default.nix create mode 100644 nixos/mercurial/home.nix diff --git a/nixos/boxes/foureighty/default.nix b/nixos/boxes/foureighty/default.nix index 7c4fbbe5..8833ee9e 100644 --- a/nixos/boxes/foureighty/default.nix +++ b/nixos/boxes/foureighty/default.nix @@ -15,6 +15,7 @@ ../../gui ../../sway ../../git + ../../mercurial ]; boot.kernelPackages = pkgs.linuxPackages_latest; diff --git a/nixos/home-other-os.nix b/nixos/home-other-os.nix index ee91aa97..072af58a 100644 --- a/nixos/home-other-os.nix +++ b/nixos/home-other-os.nix @@ -24,5 +24,6 @@ in imports = [ ./home-manager/default.nix ./git/home.nix + ./mercurial/home.nix ]; } diff --git a/nixos/mercurial/default.nix b/nixos/mercurial/default.nix new file mode 100644 index 00000000..2c4065d1 --- /dev/null +++ b/nixos/mercurial/default.nix @@ -0,0 +1,8 @@ +{ config, pkgs, lib, ... }: +{ + home-manager.users.cyryl = {...}: { + imports = [ + ./home.nix + ]; + }; +} diff --git a/nixos/mercurial/home.nix b/nixos/mercurial/home.nix new file mode 100644 index 00000000..f44c2bb1 --- /dev/null +++ b/nixos/mercurial/home.nix @@ -0,0 +1,15 @@ +{ config, pkgs, ... }: +{ + programs.mercurial = { + enable = true; + userName = "Cyryl PÅ‚otnicki"; + userEmail = "cyplo@cyplo.net"; + extraConfig = '' + [extensions] + hgext.convert= + ''; + aliases = + { + }; + }; + }