From 9786eb8672213344d8d1b7bdef12bc94510b20db Mon Sep 17 00:00:00 2001 From: outremonde Date: Tue, 10 Jun 2025 20:32:00 -0400 Subject: initialized repository Former-commit-id: 84647f22b951a957b2b83885b612115d473f6626 --- features/user/cli/utils/git.nix | 12 ++++++++++++ features/user/cli/utils/pandoc.nix | 13 +++++++++++++ features/user/cli/utils/ssh.nix | 20 ++++++++++++++++++++ 3 files changed, 45 insertions(+) create mode 100644 features/user/cli/utils/git.nix create mode 100644 features/user/cli/utils/pandoc.nix create mode 100644 features/user/cli/utils/ssh.nix (limited to 'features/user/cli/utils') diff --git a/features/user/cli/utils/git.nix b/features/user/cli/utils/git.nix new file mode 100644 index 0000000..8d202d1 --- /dev/null +++ b/features/user/cli/utils/git.nix @@ -0,0 +1,12 @@ +{ config, lib, ... }: let + cfg = config.features.cli.utils.git; +in { + options.features.cli.utils.git.enable = lib.mkEnableOption "git"; + config = lib.mkIf cfg.enable { + programs.git = { + enable = true; + userEmail = "culsans@vivaldi.net"; + userName = "culsans"; + }; + }; +} diff --git a/features/user/cli/utils/pandoc.nix b/features/user/cli/utils/pandoc.nix new file mode 100644 index 0000000..899bd4b --- /dev/null +++ b/features/user/cli/utils/pandoc.nix @@ -0,0 +1,13 @@ +{ config, pkgs, lib, ... }: let + cfg = config.features.cli.utils.pandoc; +in { + options.features.cli.utils.pandoc.enable = lib.mkEnableOption "pandoc"; + config = lib.mkIf cfg.enable { + programs.pandoc = { + enable = true; + }; + home.packages = with pkgs; [ + texliveSmall + ]; + }; +} diff --git a/features/user/cli/utils/ssh.nix b/features/user/cli/utils/ssh.nix new file mode 100644 index 0000000..f10d0b2 --- /dev/null +++ b/features/user/cli/utils/ssh.nix @@ -0,0 +1,20 @@ +{ config, lib, ... }: let + cfg = config.features.cli.utils.ssh; +in { + options.features.cli.utils.ssh.enable = lib.mkEnableOption "ssh"; + config = lib.mkIf cfg.enable { + programs.ssh = { + enable = true; + matchBlocks = { + "culsans.site" = { + hostname = "culsans.site"; + user = "server"; + port = 2200; + }; + "git.culsans.site" = { + hostname = "culsans.site"; + }; + }; + }; + }; +} -- cgit v1.2.3