summary refs log tree commit diff
path: root/mixins/cli.nix
blob: c5ff7b9b1da86e362f89c916ef3cf0636cc5176e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{
  pkgs,
  lib,
  config,
  inputs,
  ...
}: {
  imports = [
    inputs.home-manager.nixosModules."home-manager"
    inputs.agenix.nixosModules
  ];
  config = {
    home-manager.users.tzlil = {pkgs, ...}@hm: {
      home = {
        packages = with pkgs; [
          rsync
          curl
          ripgrep
        ];
        programs = {
          ssh.enable = true;
          git = {
            userName = "tzlil";
            userEmail = "tzlils@protonmail.com";
            enable = true;
          };
          fish = {
            enable = true;
            shellAliases = {
              gc = "git clone";
              l = "ls -alh";
            };
            functions = {
              sb.body = "sudo nixos-rebuild build --flake ~/sources/nixcfg#(hostname)";
              sw.body = "sudo nixos-rebuild switch --flake ~/sources/nixcfg#(hostname)";
            };
          };
        };
      };
    };
  };
}